# Makefile for mattest, a program to test finding matrix-based axes solutions.

CLDFLAGS =
CFLAGS = $(CLDFLAGS) -O2 -Wall -ffast-math -I.. -I../../../libmisc -I../../../libfits -I../../../libastro -I../../../libwcs
LDFLAGS = $(CLDFLAGS) -L/usr/X11R6/lib
LIBS = -lXm -lXpm -lXt -lXext -lX11 -lm

OBJS =					\
	mattest.o			\
	solveaxes.o			\
	matrix.o			\
	tel.o				\
	../../../libfits/libfits.a 	\
	../../../libmisc/libmisc.a 	\
	../../../libastro/libastro.a

mattest: $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)

bare:	bare.o solveaxes.o matrix.o tel.o
	$(CC) $(LDFLAGS) -o $@ bare.o solveaxes.o matrix.o tel.o \
	../../../libastro/libastro.a \
	../../../libmisc/libmisc.a \
	-lm

clean:
	rm -f *.o mattest
