1 |
# $Id: Makefile,v 1.3 2006/12/12 16:21:38 brun Exp $ |
# $Id: Makefile 306 2007-11-19 16:15:32Z rdm $ |
2 |
|
|
3 |
############################### geant4_vmc Makefile ########################### |
############################### geant4_vmc Makefile ########################### |
4 |
|
|
8 |
PLATFORM = $(shell root-config --arch) |
PLATFORM = $(shell root-config --arch) |
9 |
endif |
endif |
10 |
|
|
11 |
|
|
12 |
TOPDIR = $(G4VMC_DIR) |
TOPDIR = $(G4VMC_DIR) |
13 |
BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
14 |
LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM) |
LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM) |
16 |
ifeq ($(ROOTSYS),) |
ifeq ($(ROOTSYS),) |
17 |
ROOT_INCDIR = $(shell root-config --incdir) |
ROOT_INCDIR = $(shell root-config --incdir) |
18 |
ROOT_BINDIR = $(shell root-config --prefix)/bin |
ROOT_BINDIR = $(shell root-config --prefix)/bin |
19 |
|
ROOT_ETCDIR = $(shell root-config --prefix)/etc/vmc |
20 |
else |
else |
21 |
ROOT_INCDIR = $(ROOTSYS)/include |
ROOT_INCDIR = $(ROOTSYS)/include |
22 |
ROOT_BINDIR = $(ROOTSYS)/bin |
ROOT_BINDIR = $(ROOTSYS)/bin |
23 |
|
ROOT_ETCDIR = $(ROOTSYS)/etc/vmc |
24 |
endif |
endif |
25 |
|
|
26 |
include $(TOPDIR)/config/Makefile.$(PLATFORM) |
include $(ROOT_ETCDIR)/Makefile.$(PLATFORM) |
27 |
|
|
28 |
############################### Sources ####################################### |
############################### Sources ####################################### |
29 |
|
|
30 |
# Rules |
# Rules |
31 |
# |
# |
32 |
include $(TOPDIR)/config/MakeRules |
include $(ROOT_ETCDIR)/MakeRules |
33 |
|
|
34 |
# Dictionary |
# Dictionary |
35 |
# |
# |
36 |
GDICT := $(BINDIR)/$(PACKAGE)Cint.cxx |
GDICT := $(BINDIR)/$(PACKAGE)Cint.cxx |
37 |
GDICTH := $(GDICT:.cxx=.h) |
GDICTH := $(GDICT:.cxx=.h) |
38 |
GDICTO := $(patsubst %.cxx,$(BINDIR)/%.o,$(GDICT)) |
GDICTO := $(patsubst %.cxx,%.o,$(GDICT)) |
39 |
|
|
40 |
# Sources |
# Sources |
41 |
# |
# |
44 |
|
|
45 |
# C++ Headers processed by CINT |
# C++ Headers processed by CINT |
46 |
# |
# |
47 |
HDRS := inc/PamG4RunConfiguration.h \ |
HDRS := include/PamG4RunConfiguration.h \ |
48 |
inc/$(PACKAGE)LinkDef.h |
# include/PamG4RangeCutsPhysicsList.h \ |
49 |
|
# include/PamG4RangeCutsPhysics.h \ |
50 |
|
include/$(PACKAGE)LinkDef.h |
51 |
|
|
52 |
# Objects |
# Objects |
53 |
# |
# |
57 |
# Make include list |
# Make include list |
58 |
# |
# |
59 |
ifndef G4INCLUDE |
ifndef G4INCLUDE |
60 |
G4INCLUDE := $(G4LIB)../../include |
G4INCLUDE := $(G4INSTALL)/include |
61 |
endif |
endif |
62 |
|
|
63 |
INCDIR := -Iinc -I$(G4INCLUDE) \ |
INCDIR := -Iinclude -I$(G4INCLUDE) \ |
64 |
-I$(CLHEP_BASE_DIR)/include \ |
-I$(CLHEP_BASE_DIR)/include \ |
65 |
-I$(G4INSTALL)/source/physics_lists/hadronic/LHEP_BIC_HP/include \ |
-I$(G4INSTALL)/physics_lists/hadronic/LHEP_BERT/include \ |
66 |
-I$(G4INSTALL)/source/physics_lists/hadronic/Packaging/include \ |
-I$(G4INSTALL)/physics_lists/hadronic/Packaging/include \ |
67 |
-I$(G4INSTALL)/examples/novice/N03/include \ |
-I$(G4INSTALL)/examples/novice/N03/include \ |
68 |
-I$(TOPDIR)/include |
-I$(TOPDIR)/include |
69 |
|
|
70 |
ifneq ($(USE_VGM),) |
ifneq ($(USE_VGM),) |
176 |
|
|
177 |
depend: $(SRCS) |
depend: $(SRCS) |
178 |
|
|
179 |
TOCLEAN = $(BINDIR) $(TOPDIR)/include |
TOCLEAN = $(BINDIR) |
180 |
TOCLEANALL = $(BINDIR) $(TOPDIR)/include $(LIBDIR) |
TOCLEANALL = $(BINDIR) $(LIBDIR) |
181 |
|
|
182 |
MAKEDIST = ../config/makedist.sh lib |
MAKEDIST = ../config/makedist.sh lib |
183 |
MAKEDISTSRC = ../config/makedist.sh |
MAKEDISTSRC = ../config/makedist.sh |
184 |
|
|
185 |
include $(TOPDIR)/config/MakeMacros |
include $(ROOT_ETCDIR)/MakeMacros |
186 |
|
|
187 |
############################### Dependencies ################################## |
############################### Dependencies ################################## |
188 |
|
|