CC = gcc CFLAGS = -Wall -g COMPILE = $(CC) $(CFLAGS) -c SRCS := $(wildcard *.c) OBJS := $(patsubst %.c,%.o,$(SRCS)) # make an executable for each of the test programs and for that in part 10 as well SERVER_OBJS := select_term.o EXECUTABLES = select_call.out all: $(EXECUTABLES) select_call: $(SERVER_OBJS) $(CC) $(CFLAGS) -o $@ $(SERVER_OBJS) %.o: %.c $(COMPILE) -o $@ $< clean: -rm $(OBJS) $(EXECUTABLES) explain: @echo "The following information represents all the programs for assignment one:" @echo "programs: $(EXECUTABLES)" @echo "Object files: $(SERVER_OBJS)"