Boost for assymmetric systems added.
[u/mrichter/AliRoot.git] / Makefile.old
CommitLineData
b9d0a01d 1############################### Main Makefile #################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8MAKEFLAGS += -s
9
10##### MACROS #####
11
12PACKAGE = Main
13
14DOTS = " ................................................................................"
15
16PRETTY = $(AWK) '{print $$0 substr($(DOTS),1,79-length($$0))}'
17
18##### Module libraries #####
19
20ALIROOT_DIRS = STEER AliGeant3 TRD PHOS TPC ZDC MUON PMD FMD TOF ITS \
21 CASTOR RICH START STRUCT EVGEN RALICE ALIFAST \
22 THijing CONTAINERS MEVSIM TMEVSIM THbtp HBTP EMCAL HBTAN
23
24##### TARGETS #####
25
26default: lib bin alilibs aliroot
27
28lib bin:
29 @mkdir $@
30
31alilibs: lib
32 echo MAKEFLAGS = $(MAKEFLAGS)
33 for i in $(ALIROOT_DIRS) ; do \
34 echo "Making headers in $$i" | $(PRETTY); \
35 ${MAKE} -C $$i headers ; \
36 done
37 @for i in $(ALIROOT_DIRS) ; do \
38 echo "Making dependencies in $$i" | $(PRETTY); \
39 ${MAKE} -C $$i depend ; \
40 done
41 @for i in $(ALIROOT_DIRS) ; do \
42 echo "Making in $$i" | $(PRETTY); \
43 ${MAKE} -C $$i ; \
44 done
45
46aliroot pdf pythia6 hijing: FORCE
47 @DIR=`echo $@ | $(AWK) '{print toupper($$0)}'` ; \
48 echo "Making dependencies in $$DIR" | $(PRETTY); \
49 ${MAKE} -C $$DIR depend;\
50 echo "Making in $$DIR" | $(PRETTY); \
51 ${MAKE} -C $$DIR
52
53geant3: FORCE
54 @DIR=$@; \
55 echo "Making in $$DIR" | $(PRETTY); \
56 ${MAKE} -C $$DIR
57
58#TGeant4 AliGeant4 AliFluka : FORCE
59AliGeant4 AliFluka : FORCE
60 @DIR=$@; \
61 echo "Making dependencies in $$DIR" | $(PRETTY); \
62 ${MAKE} -f Makefile.old -C $$DIR depend;\
63 echo "Making in $$DIR" | $(PRETTY); \
64 ${MAKE} -f Makefile.old -C $$DIR
65
66cernlibs: pythia6 pdf hijing
67
68#geant4: TGeant4 AliGeant4
69geant4: AliGeant4
70
71Flugg: FORCE
72 @DIR=$@; \
73 echo "Making in $$DIR" | $(PRETTY); \
74 ${MAKE} -C $$DIR/source
75
76#fluka: Flugg TGeant4 AliGeant4 AliFluka
77fluka: Flugg AliGeant4 AliFluka
78
79all: cernlibs default
80
81FORCE:
82
83############################### General Macros ################################
84
85# include $(ALICE_ROOT)/conf/GeneralMacros
86
87############################### Specific Macros ###############################
88
89STRUCT_DIRS = html conf macros data share include Euclid picts \
90 doc etc Makefile .rootrc
91
92LIBRARY_DIRS = PYTHIA6 PDF HIJING
93
94dist: AliRoot$(VERSION).tar.gz
95
96AliRoot$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) ALIROOT
97
98distall: AliOffline$(VERSION).tar.gz
99
100AliOffline$(VERSION).tar.gz: $(STRUCT_DIRS) $(ALIROOT_DIRS) $(LIBRARY_DIRS) ALIROOT
101
102distlib: AliLibs$(VERSION).tar.gz
103
104AliLibs$(VERSION).tar.gz: $(LIBRARY_DIRS)
105
106AliRoot$(VERSION).tar.gz AliLibs$(VERSION).tar.gz AliOffline$(VERSION).tar.gz:
107 @rm -f $(ALICE)/$@
108 @rm -f `find . -name '*~' -print` \
109 `find . -name '*.bak' -print` \
110 `find . -name '.*~' -print` \
111 `find . -name '*\#*' -print`
112 @rm -f /tmp/saves
113 @ls -1d $^ | sed -e "s/^/$(ALICE_LEVEL)\//" > /tmp/saves
114 @cd $(ALICE) ; \
115 gtar cvfz $@ --exclude '*.o' --exclude '*Cint.*' \
116 --exclude 'roothtml' --exclude 'CVS' \
117 --exclude Make-depend --exclude '*html/gif' \
118 --exclude "*tgt_*" --exclude check \
119 `cat /tmp/saves`
120
121htmldocnew: FORCE
122 @for i in $(ALIROOT_DIRS) ; do \
123 echo "Making HTML doc for $$i" ; \
124 rm -rf $(ALICE_ROOT)/$$i/html ; \
125 cd $(ALICE_ROOT)/$$i ; \
126 aliroot -b -q mkhtml.C > /dev/null; \
127 for j in `ls *.C` ; do \
128 echo $$j ; \
129 aliroot -b -q "mkhtml.C(\"$$j\")" > /dev/null; \
130 done \
131 done
132
133
134htmldoc: FORCE
135 @rm -rf html/roothtml
136 @rm -f html/picts
137 @rm -f /tmp/macros
138 @cd html ;\
139 aliroot -q -b "mkhtml.C(0,1)" ;\
140 ls ../macros/*.C > /tmp/macros ;\
141 for i in $(ALIROOT_DIRS) ; do \
142 ls ../$$i/*.C 2>/dev/null >> /tmp/macros ;\
143 done ;\
144 for i in `cat /tmp/macros` ; do \
145 echo $$i ; \
146 aliroot -b -q "mkhtml.C(\"$$i\")" > /dev/null ;\
147 done ;\
148 ./makeExampleList ;
149 @ln -s ../picts html/picts
150 @ln -s ../../picts html/roothtml/picts
151 @ln -s ../../../picts html/roothtml/src/picts
152 @ln -s ../../../picts html/roothtml/examples/picts
153
154clean: FORCE
155 @rm -f *~ \#*
156 @rm -f include/*
157 @for i in $(ALIROOT_DIRS) ALIROOT; do \
158 ${MAKE} -C $$i macroclean ; \
159 done
160 ifdef G4INSTALL
161 # @for i in TGeant4 AliGeant4; do \
162 @for i in AliGeant4; do \
163 ${MAKE} -C $$i macroclean ; \
164 done
165 endif
166
167libclean: FORCE
168 @rm -f *~ \#*
169 @for i in $(LIBRARY_DIRS) ; do \
170 ${MAKE} -C $$i macroclean ; \
171 done
172
173allclean: libclean clean
174
175# IRST coding rule check
176#CHECK_DIRS = $(ALIROOT_DIRS) ALIROOT TGeant4 AliGeant4
177CHECK_DIRS = $(ALIROOT_DIRS) ALIROOT AliGeant4
178check:
179 @for i in $(CHECK_DIRS) ; do \
180 echo "Checking $$i" ; \
181 ${MAKE} -C $$i check ; \
182 done
183
184REVENG_DIRS = $(ALIROOT_DIRS)
185
186reveng:
187 @for i in $(REVENG_DIRS) ; do \
188 echo "Reverse engineering $$i" ; \
189 ${MAKE} -C $$i reveng ; \
190 done
191
192
193
194
195
196
197
198