Project

General

Profile

Qc level 2 » Makefile

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

 
#
.SUFFIXES: .cpp .c .x


SHELL = /bin/sh
netcdf_libdir = /usr/lib64

CXX = c++
CFLAGS = -DSTATVFS -DNC3

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

LIBS = -lnetcdf -lm

all: \
diskUsage.x \
fModTime.x \
getNC_att.x \
getStatus.x \
qC.x \
syncFiles.x \
testParentChild.x \
testValidNC.x \
unixTime.x
# hist.x

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

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

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

install:
cp -f *.x ../bin

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