# SWarp V1.6 # # General makefile # # E.BERTIN 18/08/2000 # include Macrodefs.$(MYMACHINE) DEST = ${HOME}/bin/ # where to put the executable LIBS = -L. -lwcs_c -lm OBJ = back.o coadd.o data.o field.o fitsbody.o fitscat.o fitscleanup.o \ fitshead.o fitskey.o fitsmisc.o fitsread.o fitstab.o fitsutil.o \ fitswrite.o fitswcs.o \ interpolate.o main.o makeit.o misc.o prefs.o weight.o libwcs_c.a H = *.h EXEC = swarp $(EXEC): $(OBJ) $(CC) $(OBJ) -o $(EXEC) $(LIBS) $(COPTS) -$(CP) $(EXEC) $(DEST) $(OBJ): $(H) .c.o: $(CC) $(COPTS) -c $*.c libwcs_c.a: wcs/*.c ($(CD) wcs && $(MAKE)) clean: $(RM) *.o *.a $(EXEC) ($(CD) wcs && $(MAKE) clean)