3 ms·
I don't understand. In make, I can do: program : f1.o f2.o f3.o $(CC) -o $@ $^ f1.o : f1.c f1.h f.h $(CC) -c -o $@ $< Where
by spc476 14y ago
I don't understand. In make, I can do:
program : f1.o f2.o f3.o
$(CC) -o $@ $^
f1.o : f1.c f1.h f.h
$(CC) -c -o $@ $<
Where "$@" is the target, "$^" is a list of the source files, and "$<" is the first source file. And that's if you want to be verbose.