#OPTS += -D CC = gcc OPTIMIZE = -fPIC -g -O3 #-Wall -wd981 #-wd1419 -wd810 #GSLI = -I/home/alex/opt/gsl/include #GSLL = -L/home/alex/opt/gsl/lib -lgsl -lgslcblas #FFTWI = -I/home/alex/opt/fftw/include #FFTWL = -L/home/alex/opt/fftw/lib -lfftw3 -lfftw3f #HDF5I = -I/home/alex/opt/hdf5/include #HDF5L = -L/home/alex/opt/hdf5/lib -lhdf5_hl -lhdf5 #FITSI = -I/home/alex/opt/cfitsio/include #FITSL = -L/home/alex/opt/cfitsio/lib -lcfitsio #EXTRACFLAGS = #EXTRACLIB = CLINK=$(CC) CFLAGS=$(OPTIMIZE) #$(EXTRACFLAGS) $(OPTS) CLIB= -shared -lm #$(EXTRACLIB) OBJS = centroidWgt.o nrutil.o EXEC = libCentroid.so all: $(EXEC) $(EXEC): $(OBJS) $(CLINK) $(CFLAGS) -o $@ $(OBJS) $(CLIB) $(OBJS): nrutil.h Makefile .PHONY : clean clean: rm -f *.o $(EXEC)