CFLAGS = -Wall -ansi -pedantic

main: main.o functions.o plot.o
	gcc -s -o main main.o functions.o plot.o -lm

testmain: testmain.o plot.o
	gcc -s -o testmain testmain.o plot.o -lm

functions.o: functions.c functions.h
main.o: main.c plot.h functions.h
plot.o: plot.c plot.h
testmain.o: testmain.c plot.h

clean:
	/bin/rm -f a.out main.o functions.o plot.o testmain.o main testmain
