Makefile
2.46 KB
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
INC = -I/usr/include -I/usr/local/include -I${COTS_BASE_DIR}/include -I${COTS_BASE_DIR}/include/DDClientLibC
LIB = -L/usr/lib64 -L/usr/local/lib64 -L${COTS_BASE_DIR}/lib
CFLAGS = -ggdb -DLINUX -m64 -march=core2 -fPIC -Dlinux -D_REENTRANT -malign-double
CC = gcc
EXE = nctimestring2double nctimeinfo getncvars ncvarinfo \
ncinfo_remote ncvar_attr \
cdfinfo cdfvarinfo cdfstartstopfromdata cdfsamplingfromdata cdfvar_attr \
AddVI
lib: ${EXE}
AddVI: AddVI.c
${CC} ${CFLAGS} -o AddVI AddVI.c ${INC} ${LIB} -lDDClientLibC
ncinfo_remote: ncinfo_remote.c
${CC} ${CFLAGS} -o ncinfo_remote ncinfo_remote.c ${INC} ${LIB} -lnetcdf
ncvar_attr: ncvar_attr.c
${CC} ${CFLAGS} -o ncvar_attr ncvar_attr.c ${INC} ${LIB} -lnetcdf
nctimestring2double: nctimestring2double.c
${CC} ${CFLAGS} -o nctimestring2double nctimestring2double.c ${INC} ${LIB} -lDDClientLibC -lnetcdf
nctimeinfo: nctimeinfo.c
${CC} ${CFLAGS} -o nctimeinfo nctimeinfo.c ${INC} ${LIB} -lnetcdf
getncvars: getncvars.c
${CC} ${CFLAGS} -o getncvars getncvars.c ${INC} ${LIB} -lnetcdf
ncvarinfo: ncvarinfo.c
${CC} ${CFLAGS} -o ncvarinfo ncvarinfo.c ${INC} ${LIB} -lnetcdf
cefvarinfo: cefvarinfo.c
${CC} ${CFLAGS} -o cefvarinfo cefvarinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
cefinfo: cefinfo.c
${CC} ${CFLAGS} -o cefinfo cefinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
cefstartstop: cefstartstop.c
${CC} ${CFLAGS} -o cefstartstop cefstartstop.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
cefsampling: cefsampling.c
${CC} ${CFLAGS} -o cefsampling cefsampling.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
ceftimeinfo: ceftimeinfo.c
${CC} ${CFLAGS} -o ceftimeinfo ceftimeinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
cdfinfo: cdfinfo.c
${CC} ${CFLAGS} -o cdfinfo cdfinfo.c ${INC} ${LIB} -lcdf
cdfvarinfo: cdfvarinfo.c
${CC} ${CFLAGS} -o cdfvarinfo cdfvarinfo.c ${INC} ${LIB} -lcdf
cdfvar_attr: cdfvar_attr.c
${CC} ${CFLAGS} -o cdfvar_attr cdfvar_attr.c ${INC} ${LIB} -lcdf
cdfstartstopfromdata: cdfstartstopfromdata.c
${CC} ${CFLAGS} -o cdfstartstopfromdata cdfstartstopfromdata.c ${INC} ${LIB} -lcdf
cdfsamplingfromdata: cdfsamplingfromdata.c
${CC} ${CFLAGS} -o cdfsamplingfromdata cdfsamplingfromdata.c ${INC} ${LIB} -lcdf
install:
install -d -m a+rx,ug+w ${AMDA_IHM}/php/bin
cp ${EXE} ${AMDA_IHM}/php/bin
clean:
tag="*.o ${EXE}";\
for file in $$tag; do \
echo $$file; rm -f $$file;\
done
find -name \*~ -delete