############################################### # makefile4: Pattern Rules ############################################### %.o: %.c gcc -Wall -ansi -pedantic -c -o $@ $< %.do: %.c gcc -g -Wall -ansi -pedantic -c -o $@ $< all: release debug release: testsymtable debug: testsymtablegdb clobber: clean rm -f *~ \#*\# core clean: rm -f testsymtable testsymtablegdb *.o *.do testsymtable: testsymtable.o symtable.o gcc -o $@ $< symtable.o testsymtablegdb: testsymtable.do symtable.do gcc -o $@ $< symtable.do testsymtable.o: symtable.h testsymtable.do: symtable.h symtable.o: symtable.h symtable.do: symtable.h