#-----------------------------------------------------------------------
# makefile3
# Author: Bob Dondero
# Macros
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------
# 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) 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