include ../make.include

CFLAGS	= $(CCOPT) -I.

SRC	= \
	axis.c \
	box.c \
	channel.c \
	circle.c \
	cmpframe.c \
	cmpmap.c \
	cmpregion.c \
	dsbspecframe.c \
	dssmap.c \
	ellipse.c \
	err_null.c \
	error.c \
	fitschan.c \
	frame.c \
	frameset.c \
	grismmap.c \
	interval.c \
	intramap.c \
	loader.c \
	lutmap.c \
	mapping.c \
	matrixmap.c \
	mathmap.c \
	memory.c \
	nullregion.c \
	object.c \
	pcdmap.c \
	permmap.c \
	plot.c \
	pointlist.c \
	pointset.c \
	polygon.c \
	polymap.c \
	proj.c \
	region.c \
	shiftmap.c \
	skyaxis.c \
	skyframe.c \
	slamap.c \
	specframe.c \
	specmap.c \
	sphmap.c \
	tranmap.c \
	tpn.c \
	unit.c \
	unitmap.c \
	wcsmap.c \
	wcstrig.c \
	winmap.c \
	xml.c \
	xmlchan.c \
	zoommap.c

INCLS	= \
	ast.h \
	grf.h

OBJS	= $(SRC:%.c=%.o)
LIB	= libast.a

$(LIB)	: $(OBJS)
	$(RM) $@
	$(LIBCMD) $@ $(OBJS)
	$(RANLIB) $@

install	: $(LIB)
	cp $(LIB) ../lib/.
	cp $(INCLS) ../include/.

clean	: FORCE
	rm -f core *~ *#

distclean : clean
	rm -f $(LIB) $(OBJS)

FORCE	:

