#--------------------------------------------------------------------- # makefile # Author: Bob Dondero #--------------------------------------------------------------------- #--------------------------------------------------------------------- # Macros #--------------------------------------------------------------------- CC = gcc # CC = gccmeminfo CCFLAGS = -Wall -ansi -pedantic # CCFLAGS = -Wall -ansi -pedantic -g # CCFLAGS = -Wall -ansi -pedantic -DNDEBUG # CCFLAGS = -Wall -ansi -pedantic -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) testintmath.o intmath.o -o testintmath testintmath.o: testintmath.c intmath.h $(CC) $(CCFLAGS) -c testintmath.c intmath.o: intmath.c intmath.h $(CC) $(CCFLAGS) -c intmath.c