#GNUmakefile,v 1.0 18/11/2006 testa # -------------------------------------------------------------- # GNUmakefile pour exempleTP # -------------------------------------------------------------- name := Spinotron G4TARGET := $(name) G4EXLIB := true G4_NO_VERBOSE := true CPPFLAGS += $(shell root-config --cflags) -w CPPFLAGS += -I/usr/local/include EXTRALIBS := $(shell root-config --ldflags) $(shell root-config --libs) #EXTRALIBS += -L/usr/local/lib -lcadmesh -lassimp -ltet ifndef CALIB CPPFLAGS += -DPHASESPACE endif .PHONY: all all: lib bin include $(G4INSTALL)/config/binmake.gmk # ifndef G4INSTALL # G4INSTALL = ../../.. # endif # # .PHONY: all # all: lib bin # include $(G4INSTALL)/config/architecture.gmk # # include $(G4INSTALL)/config/binmake.gmk # # # CFLAGS := $(shell root-config --cflags) -Wall # # EXTRALIBS := $(shell root-config --ldflags) $(shell root-config --libs) # CXXFLAGS_WITHOUT_O := $(filter-out -O% , $(CXXFLAGS)) $(shell root-config --cflags) # CXXFLAGS_WITHOUT_O := $(filter-out +O% , $(CXXFLAGS_WITHOUT_O)) # # # # ROOT # # # ifdef ROOTSYS # CPPFLAGS += $(shell root-config --cflags) # # ROOTLIBS = $(shell $(ROOTSYS)bin/root-config --glibs) -lMinuit -lHtml # # ROOTLIBS := $(filter-out -lNew,$(ROOTLIBS)) # # ROOTLIBS := $(filter-out -lThread,$(ROOTLIBS)) # # ROOTLIBS := $(filter-out -lpthread,$(ROOTLIBS)) # LDLIBS += $(shell root-config --ldflags) $(shell root-config --libs) # # endif