# # makefile for test-int-list # # "make -f Makefile.int-list test-int-list" makes the executable # "make -f Makefile.int-list clean" deletes object files # "make -f Makefile.int-list xclean" deletes objects files and executable # OPT = -O CFLAGS = -Wall -pedantic $(OPT) EXE = test-int-list OBJS = test-int-list.o int-list.o test-int-list: $(OBJS) gcc $(CFLAGS) -o $(EXE) $(OBJS) test-int-list.o: test-int-list.c int-list.h int-list.o: int-list.c int-list.h .PHONY: clean clean: -rm $(OBJS) .PHONY: xclean xclean: -rm $(OBJS) $(EXE)