include ../../make.include

CFLAGS	= $(CCOPT) -I.

SRC	= \
	cel.c \
	distort.c \
	dsspos.c \
	hget.c \
	hput.c \
	iget.c \
	lin.c \
	platepos.c \
	proj.c \
	sph.c \
	tnxpos.c \
	wcs.c \
	wcscon.c \
	wcsinit.c \
	wcslib.c \
	wcstrig.c \
	worldpos.c

TAGS	= $(SRC) *.h

OBJS	= $(SRC:%.c=%.o)

all	: $(OBJS)

clean	: FORCE
	rm -f core *~ *#

distclean : clean
	rm -f TAGS *.o

TAGS	: $(TAGS)
	etags $+

FORCE	:

ifndef DEPENDS
%.d: %.c
	set -e; $(CC) -MM $(CFLAGS) $< \
	| sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' > $@; \
	[ -s $@ ] || rm -f $@

include $(SRC:.c=.d)
endif
