# Custom makefile for the WCS library # E. Bertin 28/03/2000 # # # where to put the result DEST = .. include $(DEST)/Macrodefs.$(MYMACHINE) DEFINES = -DCOPYSIGN -DSIGNBIT LIBS = -lm SOURCES = cel.c lin.c poly.c proj.c sph.c tnx.c wcs.c wcstrig.c OBJECTS = $(SOURCES:.c=.o) INCLUDES= cel.h lin.h poly.h proj.h tnx.h wcs.h wcsmath.h wcstrig.h LIBRARY = $(DEST)/libwcs_c.a $(LIBRARY): $(OBJECTS) $(RM) $@ ar rc $@ $(OBJECTS) -ranlib $@ .c.o: $(INCLUDES) $(CC) $(COPTS) $(DEFINES) -c $*.c clean: $(RM) $(OBJECTS) $(LIBRARY)