blob: da60b247254e83e85a523cd0d8d38b0b2ec258a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
CALFUSEDIR= ${PWD}/../..
SHARED= -shared
FITSVER= 2.470
# Symbols for include directories
FUSEINCLDIR= -I${CALFUSEDIR}/include
# Symbols used for compiling
CC= cc
OPT= -g -Wall -DCFORTRAN -Dg77Fortran -Df2cFortran
CFLAGS= ${OPT} ${FUSEINCLDIR}
FUSEBINDIR= ${CALFUSEDIR}/bin
FUSELIBDIR= -L${CALFUSEDIR}/lib
FUSELIBS= -lcfitsio-${FITSVER} -lsla -lcf
LIBS= -lc -lm -lnsl -ldl -lgfortran
LDFLAGS= -Wl,-R${CALFUSEDIR}/lib,-R${CALFUSEDIR}/src/libcf
# Symbols used for creating shared libraries
BINS= cf_hist_init cf_ttag_init cf_convert_to_farf cf_remove_motions \
cf_assign_wavelength cf_screen_photons cf_flux_calibrate \
cf_extract_spectra cf_countmap cf_gainmap cf_bad_pixels
all: ${BINS}
chmod g+w ${BINS}
install: all
/bin/cp -p ${BINS} ${FUSEBINDIR}
clean:
- /bin/rm -f ${BINS}
distclean:
- /bin/rm -f ${BINS}
cd ../../bin; /bin/rm -f ${BINS} calfuse
cf_hist_init:
${CC} ${CFLAGS} -o cf_hist_init cf_hist_init.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_ttag_init:
${CC} ${CFLAGS} -o cf_ttag_init cf_ttag_init.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_convert_to_farf:
${CC} ${CFLAGS} -o cf_convert_to_farf cf_convert_to_farf.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_remove_motions:
${CC} ${CFLAGS} -o cf_remove_motions cf_remove_motions.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_assign_wavelength:
${CC} ${CFLAGS} -o cf_assign_wavelength \
cf_assign_wavelength.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_screen_photons:
${CC} ${CFLAGS} -o cf_screen_photons cf_screen_photons.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_flux_calibrate:
${CC} ${CFLAGS} -o cf_flux_calibrate cf_flux_calibrate.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_extract_spectra:
${CC} ${CFLAGS} -o cf_extract_spectra cf_extract_spectra.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_countmap:
${CC} ${CFLAGS} -o cf_countmap cf_countmap.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_gainmap:
${CC} ${CFLAGS} -o cf_gainmap cf_gainmap.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
cf_bad_pixels:
${CC} ${CFLAGS} -o cf_bad_pixels cf_bad_pixels.c \
${FUSELIBDIR} ${FUSELIBS} ${LIBS} ${LDFLAGS}
|