source: JEM-EUSO/esaf_lal/tags/v1_r0/esaf/packages/simulation/detector/tools/GNUmakefile @ 117

Last change on this file since 117 was 117, checked in by moretto, 11 years ago

ESAF version compilable on mac OS

File size: 2.0 KB
Line 
1# ESAF : Euso Simulation and Analysis Framework
2# GNUmakefile for optics
3# $Id: GNUmakefile 2206 2005-10-17 11:45:03Z thea $
4# A.Thea, J.Watts created Mar, 17 2004
5
6PACKAGENAME := dettools
7
8ifndef ESAFINSTALL
9ESAFINSTALL = ../../../..
10endif
11
12ESAFPACKAGES = $(ESAFINSTALL)/packages
13# Config parameters
14
15include $(ESAFINSTALL)/packages/config.gmk
16
17# Include paths needed for rootcint dictionary generation
18
19INCLUDES += -I$(ESAFPACKAGES)/common/base/include
20INCLUDES += -I$(ESAFPACKAGES)/common/root/include
21INCLUDES += -I$(ESAFPACKAGES)/common/eventviewer/include
22INCLUDES += -I$(ESAFPACKAGES)/simulation/detector/electronics/include
23INCLUDES += -I$(ESAFPACKAGES)/simulation/detector/optics/include
24INCLUDES += -I$(ESAFPACKAGES)/simulation/radiativetransfer/include
25INCLUDES += -I$(ESAFPACKAGES)/simulation/framework/include
26INCLUDES += -I$(ESAFPACKAGES)/simulation/tools/include
27
28# headers and settings needed for the local library compilation
29CXXFLAGS += $(INCLUDES)
30
31include $(ESAFINSTALL)/packages/makeso.gmk
32
33# following part of makefile is used to build a reduced rootlibrary that
34# contains just the classes needed to read rootfile
35
36shared := OpticsAnalysis
37
38LIBTARGET := lib$(shared).$(SHEX)
39linkdef := OALinkDef
40dict := G___OADict
41
42libclasses := OADBTree OADBHeader OADBPhotons OADBConverter
43
44pureheaders :=
45
46dicts := $(patsubst %,%.cc,$(dict))
47dicth := $(dicts:.cc=.h)
48libheaders := $(patsubst %,include/%.hh,$(libclasses) $(pureheaders) $(linkdef))
49libsources := $(patsubst %,src/%.cc,$(libclasses)) $(dicts)
50libobjects := $(patsubst %,$(PACKAGETMP)/%.o,$(libclasses))
51
52liblink :=
53libldflags := -L$(shell root-config --libdir)
54
55$(LIBDIR)/$(LIBTARGET): $(PACKAGELIB) $(PACKAGETMP)/obj.last
56        @echo Building $(shared) dictionary...
57        @rootcint -f $(dicts) -c $(libheaders)
58        @echo Building $(LIBTARGET)...
59        @$(CXX) $(SO_OPTS) $(CXXFLAGS) $(dicts) $(libobjects) -L$(LIBDIR) $(libldflags) $(liblink) -o $@
60        @echo Cleaning temporary files...
61        @rm -r $(dicts) $(dicth)
62
63rootlib: $(LIBDIR)/$(LIBTARGET)
Note: See TracBrowser for help on using the repository browser.