# # This is a simple Makefile that compiles the C source files for the linked # list example. This Makefile does compile the Java code, or run the program # tests. # # This Makefile is also not as efficient as the full-blown Makefile, since it # does not take advantage of make's "smart" recompilation feature, that only # recompiles a .c file if the source for the file is newer than the last time # it was compiled. # CFILES = linked-list.c list-node.c linked-list-test.c compile: gcc -Wall -ansi $(CFILES) -o linked-list-test clean: rm linked-list-test