/[PAMELA software]/PamUnfold/Makefile
ViewVC logotype

Contents of /PamUnfold/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Aug 30 16:51:02 2018 UTC (6 years, 3 months ago) by mayorov
Branch: MAIN
CVS Tags: PU1r1, HEAD
Error occurred while calculating annotation data.
PamUnfold was upload to CVS

1 SHELL=/bin/bash
2 WORKDIR=$(shell pwd)
3
4 CC = g++
5 CXX = g++
6 CFLAGS = -g -fno-common -pthread
7 LIBS = -L /usr/lib `root-config --glibs` -lTMVA
8 ROOTINCS = `root-config --incdir`
9 INCS = -I${ROOTINCS} -I${WORKDIR}/inc/
10 ROOTCINT = rootcint
11
12
13 ${WORKDIR}/src/%.o : ${WORKDIR}/src/%.cpp
14 @(echo "Compiling $(@F)")
15 $(CC) $(CFLAGS) $(INCS) -c $< -o $@
16
17 NOBJS = ${WORKDIR}/src/RanGen.o ${WORKDIR}/src/PamUnfold.o ${WORKDIR}/src/PamUnfoldDict.o
18
19 all: objects link
20
21 link: $(NOBJS)
22 $(CXX) -dynamiclib $(INCS) -o ${WORKDIR}/lib/libPamUnfold.dylib $^ ${LIBS}
23
24 objects : dict $(NOBJS)
25
26 dict : ${WORKDIR}/inc/PamUnfoldLinkDef.h
27 ${ROOTCINT} -f ${WORKDIR}/src/PamUnfoldDict.cpp -c -I${ROOTINCS} ${WORKDIR}/inc/RanGen.h ${WORKDIR}/inc/PamUnfold.h ${WORKDIR}/inc/PamUnfoldLinkDef.h
28
29 .PHONY : clean install
30
31 clean:
32 rm -f ${WORKDIR}/src/*.o ${WORKDIR}/lib/*.dylib ${WORKDIR}/src/PamUnfoldDict*
33
34 install:
35 cp ${WORKDIR}/inc/RanGen.h ${LOC_INC}
36 cp ${WORKDIR}/inc/PamUnfold.h ${LOC_INC}
37 cp ${WORKDIR}/lib/libPamUnfold.dylib ${LOC_LIB}

  ViewVC Help
Powered by ViewVC 1.1.23