Import Geant4 3.0.0 source tree
This commit is contained in:
+44
-7
@@ -1,4 +1,4 @@
|
||||
# $Id: binmake.gmk,v 1.45 2000/05/23 05:32:14 stesting Exp $
|
||||
# $Id: binmake.gmk,v 1.54 2000/12/05 17:19:49 morita Exp $
|
||||
# ----------------------------------------------------------
|
||||
# Script defining rules and paths for making binaries.
|
||||
# Gabriele Cosmo, 25/06/1998.
|
||||
@@ -13,6 +13,7 @@ G4LIBDIR := $(G4LIB)/$(G4SYSTEM)
|
||||
include $(G4INSTALL)/config/G4UI_USE.gmk
|
||||
include $(G4INSTALL)/config/G4VIS_USE.gmk
|
||||
include $(G4INSTALL)/config/interactivity.gmk
|
||||
include $(G4INSTALL)/config/analysis.gmk
|
||||
|
||||
ifndef INCFLAGS
|
||||
INCFLAGS := \
|
||||
@@ -22,6 +23,7 @@ ifndef INCFLAGS
|
||||
-I$(G4BASE)/global/HEPNumerics/include \
|
||||
-I$(G4BASE)/run/include \
|
||||
-I$(G4BASE)/materials/include \
|
||||
-I$(G4BASE)/parameterisations/include \
|
||||
-I$(G4BASE)/particles/management/include \
|
||||
-I$(G4BASE)/particles/bosons/include \
|
||||
-I$(G4BASE)/particles/leptons/include \
|
||||
@@ -77,7 +79,8 @@ ifndef INCFLAGS
|
||||
-I$(G4BASE)/readout/include \
|
||||
-I$(G4BASE)/event/include \
|
||||
-I$(G4BASE)/graphics_reps/include \
|
||||
-I$(G4BASE)/intercoms/include
|
||||
-I$(G4BASE)/intercoms/include \
|
||||
-I$(G4BASE)/g3tog4/include
|
||||
endif
|
||||
|
||||
ifdef G4ODBMS
|
||||
@@ -97,20 +100,41 @@ ifdef G4ODBMS
|
||||
-DHep_HAS_BUILDIN_BOOL_CONSTANTS
|
||||
endif
|
||||
|
||||
ifndef G4LIB_USE_GRANULAR
|
||||
GLOBALLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.a && echo yes)
|
||||
ifndef GLOBALLIBS
|
||||
GLOBALLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.$(SHEXT) && echo yes)
|
||||
SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.$(SHEXT) && echo yes)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifndef SHAREDLIBS
|
||||
SHAREDLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4globman.$(SHEXT) && echo yes)
|
||||
endif
|
||||
|
||||
CPPFLAGS += $(INCFLAGS)
|
||||
LDFLAGS += -L$(G4LIBDIR)
|
||||
|
||||
ifdef SHAREDLIBS
|
||||
ifdef G4RUNPATHOPTION
|
||||
LDFLAGS += $(G4RUNPATHOPTION)$(G4LIBDIR)
|
||||
endif
|
||||
endif
|
||||
|
||||
G4TMPDIR := $(G4TMP)/$(G4SYSTEM)/$(G4TARGET)
|
||||
G4BINDIR := $(G4BIN)/$(G4SYSTEM)
|
||||
|
||||
ifdef G4EXLIB
|
||||
G4LIBDIR := $(G4TMPDIR)
|
||||
LDFLAGS += -L$(G4LIBDIR)
|
||||
ifdef SHAREDLIBS
|
||||
ifdef G4RUNPATHOPTION
|
||||
LDFLAGS += $(G4RUNPATHOPTION)$(G4LIBDIR)
|
||||
endif
|
||||
endif
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
endif
|
||||
|
||||
GLOBALLIBS := $(shell test -f $(G4LIB)/$(G4SYSTEM)/libG4global.a && echo yes)
|
||||
|
||||
ifdef LDLIBS
|
||||
USER_DEFINED_LDLIBS := 1
|
||||
endif
|
||||
@@ -143,7 +167,9 @@ ifdef GLOBALLIBS
|
||||
LDLIBS2 := -lG4readout \
|
||||
-lG4run \
|
||||
-lG4event \
|
||||
-lG3toG4 \
|
||||
-lG4tracking \
|
||||
-lG4parmodels \
|
||||
-lG4processes \
|
||||
-lG4digits+hits \
|
||||
-lG4track \
|
||||
@@ -163,7 +189,7 @@ else
|
||||
$(G4LIB)/$(G4SYSTEM)/liblist \
|
||||
-d $(G4TMPDIR) \
|
||||
< $(G4LIB)/$(G4SYSTEM)/libname.map; fi)
|
||||
# Warning: do not add to LDLIBS2 with += becuase this causes it to be
|
||||
# Warning: do not add to LDLIBS2 with += because this causes it to be
|
||||
# expanded too soon. Hence extra libraries must have a different name...
|
||||
# Extra libraries to resolve remaining circular dependencies...
|
||||
# LDLIBS2EXTRA =
|
||||
@@ -172,6 +198,7 @@ endif
|
||||
# LDLIBS3 contains the first set of low level libraries...
|
||||
#
|
||||
LDLIBS3 += $(INTYLIBS)
|
||||
LDLIBS3 += $(ANALYSISLIBS)
|
||||
|
||||
endif # ifndef USER_DEFINED_LDLIBS
|
||||
|
||||
@@ -211,7 +238,11 @@ else
|
||||
LDLIBS = $(LDLIBS_PREFINAL)
|
||||
endif
|
||||
|
||||
|
||||
ifdef transform-RPath
|
||||
#invoke system specific transformation of
|
||||
include $(G4INSTALL)/config/sys/$(G4SYSTEM)-runpath.gmk
|
||||
endif
|
||||
|
||||
sources := $(wildcard $(G4TARGET).cc)
|
||||
objects := $(patsubst %.cc,$(G4TMPDIR)/exe/%.o,$(sources))
|
||||
dependencies := $(patsubst %.cc,$(G4TMPDIR)/exe/%.d,$(sources))
|
||||
@@ -277,6 +308,12 @@ else
|
||||
-c $(OUT_OBJ)$(G4TMPDIR)/exe/$(G4TARGET).o $(G4TARGET).cc
|
||||
endif
|
||||
|
||||
ifdef G4ODBMS
|
||||
GPPFLAGS := "-MM"
|
||||
else
|
||||
GPPFLAGS := "-M"
|
||||
endif
|
||||
|
||||
# Make the $(G4TARGET).d file and include it.
|
||||
ifdef G4SKIP_DEPEND
|
||||
$(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
|
||||
@@ -288,7 +325,7 @@ $(G4TMPDIR)/exe/$(G4TARGET).d: $(G4TARGET).cc
|
||||
@if [ ! -d $(G4TMPDIR)/exe ] ; then mkdir $(G4TMPDIR)/exe ;fi
|
||||
@echo Making dependency for file $<...
|
||||
@($(ECHO) $(G4TMPDIR)/exe/\\c ; \
|
||||
g++ -MM $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@
|
||||
g++ $(GPPFLAGS) $(CPPFLAGS) $< ) | sed 's!$(G4TMPDIR)/exe/$*.o!& $@!' >$@
|
||||
-include $(dependencies)
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user