.IGNORE:

GCC=g++
OPT=-O

# On Digital Unix / Alpha machines, the following works well.  Use ev4
# if appropriate for your chipset.
#
#OPT=-DALPHA -O -om -non_shared -tune ev5

test: lip.o
	$(GCC) $(OPT) testMult.c lip.o -lm -o testMult
	./testMult

lip.o: lippar.h lip.c lip.h
	$(GCC) $(OPT) lip.c -c

lippar.h: liptimer.c lip.c lip.h
	echo "" > lippar.h
	$(GCC) $(OPT) lip.c -c
	$(GCC) $(OPT) liptimer.c -c
	$(GCC) lip.o liptimer.o -lm -o liptimer
	echo "running timer program"
	./liptimer

.c: lip.o lippar.h lip.h
	$(GCC) $(OPT) $< lip.o -lm -o $@

clean:
	rm -f *.o lippar.h testMult
