Project

General

Profile

Qc level 2 » Makefile

QC tool makefile - Martina Stockhause, 12/12/2011 11:59 AM

 
1
#
2
.SUFFIXES: .cpp .c .x
3

    
4

    
5
SHELL	= /bin/sh
6
netcdf_libdir = /usr/lib64
7

    
8
CXX	= c++
9
CFLAGS	= -DSTATVFS -DNC3
10

    
11
CXXFLAGS = -DNC3 -I../include -O2
12
LDFLAGS = -L$(netcdf_libdir) -Wl,--rpath=$(netcdf_libdir)
13

    
14
LIBS = -lnetcdf -lm
15

    
16
all: \
17
	diskUsage.x \
18
	fModTime.x \
19
	getNC_att.x \
20
	getStatus.x \
21
	qC.x \
22
	syncFiles.x \
23
	testParentChild.x \
24
	testValidNC.x \
25
	unixTime.x
26
#	hist.x
27

    
28
qC.x: qC_main.cpp
29
	$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $< $(LIBS)
30

    
31
.cpp.x:
32
	$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $< $(LIBS)
33

    
34
.c.x:
35
	$(CC) -o $@ $(CFLAGS) $<
36

    
37
install:
38
	cp -f *.x ../bin
39

    
40
clean:
41
	-@rm -f *.x *.o
42
##
(5-5/5)