############################################### # Macros ############################################### CFLAGS = -Wall -ansi -pedantic # CFLAGS = -Wall -ansi -pedantic -g # CFLAGS = -Wall -ansi -pedantic -DNDEBUG ############################################### # Pattern rules ############################################### %.o: %.c gcc $(CFLAGS) -c -o $@ $< ############################################### # Build rules for non-file targets ############################################### all: testsymtable clobber: clean rm -f *~ \#*\# core clean: rm -f *.o *.do testsymtable ############################################### # Build rules for file targets ############################################### testsymtable: testsymtable.o symtable.o gcc -o $@ $< symtable.o testsymtable.o: symtable.h symtable.o: symtable.h