Follow-up Comment #1, bug #29104 (project make): Hi,
The syntax for a pattern rule does not allow you to specify anything other than the input file and the output file. but you can still add further prerequisites to get what you want like so: BUILD_CMD = $(CC) $^ -o $@ all: main.exe %.exe: %.c $(BUILD_CMD) main.exe: -lm This is reasonably sensible - since not all exes in the entire universe really to link to libm. Regards, Tim _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?29104> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make