]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Makefile.flat
Rows per patch are locally stored.
[u/mrichter/AliRoot.git] / Makefile.flat
index ffe01890277c248e62e6e23844be3bd9def8deb4..e9715c2e2798bab77aa7987a1a5aae7bd32f5fc7 100644 (file)
@@ -51,11 +51,17 @@ endif
 # COMMENTED OUT FOR TEST PURPOSES
 
 ALIROOTMODULES:= STEER \
-        TGeant3 PHOS TRD TPC ZDC MUON PMD FMD TOF ITS \
-         CASTOR RICH START STRUCT EVGEN RALICE ALIFAST \
-        THijing CONTAINERS MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN
+        TGeant3 TFluka PHOS TRD TPC ZDC MUON PMD FMD TOF ITS \
+         CRT RICH START STRUCT VZERO EVGEN RALICE ALIFAST \
+        THijing CONTAINERS MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN \
+         THerwig
+
+GEANT4MODULES:=        TGeant4 AliGeant4
+ifeq ($(MAKECMDGOALS),geant4)
+ALIROOTMODULES += $(GEANT4MODULES)
+endif
 
-CERNMODULES:= PDF PYTHIA PYTHIA6 GEANT321 MINICERN HIJING
+CERNMODULES:= PDF PYTHIA PYTHIA6 GEANT321 MINICERN HIJING HERWIG
 
 MODULES:=$(ALIROOTMODULES) $(CERNMODULES)
 
@@ -87,7 +93,7 @@ DEPINC += $(patsubst %,-I%,$(ROOTSYS)/include)
 #
 #             Libraries to link binaries against
 #            Libraries will be linked againstSHLIB
-LIBS := $(ROOTLIBS) $(SYSLIBS) $(GLIBS)
+LIBS := $(GLIBS) $(ROOTLIBS) $(SYSLIBS)
 #############################################################
 
 
@@ -116,7 +122,7 @@ include build/module.dep
 #############################################################
 # 
 #        Check if module.mk is present for the library
-%.mk:
+%.mk: build/module.tpl
 ifndef ALIQUIET
        @echo "***** Creating $@ file *****";
 endif
@@ -166,12 +172,16 @@ include build/dummy.d
 
 # targets
 
-.PHONY:                alilibs aliroot makedistr clean
+.PHONY:                alilibs aliroot geant4 makedistr clean
 
 modules: $(patsubst %,%/module.mk,$(MODULES))  
 
+geant4modules: $(patsubst %,%/module.mk,$(GEANT4MODULES)) 
+
 aliroot: $(BINPATH) $(ALLEXECS) alilibs bin
 
+geant4: aliroot
+
 alilibs: $(LIBPATH) $(ALLLIBS) lib modules
 
 # Single Makefile "distribution": Makefile + modules + mkdepend scripts