#----------------------------------------------------------------------- # makefile4 # Author: Bob Dondero # Abbreviations #----------------------------------------------------------------------- #----------------------------------------------------------------------- # Macros #----------------------------------------------------------------------- CC = gcc217 # CC = gcc217m CCFLAGS = # CCFLAGS = -g # CCFLAGS = -DNDEBUG # CCFLAGS = -DNDEBUG -O3 #----------------------------------------------------------------------- # 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: testintmath.c intmath.h $(CC) $(CCFLAGS) -c $< intmath.o: intmath.c intmath.h $(CC) $(CCFLAGS) -c $<