# # arch_spec_geant.mk # # Architecture/site specific makefile fragment # for inclusion by packages that use GEANT. # # GEANT_LIB and GEANT_INC are environment variables # containing (or optionally loaded with) the # location of the GEANT files on the local machine. # # These are then appended to CPPFLAGS and LDFLAGS as # overrides. # # Note that the debug version of the geant library is used if available. # # 19990305 kreymer - added support for debug/normal/geant321 library names # this allows us to use geant from ftp.fnal.gov # ifndef GEANT_DIR GEANT_INC = /usr/local/include GEANT_LIB = /usr/local/lib else ifndef GEANT_INC GEANT_INC = $(GEANT_DIR)/src endif ifndef GEANT_LIB GEANT_LIB = $(GEANT_DIR)/lib endif endif override CPPFLAGS += -I$(GEANT_INC) -DCERNLIB_TYPE override LDFLAGS += -L$(GEANT_LIB) # Use debug if available, 321 name if available ifneq (,$(wildcard $(GEANT_DIR)/lib/libgeant321.g.a )) override LOADLIBES += -lgeant321.g else ifneq (,$(wildcard $(GEANT_DIR)/lib/libgeant.g.a )) override LOADLIBES += -lgeant.g else ifneq (,$(wildcard $(GEANT_DIR)/lib/libgeant321.a )) override LOADLIBES += -lgeant321 else ifneq (,$(wildcard $(GEANT_DIR)/lib/libgeant.a )) override LOADLIBES += -lgeant endif endif endif endif