Corrected library order + fixes needed to compile static libraries and executables...
[u/mrichter/AliRoot.git] / ALIROOT / binaliroot.pkg
CommitLineData
651e35f1 1#-*- Mode: Makefile -*-
2
efaab2ef 3SRCS:=aliroot.cxx
d94e688b 4CSRCS:=fpu.c
efaab2ef 5
2d8cad5a 6ELIBSDIR:=
efaab2ef 7
67c00974 8
9
4c166a14 10ELIBS:= MUONevaluation \
11 MUONmapping \
12 MUONshuttle \
13 MUONgraphics \
14 MUONsim \
15 MUONrec \
16 MUONgeometry \
17 MUONcalib \
18 MUONbase \
19 MUONraw \
20 MUONtrigger \
21 MUONcore \
6612ace0 22 TPCbase TPCsim TPCrec TPCfast \
7d62fb64 23 ITSbase ITSsim ITSrec PMDbase PMDsim PMDrec TRDbase \
24 TRDsim TRDrec TRDfast \
bcc9e89e 25 FMDbase FMDsim FMDrec TOFbase TOFrec TOFsim PHOSUtils PHOSbase PHOSsim PHOSrec \
c53ba60b 26 ACORDEbase ACORDEsim ACORDErec \
f4b3bbb7 27 HMPIDbase HMPIDrec HMPIDsim \
b3b4fb66 28 ZDCbase ZDCsim ZDCrec VZERObase VZEROsim VZEROrec \
0c5b726e 29 EMCALUtils EMCALbase EMCALsim EMCALrec BCM \
4c166a14 30 STRUCT T0base T0sim T0rec EVGEN \
31 FASTSIM microcern \
32 HLTbase TRIGGERbase STAT \
33 STEER \
34 CDB \
35 AOD \
36 ESD \
37 STEERBase \
38 RAWDatasim RAWDatarec RAWDatabase
39
153f3edf 40# THijing hijing \
0ba1c83f 41# THbtp TEPEMGEN \
5f9b2684 42# THerwig herwig TPHIC
86411725 43
89804af3 44ifeq (macosx,$(ALICE_TARGET))
651e35f1 45
5f9b2684 46ELIBSCPP:=$(filter-out microcern,$(ELIBS))
af4ebdd2 47ELIBSCPP:=$(filter-out lhapdf,$(ELIBSCPP))
5f9b2684 48ELIBSCPP:=$(filter-out herwig,$(ELIBSCPP))
5f9b2684 49PACKLDFLAGS:=$(LDFLAGS) $(ELIBSCPP:%=-Wl,-u,_G__cpp_setupG__%)
07a26891 50# On Mac OS X gcc we add the fink libraries
d560b581 51ELIBSDIR+=$(FINK_ROOT)/lib
89804af3 52endif
2ee21e83 53
2d8cad5a 54# The two variables below are used for the creation of profile target.
55# ARLIBS stands for ARchive LIBrarieS and for each module one wants to profile
56# consists of dictionary object file and static library itself.
57# The shared libraries for modules without profiling are listed in the second
58# variable SHLIBS (SHared LIBrarieS).
59# Please note that the order of static libraries is important, the ones
60# which provide code for the others have to be placed after their "clients".
e756ece8 61# For example if ITS uses TPC code, the order has to be ITS TPC
2d8cad5a 62
63ARLIBS:= \
bbf76307 64 FMD/tgt_$(ALICE_TARGET)/G__FMDbase.o $(LIBPATH)/libFMDbase.a \
65 FMD/tgt_$(ALICE_TARGET)/G__FMDsim.o $(LIBPATH)/libFMDsim.a \
66 FMD/tgt_$(ALICE_TARGET)/G__FMDrec.o $(LIBPATH)/libFMDrec.a \
8b168972 67 ACORDE/tgt_$(ALICE_TARGET)/G__ACORDEbase.o $(LIBPATH)/libACORDEbase.a \
68 ACORDE/tgt_$(ALICE_TARGET)/G__ACORDEsim.o $(LIBPATH)/libACORDEsim.a \
69 ACORDE/tgt_$(ALICE_TARGET)/G__ACORDErec.o $(LIBPATH)/libACORDErec.a \
f4b3bbb7 70 HMPID/tgt_$(ALICE_TARGET)/G__HMPIDbase.o $(LIBPATH)/libHMPIDbase.a \
71 HMPID/tgt_$(ALICE_TARGET)/G__HMPIDsim.o $(LIBPATH)/libHMPIDsim.a \
72 HMPID/tgt_$(ALICE_TARGET)/G__HMPIDrec.o $(LIBPATH)/libHMPIDrec.a \
8d40d680 73 ZDC/tgt_$(ALICE_TARGET)/G__ZDCbase.o $(LIBPATH)/libZDCbase.a \
74 ZDC/tgt_$(ALICE_TARGET)/G__ZDCsim.o $(LIBPATH)/libZDCsim.a \
75 ZDC/tgt_$(ALICE_TARGET)/G__ZDCrec.o $(LIBPATH)/libZDCrec.a \
bbf76307 76 VZERO/tgt_$(ALICE_TARGET)/G__VZERObase.o $(LIBPATH)/libVZERObase.a \
77 VZERO/tgt_$(ALICE_TARGET)/G__VZEROsim.o $(LIBPATH)/libVZEROsim.a \
78 VZERO/tgt_$(ALICE_TARGET)/G__VZEROrec.o $(LIBPATH)/libVZEROrec.a \
0c5b726e 79 EMCAL/tgt_$(ALICE_TARGET)/G__EMCALUtils.o $(LIBPATH)/libEMCALUtils.a \
86eb2f1a 80 EMCAL/tgt_$(ALICE_TARGET)/G__EMCALbase.o $(LIBPATH)/libEMCALbase.a \
81 EMCAL/tgt_$(ALICE_TARGET)/G__EMCALsim.o $(LIBPATH)/libEMCALsim.a \
82 EMCAL/tgt_$(ALICE_TARGET)/G__EMCALrec.o $(LIBPATH)/libEMCALrec.a \
ababa197 83 T0/tgt_$(ALICE_TARGET)/G__T0base.o $(LIBPATH)/libT0base.a \
84 T0/tgt_$(ALICE_TARGET)/G__T0sim.o $(LIBPATH)/libT0sim.a \
85 T0/tgt_$(ALICE_TARGET)/G__T0rec.o $(LIBPATH)/libT0rec.a \
31d94b14 86 TOF/tgt_$(ALICE_TARGET)/G__TOFbase.o $(LIBPATH)/libTOFbase.a \
87 TOF/tgt_$(ALICE_TARGET)/G__TOFsim.o $(LIBPATH)/libTOFsim.a \
88 TOF/tgt_$(ALICE_TARGET)/G__TOFrec.o $(LIBPATH)/libTOFrec.a \
bbf76307 89 TRD/tgt_$(ALICE_TARGET)/G__TRDbase.o $(LIBPATH)/libTRDbase.a \
90 TRD/tgt_$(ALICE_TARGET)/G__TRDsim.o $(LIBPATH)/libTRDsim.a \
91 TRD/tgt_$(ALICE_TARGET)/G__TRDrec.o $(LIBPATH)/libTRDrec.a \
92 TRD/tgt_$(ALICE_TARGET)/G__TRDfast.o $(LIBPATH)/libTRDfast.a \
93 PMD/tgt_$(ALICE_TARGET)/G__PMDbase.o $(LIBPATH)/libPMDbase.a \
94 PMD/tgt_$(ALICE_TARGET)/G__PMDsim.o $(LIBPATH)/libPMDsim.a \
95 PMD/tgt_$(ALICE_TARGET)/G__PMDrec.o $(LIBPATH)/libPMDrec.a \
dd17c92c 96 MUON/tgt_$(ALICE_TARGET)/G__MUONmapping.o $(LIBPATH)/libMUONmapping.a \
6cb722ca 97 MUON/tgt_$(ALICE_TARGET)/G__MUONmapping.o $(LIBPATH)/libMUONcalib.a \
98 MUON/tgt_$(ALICE_TARGET)/G__MUONgeometry.o $(LIBPATH)/libMUONgeometry.a \
6490a2d2 99 MUON/tgt_$(ALICE_TARGET)/G__MUONbase.o $(LIBPATH)/libMUONbase.a \
100 MUON/tgt_$(ALICE_TARGET)/G__MUONsim.o $(LIBPATH)/libMUONsim.a \
101 MUON/tgt_$(ALICE_TARGET)/G__MUONrec.o $(LIBPATH)/libMUONrec.a \
86eb2f1a 102 MUON/tgt_$(ALICE_TARGET)/G__MUONraw.o $(LIBPATH)/libMUONraw.a \
bcc9e89e 103 PHOS/tgt_$(ALICE_TARGET)/G__PHOSUtils.o $(LIBPATH)/libPHOSUtils.a \
914143dd 104 PHOS/tgt_$(ALICE_TARGET)/G__PHOSbase.o $(LIBPATH)/libPHOSbase.a \
105 PHOS/tgt_$(ALICE_TARGET)/G__PHOSsim.o $(LIBPATH)/libPHOSsim.a \
106 PHOS/tgt_$(ALICE_TARGET)/G__PHOSrec.o $(LIBPATH)/libPHOSrec.a \
67c00974 107 HLT/tgt_$(ALICE_TARGET)/G__HLTbase.o $(LIBPATH)/libHLTbase.a \
7d62fb64 108 ITS/tgt_$(ALICE_TARGET)/G__ITSbase.o $(LIBPATH)/libITSbase.a \
109 ITS/tgt_$(ALICE_TARGET)/G__ITSsim.o $(LIBPATH)/libITSsim.a \
110 ITS/tgt_$(ALICE_TARGET)/G__ITSrec.o $(LIBPATH)/libITSrec.a \
2d8cad5a 111 STRUCT/tgt_$(ALICE_TARGET)/G__STRUCT.o $(LIBPATH)/libSTRUCT.a \
bbf76307 112 TPC/tgt_$(ALICE_TARGET)/G__TPCbase.o $(LIBPATH)/libTPCbase.a \
113 TPC/tgt_$(ALICE_TARGET)/G__TPCsim.o $(LIBPATH)/libTPCsim.a \
114 TPC/tgt_$(ALICE_TARGET)/G__TPCrec.o $(LIBPATH)/libTPCrec.a \
115 TPC/tgt_$(ALICE_TARGET)/G__TPCfast.o $(LIBPATH)/libTPCfast.a \
2d8cad5a 116 STEER/tgt_$(ALICE_TARGET)/G__STEER.o $(LIBPATH)/libSTEER.a \
b2c624b2 117 STEER/tgt_$(ALICE_TARGET)/G__ESD.o $(LIBPATH)/libESD.a \
86eb2f1a 118 STEER/tgt_$(ALICE_TARGET)/G__CDB.o $(LIBPATH)/libCDB.a \
364543a0 119 RAW/tgt_$(ALICE_TARGET)/G__RAWDatabase.o $(LIBPATH)/libRAWDatabase.a \
120 RAW/tgt_$(ALICE_TARGET)/G__RAWDatasim.o $(LIBPATH)/libRAWDatasim.a \
86eb2f1a 121 RAW/tgt_$(ALICE_TARGET)/G__RAWDatarec.o $(LIBPATH)/libRAWDatarec.a \
b48d2542 122 RAW/tgt_$(ALICE_TARGET)/G__MDC.o $(LIBPATH)/libMDC.a \
123 TRIGGER/tgt_$(ALICE_TARGET)/G__TRIGGERbase.o $(LIBPATH)/libTRIGGERbase.a
2d8cad5a 124
0ba1c83f 125#SHLIBS:= $(BINLIBDIRS) -lEVGEN -lEGPythia6 -lPythia6 -lpythia6 -lAliPythia6 -llhapdf -lTHijing -lhijing -lTHbtp -lTHerwig -lherwig -lTEPEMGEN -lTPHIC -lFASTSIM -lmicrocern
b8e7f153 126SHLIBS:= $(BINLIBDIRS) -lEVGEN -lEGPythia6 -lPythia6 -lpythia6 -lAliPythia6 -llhapdf -lTHijing -lhijing -lTHerwig -lherwig -lTPHIC -lFASTSIM -lmicrocern
89804af3 127