Blame view

php/src/Makefile 2.46 KB
99ae8744   Benjamin Renard   Use config variab...
1
2
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
af97ef56   Elena.Budnik   make C executable...
3
CFLAGS = -ggdb -DLINUX -m64 -march=core2 -fPIC -Dlinux -D_REENTRANT -malign-double 
16035364   Benjamin Renard   First commit
4
5
6
CC = gcc

EXE = nctimestring2double nctimeinfo getncvars ncvarinfo \
fe516999   Elena.Budnik   nc attributes
7
      ncinfo_remote ncvar_attr \
7d5742d0   Elena.Budnik   cdf attribute info
8
      cdfinfo cdfvarinfo cdfstartstopfromdata cdfsamplingfromdata cdfvar_attr \
74b77f58   Elena.Budnik   init remote branch
9
      AddVI
16035364   Benjamin Renard   First commit
10

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

74b77f58   Elena.Budnik   init remote branch
13
14
15
16
AddVI: AddVI.c
	${CC} ${CFLAGS} -o AddVI AddVI.c ${INC} ${LIB} -lDDClientLibC
	
ncinfo_remote: ncinfo_remote.c
fe516999   Elena.Budnik   nc attributes
17
18
19
20
21
	${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

74b77f58   Elena.Budnik   init remote branch
22
23
nctimestring2double: nctimestring2double.c
	${CC} ${CFLAGS} -o nctimestring2double nctimestring2double.c ${INC} ${LIB} -lDDClientLibC -lnetcdf
16035364   Benjamin Renard   First commit
24

74b77f58   Elena.Budnik   init remote branch
25
26
nctimeinfo: nctimeinfo.c
	${CC} ${CFLAGS} -o nctimeinfo nctimeinfo.c ${INC} ${LIB} -lnetcdf
16035364   Benjamin Renard   First commit
27

74b77f58   Elena.Budnik   init remote branch
28
29
getncvars: getncvars.c
	${CC} ${CFLAGS} -o getncvars getncvars.c ${INC} ${LIB} -lnetcdf
16035364   Benjamin Renard   First commit
30

74b77f58   Elena.Budnik   init remote branch
31
32
ncvarinfo: ncvarinfo.c
	${CC} ${CFLAGS} -o ncvarinfo ncvarinfo.c ${INC} ${LIB} -lnetcdf
16035364   Benjamin Renard   First commit
33

74b77f58   Elena.Budnik   init remote branch
34
35
cefvarinfo: cefvarinfo.c
	${CC} ${CFLAGS} -o cefvarinfo cefvarinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
16035364   Benjamin Renard   First commit
36

74b77f58   Elena.Budnik   init remote branch
37
38
cefinfo: cefinfo.c
	${CC} ${CFLAGS} -o cefinfo cefinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
16035364   Benjamin Renard   First commit
39

74b77f58   Elena.Budnik   init remote branch
40
41
cefstartstop: cefstartstop.c
	${CC} ${CFLAGS} -o cefstartstop cefstartstop.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
16035364   Benjamin Renard   First commit
42

74b77f58   Elena.Budnik   init remote branch
43
44
cefsampling: cefsampling.c
	${CC} ${CFLAGS}  -o cefsampling cefsampling.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
16035364   Benjamin Renard   First commit
45

74b77f58   Elena.Budnik   init remote branch
46
47
ceftimeinfo: ceftimeinfo.c
	${CC} ${CFLAGS} -o ceftimeinfo ceftimeinfo.c ${INC} ${LIB} -lm -lz -lCEF_gcc -lCIS_gcc
16035364   Benjamin Renard   First commit
48

74b77f58   Elena.Budnik   init remote branch
49
50
cdfinfo: cdfinfo.c
	${CC} ${CFLAGS} -o cdfinfo cdfinfo.c ${INC} ${LIB} -lcdf
16035364   Benjamin Renard   First commit
51

74b77f58   Elena.Budnik   init remote branch
52
53
cdfvarinfo: cdfvarinfo.c
	${CC} ${CFLAGS} -o cdfvarinfo cdfvarinfo.c ${INC} ${LIB} -lcdf
7d5742d0   Elena.Budnik   cdf attribute info
54
55
56
57
	
cdfvar_attr: cdfvar_attr.c
	${CC} ${CFLAGS} -o cdfvar_attr cdfvar_attr.c ${INC} ${LIB} -lcdf
	
74b77f58   Elena.Budnik   init remote branch
58
59
cdfstartstopfromdata: cdfstartstopfromdata.c
	${CC} ${CFLAGS} -o cdfstartstopfromdata cdfstartstopfromdata.c ${INC} ${LIB} -lcdf
16035364   Benjamin Renard   First commit
60

74b77f58   Elena.Budnik   init remote branch
61
62
cdfsamplingfromdata: cdfsamplingfromdata.c
	${CC} ${CFLAGS} -o cdfsamplingfromdata cdfsamplingfromdata.c ${INC} ${LIB} -lcdf
16035364   Benjamin Renard   First commit
63
64

install:
1655606d   Benjamin Renard   Load environment ...
65
66
	install -d -m a+rx,ug+w ${AMDA_IHM}/php/bin
	cp ${EXE} ${AMDA_IHM}/php/bin
16035364   Benjamin Renard   First commit
67
68
69

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