# Makefile for fitshdr

CLDFLAGS =
CFLAGS = $(CLDFLAGS) -Wall -O -I../../libfits -I../../libmisc -I../../libastro
LDFLAGS = $(CLDFLAGS) -L../../libfits -L../../libmisc -L../../libastro
LIBS =  -lfits -lmisc -lastro -lm

pass5:	install

install: fitshdr
	cp fitshdr $(TELHOME)/bin

fitshdr: fitshdr.o \
	../../libfits/libfits.a \
	../../libmisc/libmisc.a \
	../../libastro/libastro.a
	cc $(LDFLAGS) -o $@ $? $(LIBS)

clean:
	rm -f *.o fitshdr
