astrotest: test.o astrolib.o 
	g++ -O -o astrotest test.o astrolib.o -lm

test.o: test.c
	g++ -c test.c

astrolib.o: astrolib.c
	g++ -c astrolib.c

clean:
	rm -f test.o astrolib.o astrotest
