# Makefile for lensview on Mac OSX. Change the make variables according to your needs # this file is for lensview including the fastell.f (and associated) code # be sure to "make clean" if something goes wrong INCLUDES=-I/opt/local/include LIBS=-L/opt/local/lib FC=g77 # Regular compiling on both platforms with debugging symbols #CFLAGS= -g $(CFLAG_OS) $(INCLUDES) $(LIBS) # Optimised compiling on most platforms CFLAGS= -O $(INCLUDES) $(LIBS) COMMON_HDRS= log.h common.h OBJS= log.o parseopts.o lv_common.o lv_lens.o lv_geom.o lv_image.o lv_mem.o lv_critline.o lv_paramfit.o lensview.o lensview: libfortranstuff.a $(OBJS) $(COMMON_HDRS) libfortranstuff.a # with fastell $(CC) $(CFLAGS) -o lensview $(OBJS) -lgsl -lgslcblas -lcfitsio -ldrfftw -ldfftw -lm -L. -lfortranstuff -lg2c libfortranstuff.a: $(FC) -O -c slatec/src/*.f fastell.f ar -r libfortranstuff.a *.o rm *.o clean: rm -f *.o