diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-04 21:21:30 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-03-04 21:21:30 -0500 |
commit | d54fe7c1f704a63824c5bfa0ece65245572e9b27 (patch) | |
tree | afc52015ffc2c74e0266653eecef1c8ef8ba5d91 /src/fes/Makefile.Linux.orig | |
download | calfuse-d54fe7c1f704a63824c5bfa0ece65245572e9b27.tar.gz |
Initial commit
Diffstat (limited to 'src/fes/Makefile.Linux.orig')
-rw-r--r-- | src/fes/Makefile.Linux.orig | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/fes/Makefile.Linux.orig b/src/fes/Makefile.Linux.orig new file mode 100644 index 0000000..af548ac --- /dev/null +++ b/src/fes/Makefile.Linux.orig @@ -0,0 +1,44 @@ + +SHARED= -shared +FITSVER= 2.470 +CALFUSEDIR= ${PWD}/../.. + +# Symbols for include directories +FUSEINCLDIR= -I${CALFUSEDIR}/include + +# Symbols used for compiling +CC= cc +OPT= -g -Wall -DCFORTRAN -Dg77Fortran -Df2cFortran +CFLAGS = ${OPT} ${FUSEINCLDIR} + +# Symbols used for creating shared binaries +FUSEBINDIR= ${CALFUSEDIR}/bin +FUSELIBDIR= -L${CALFUSEDIR}/lib +LIBDIR= +FUSELIBS= -lsla -lcfitsio-${FITSVER} -lcf +LIBS= -lc -lm -lnsl -ldl -lgfortran +LDFLAGS= -Wl,-R${CALFUSEDIR}/lib + +OBJECTS= cf_calfes.o cf_fes_init.o cf_fes_read.o cf_fes_write.o \ + cf_fes_cal.o cf_fes_get_cal_image.o cf_limbang.o \ + cf_fes_apply_bias.o cf_fes_apply_flat.o cf_fes_apply_mask.o + +all: cf_calfes + +cf_calfes: ${OBJECTS} + ${CC} ${CFLAGS} -o cf_calfes ${OBJECTS} \ + ${FUSELIBDIR} ${LIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS} + chmod g+rw cf_calfes + +install: cf_calfes + /bin/cp cf_calfes ${FUSEBINDIR} + +clean: + /bin/rm -f ${OBJECTS} cf_calfes + +distclean: + /bin/rm -f ${OBJECTS} cf_calfes + cd ../../bin; /bin/rm -f cf_calfes + +lint: ${SOURCES} + lint ${SOURCES} |