CC = g++
# You should uncomment exactly one of the following pairs
OPTS = -O6 -mpentium -finline-functions
LINK = -lm
#OPTS = -O2 -m486 -finline-functions
#LINK -lm
#OPTS = -g -pg -Wall
#LINK = -lm -lg

all:	warp

warp:	warp.o pgm.o filter.o frontend.o
	$(CC) $(OPTS) -o warp frontend.o filter.o warp.o pgm.o $(LINK)

filter.o:	filter.C filter.h pgm.h
	$(CC) $(OPTS) -c filter.C

warp.o:	warp.C pgm.h warp.h
	$(CC) $(OPTS) -c warp.C

frontend.o:	frontend.C pgm.h warp.h
	$(CC) $(OPTS) -c frontend.C

pgm.o:	pgm.C pgm.h
	$(CC) $(OPTS) -c pgm.C

clean:	
	rm warp frontend *.o *.~ core
