# POLYNOM version 0.09, a polynomials lib in C++ by Pieter Suurmond.
# Makefile to compile the polynom library and 1 executable on UNIX 
# (Mac OSX; Linux; BSD; SGI Irix; etc).

       # Compiler (you can change it to 'CC' or something else):
CC     = g++

       # Compiler optimization-level and warnings:
CFLAGS = -O2 -Wall

       # Complex and math library. Perhaps not necessary at all.
       # Complex IS necessary for the MIPS C++ compiler on SGI IRIX.
#LIBS   = -lcomplex -lm

default: polynom.o polynom_test

polynom.o: polynom.cpp polynom.hpp
	$(CC) $(CFLAGS) -c polynom.cpp -o polynom.o

polynom_test: polynom.o polynom_test.cpp
	$(CC) $(CFLAGS) polynom.o polynom_test.cpp -o polynom_test $(LIBS)
	strip polynom_test

clean:
	-rm *.o polynom_test core
