Blame view

php/src/Makefile 2.85 KB
af97ef56   Elena.Budnik   make C executable...
1
2
3
INC = -I/usr/include -I/usr/local/include -I${CDF_DIR}/include -I${CEF_DIR}/include -I${DD_INCLUDE}
LIB = -L/usr/lib64 -L/usr/local/lib64  -L${CDF_DIR}/lib  -L${CEF_DIR}/lib -L${DD_LIB}
CFLAGS = -ggdb -DLINUX -m64 -march=core2 -fPIC -Dlinux -D_REENTRANT -malign-double 
16035364   Benjamin Renard   First commit
4
5
6
7
8
9
CC = gcc

EXE = nctimestring2double nctimeinfo getncvars ncvarinfo \
      cefstartstop cefvarinfo cefinfo cefsampling ceftimeinfo \
      cdfinfo cdfvarinfo cdfstartstopfromdata cdfsamplingfromdata

af97ef56   Elena.Budnik   make C executable...
10
lib: ${EXE}
16035364   Benjamin Renard   First commit
11
12

nctimestring2double: nctimestring2double.o
af97ef56   Elena.Budnik   make C executable...
13
	${CC} -o nctimestring2double nctimestring2double.o ${LIB} -lDDClientLibC -lnetcdf
16035364   Benjamin Renard   First commit
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

nctimestring2double.o: nctimestring2double.c
	${CC} ${CFLAGS} -c nctimestring2double.c ${INC}

nctimeinfo: nctimeinfo.o
	${CC} -o nctimeinfo nctimeinfo.o ${LIB} -lnetcdf

nctimeinfo.o: nctimeinfo.c
	${CC} ${CFLAGS} -c nctimeinfo.c ${INC}

getncvars: getncvars.o
	${CC} -o getncvars getncvars.o ${LIB} -lnetcdf

getncvars.o: getncvars.c
	${CC} ${CFLAGS} -c getncvars.c ${INC}

ncvarinfo: ncvarinfo.o
	${CC} -o ncvarinfo ncvarinfo.o ${LIB} -lnetcdf

ncvarinfo.o: ncvarinfo.c
	${CC} ${CFLAGS} -c ncvarinfo.c ${INC}

cefvarinfo: cefvarinfo.o
	${CC} -o cefvarinfo cefvarinfo.o ${LIB}  -lm -lz -lCEF_gcc -lCIS_gcc

cefvarinfo.o: cefvarinfo.c
	${CC} ${CFLAGS} -c cefvarinfo.c ${INC}

cefinfo: cefinfo.o
	${CC} -o cefinfo cefinfo.o ${LIB}  -lm -lz -lCEF_gcc -lCIS_gcc

cefinfo.o: cefinfo.c
	${CC} ${CFLAGS} -c cefinfo.c ${INC}

cefstartstop: cefstartstop.o
	${CC} -o cefstartstop  cefstartstop.o ${LIB}  -lm -lz -lCEF_gcc -lCIS_gcc

cefstartstop.o: cefstartstop.c
	${CC} ${CFLAGS} -c cefstartstop.c ${INC}

cefsampling: cefsampling.o
	${CC} -o cefsampling cefsampling.o ${LIB}  -lm -lz -lCEF_gcc -lCIS_gcc

cefsampling.o: cefsampling.c
	${CC} ${CFLAGS} -c cefsampling.c ${INC}

ceftimeinfo: ceftimeinfo.o
	${CC} -o ceftimeinfo ceftimeinfo.o ${LIB}  -lm -lz -lCEF_gcc -lCIS_gcc

ceftimeinfo.o: ceftimeinfo.c
	${CC} ${CFLAGS} -c ceftimeinfo.c ${INC}

cdfinfo: cdfinfo.o
	${CC} -o cdfinfo cdfinfo.o ${LIB} -lcdf

cdfinfo.o: cdfinfo.c
	${CC} ${CFLAGS} -c cdfinfo.c ${INC}

cdfvarinfo: cdfvarinfo.o
	${CC} -o cdfvarinfo cdfvarinfo.o ${LIB} -lcdf

cdfvarinfo.o: cdfvarinfo.c
	${CC} ${CFLAGS} -c cdfvarinfo.c ${INC}

cdfstartstopfromdata: cdfstartstopfromdata.o
	${CC} -o cdfstartstopfromdata cdfstartstopfromdata.o ${LIB} -lcdf

cdfstartstopfromdata.o: cdfstartstopfromdata.c
	${CC} ${CFLAGS} -c cdfstartstopfromdata.c ${INC}

cdfsamplingfromdata: cdfsamplingfromdata.o
	${CC} -o cdfsamplingfromdata cdfsamplingfromdata.o ${LIB} -lcdf

cdfsamplingfromdata.o: cdfsamplingfromdata.c
	${CC} ${CFLAGS} -c cdfsamplingfromdata.c ${INC}

install:
af97ef56   Elena.Budnik   make C executable...
91
92
	install -d -m a+rx,ug+w ${IHM_DIR}/php/bin
	cp ${EXE} ${IHM_DIR}/php/bin
16035364   Benjamin Renard   First commit
93
94
95

clean:	
	tag="*.o ${EXE}";\
af97ef56   Elena.Budnik   make C executable...
96
	for file in $$tag; do \
16035364   Benjamin Renard   First commit
97
98
	echo $$file; rm -f $$file;\
	done
af97ef56   Elena.Budnik   make C executable...
99
	find -name \*~ -delete