Another way to do this :
# Use variables for the target ($@ = demo here) and the dependencies ($^ = main.o f1.o f2.o)
demo : main.o f1.o f2.o
gcc -o $@ $^
# Define a generic...
Type: Posts; User: KCfromNC
Another way to do this :
# Use variables for the target ($@ = demo here) and the dependencies ($^ = main.o f1.o f2.o)
demo : main.o f1.o f2.o
gcc -o $@ $^
# Define a generic...