9 |
endif |
endif |
10 |
|
|
11 |
|
|
12 |
TOPDIR = $(G4VMC_DIR) |
TOPDIR = $(PWD) |
13 |
BINDIR = $(G4WORKDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
BINDIR = $(TOPDIR)/tmp/tgt_$(PLATFORM)/$(PACKAGE) |
14 |
LIBDIR = $(G4WORKDIR)/lib/tgt_$(PLATFORM) |
LIBDIR = $(TOPDIR)/lib/tgt_$(PLATFORM) |
15 |
|
|
16 |
|
|
17 |
ifeq ($(ROOTSYS),) |
ifeq ($(ROOTSYS),) |
18 |
ROOT_INCDIR = $(shell root-config --incdir) |
ROOT_INCDIR = $(shell root-config --incdir) |
66 |
-I$(G4INSTALL)/physics_lists/hadronic/LHEP_BERT/include \ |
-I$(G4INSTALL)/physics_lists/hadronic/LHEP_BERT/include \ |
67 |
-I$(G4INSTALL)/physics_lists/hadronic/Packaging/include \ |
-I$(G4INSTALL)/physics_lists/hadronic/Packaging/include \ |
68 |
-I$(G4INSTALL)/examples/novice/N03/include \ |
-I$(G4INSTALL)/examples/novice/N03/include \ |
69 |
|
-I$(G4VMC_DIR)/include \ |
70 |
-I$(TOPDIR)/include |
-I$(TOPDIR)/include |
71 |
|
|
72 |
ifneq ($(USE_VGM),) |
ifneq ($(USE_VGM),) |
162 |
############################### Targets ####################################### |
############################### Targets ####################################### |
163 |
|
|
164 |
|
|
165 |
|
|
166 |
SLIBRARY = $(LIBDIR)/lib$(PACKAGE).$(SL) |
SLIBRARY = $(LIBDIR)/lib$(PACKAGE).$(SL) |
167 |
ALIBRARY = $(LIBDIR)/lib$(PACKAGE).a |
ALIBRARY = $(LIBDIR)/lib$(PACKAGE).a |
168 |
|
|
169 |
|
LIBDIRUP = ../lib/tgt_$(PLATFORM) |
170 |
|
CP_FILE=$(shell mkdir -p ${LIBDIRUP})\ |
171 |
|
$(shell cp -rf $(LIBDIR)/lib$(PACKAGE).$(SL) ${LIBDIRUP}/) |
172 |
|
|
173 |
|
|
174 |
|
|
175 |
default: depend $(SLIBRARY) |
default: depend $(SLIBRARY) |
176 |
all: default includes |
all: default includes |
177 |
|
|
178 |
|
|
179 |
$(LIBDIR)/lib$(PACKAGE).$(SL): $(OBJS) |
$(LIBDIR)/lib$(PACKAGE).$(SL): $(OBJS) $(CP_FILE) |
180 |
$(LIBDIR)/lib$(PACKAGE).a: $(OBJS) |
$(LIBDIR)/lib$(PACKAGE).a: $(OBJS) $(CP_FILE) |
181 |
|
|
182 |
DICT:= $(GDICT) |
DICT:= $(GDICT) |
183 |
|
|