#----------------------------------------------------------------------- # makefile5 # Author: Bob Dondero # Pattern Rules #----------------------------------------------------------------------- #----------------------------------------------------------------------- # Macros #----------------------------------------------------------------------- CC = gcc217 # CC = gcc217m CCFLAGS = # CCFLAGS = -g # CCFLAGS = -DNDEBUG # CCFLAGS = -DNDEBUG -O3 #----------------------------------------------------------------------- # Pattern rule #----------------------------------------------------------------------- %.o: %.c $(CC) $(CCFLAGS) -c $< #----------------------------------------------------------------------- # Dependency rules for non-file targets #----------------------------------------------------------------------- all: testintmath clobber: clean rm -f *~ \#*\# core clean: rm -f testintmath *.o #----------------------------------------------------------------------- # Dependency rules for file targets #----------------------------------------------------------------------- testintmath: testintmath.o intmath.o $(CC) $(CCFLAGS) $< intmath.o -o $@ testintmath.o: intmath.h intmath.o: intmath.h