This is an incredibly simple question, but I\'m new to makefiles. I am trying to make a makefile that will compile two independent programs:
program1: gc
Pattern rules let you compile multiple c files which require the same compilation commands using make as follows:
make
objects = program1 program2 all: $(objects) $(objects): %: %.c $(CC) $(CFLAGS) -o $@ $<