I use nmake to compile multiple source files into an elf. However, I do not want to list .o files in a long list as follows:
OBJS = file1.o file2.o file3.o
I would prefer to use a wildcard that indicates all .o files in the current directory as dependencies for .elf. However .o files do not exist until I compiled them from .cpp files. Is there a way to get a list of cpp files using a wildcard extension and then do a line replacement to replace .cpp with .o.
source
share