For alpha also the shared version of minicern is needed
[u/mrichter/AliRoot.git] / MINICERN / Makefile
1 ############################### MINICERN Makefile #############################
2
3 # Include machine specific definitions
4
5 include $(ALICE_ROOT)/conf/GeneralDef
6 include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8 PACKAGE = minicern
9
10 INC     = -Ipacklib/zebra \
11           -Ipacklib/kernlib/kerngen \
12           -Imathlib/gen \
13           -Ipacklib/kernlib/kernnum
14
15  
16 # C++ compilation flags
17
18 CXXFLAGS      = $(CXXOPTS) $(CLIBCXXOPTS) $(INC) $(CLIBDEFS)
19  
20 # C compilation flags
21
22 CFLAGS      = $(COPT) $(CLIBCOPT) $(INC) $(CLIBDEFS)
23  
24 # FORTRAN compilation flags
25
26 FFLAGS      = $(FOPT) $(CLIBFOPT) $(INC) $(CLIBDEFS)
27  
28 FSRCS   = dummies.F hbcdf.F fzdummies.F \
29           mathlib/gen/b/atg.F \
30           mathlib/gen/c/gamma.F \
31           mathlib/gen/c/gamma128.F \
32           mathlib/gen/c/gamma64.F \
33           mathlib/gen/d/gauss.F \
34           mathlib/gen/d/gauss128.F \
35           mathlib/gen/d/gauss64.F \
36           mathlib/gen/g/prob.F \
37           mathlib/gen/n/mtlprt.F \
38           mathlib/gen/n/mtlset.F \
39           mathlib/gen/v/ranlux.F \
40           mathlib/gen/v/rnorml.F \
41           mathlib/gen/v/rnormx.F \
42           mathlib/gen/v/rnpssn.F \
43           packlib/kernlib/kerngen/ccgen/getenvf.F \
44           packlib/kernlib/kerngen/ccgencf/cfopen.F \
45           packlib/kernlib/kerngen/ccgencf/cfstat.F \
46           packlib/kernlib/kerngen/tcgen/cfill.F \
47           packlib/kernlib/kerngen/tcgen/cleft.F \
48           packlib/kernlib/kerngen/tcgen/cltou.F \
49           packlib/kernlib/kerngen/tcgen/cross.F \
50           packlib/kernlib/kerngen/tcgen/cutol.F \
51           packlib/kernlib/kerngen/tcgen/flpsor.F \
52           packlib/kernlib/kerngen/tcgen/gshowf.F \
53           packlib/kernlib/kerngen/tcgen/icluns.F \
54           packlib/kernlib/kerngen/tcgen/iumode.F \
55           packlib/kernlib/kerngen/tcgen/kerngt.F \
56           packlib/kernlib/kerngen/tcgen/lenocc.F \
57           packlib/kernlib/kerngen/tcgen/lorenf.F \
58           packlib/kernlib/kerngen/tcgen/ranmar.F \
59           packlib/kernlib/kerngen/tcgen/traceq.F \
60           packlib/kernlib/kerngen/tcgen/ubits.F \
61           packlib/kernlib/kerngen/tcgen/uoptc.F \
62           packlib/kernlib/kerngen/tcgen/utrans.F \
63           packlib/kernlib/kerngen/tcgenc/datimh.F \
64           packlib/kernlib/kerngen/tcgenc/intrac.F \
65           packlib/kernlib/kerngen/tcgenc/timed.F \
66           packlib/kernlib/kerngen/tcgenc/timel.F \
67           packlib/kernlib/kerngen/tcgens/iucomp.F \
68           packlib/kernlib/kerngen/tcgens/iufind.F \
69           packlib/kernlib/kerngen/tcgens/iusame.F \
70           packlib/kernlib/kerngen/tcgens/jbit.F \
71           packlib/kernlib/kerngen/tcgens/jbyt.F \
72           packlib/kernlib/kerngen/tcgens/jrsbyt.F \
73           packlib/kernlib/kerngen/tcgens/sbit0.F \
74           packlib/kernlib/kerngen/tcgens/sbit1.F \
75           packlib/kernlib/kerngen/tcgens/sbyt.F \
76           packlib/kernlib/kerngen/tcgens/ublow.F \
77           packlib/kernlib/kerngen/tcgens/ubunch.F \
78           packlib/kernlib/kerngen/tcgens/ucopiv.F \
79           packlib/kernlib/kerngen/tcgens/ucopy.F \
80           packlib/kernlib/kerngen/tcgens/ucopy2.F \
81           packlib/kernlib/kerngen/tcgens/uctoh.F \
82           packlib/kernlib/kerngen/tcgens/uctoh1.F \
83           packlib/kernlib/kerngen/tcgens/ufill.F \
84           packlib/kernlib/kerngen/tcgens/uhtoc.F \
85           packlib/kernlib/kerngen/tcgens/upkbyt.F \
86           packlib/kernlib/kerngen/tcgens/vblank.F \
87           packlib/kernlib/kerngen/tcgens/vfill.F \
88           packlib/kernlib/kerngen/tcgens/vmax.F \
89           packlib/kernlib/kerngen/tcgens/vmod.F \
90           packlib/kernlib/kerngen/tcgens/vscale.F \
91           packlib/kernlib/kerngen/tcgens/vunit.F \
92           packlib/kernlib/kerngen/tcgens/vzero.F \
93           packlib/kernlib/kernnum/e104fort/fint.F \
94           packlib/kernlib/kernnum/e106fort/locatf.F \
95           packlib/kernlib/kernnum/f010fort/f010pr.F \
96           packlib/kernlib/kernnum/f010fort/rinv.F \
97           packlib/kernlib/kernnum/f011fort/rfact.F \
98           packlib/kernlib/kernnum/f011fort/rfinv.F \
99           packlib/kernlib/kernnum/f011fort/tmprnt.F \
100           packlib/kernlib/kernnum/n001fort/kerset.F \
101           packlib/zebra/dzebra/dzare1.F \
102           packlib/zebra/dzebra/dzbkdv.F \
103           packlib/zebra/dzebra/dzbkhd.F \
104           packlib/zebra/dzebra/dzbkup.F \
105           packlib/zebra/dzebra/dzbkxr.F \
106           packlib/zebra/dzebra/dzdata.F \
107           packlib/zebra/dzebra/dziopd.F \
108           packlib/zebra/dzebra/dzioph.F \
109           packlib/zebra/dzebra/dziopr.F \
110           packlib/zebra/dzebra/dzmap.F \
111           packlib/zebra/dzebra/dzopt.F \
112           packlib/zebra/dzebra/dzshpr.F \
113           packlib/zebra/dzebra/dzsnap.F \
114           packlib/zebra/dzebra/dzswap.F \
115           packlib/zebra/dzebra/dztext.F \
116           packlib/zebra/dzebra/dztyp.F \
117           packlib/zebra/dzebra/nzleft.F \
118           packlib/zebra/dzebra/zpage.F \
119           packlib/zebra/mq/mzbook.F \
120           packlib/zebra/mq/mzdiv.F \
121           packlib/zebra/mq/mzdrop.F \
122           packlib/zebra/mq/mzebra.F \
123           packlib/zebra/mq/mzend.F \
124           packlib/zebra/mq/mzflag.F \
125           packlib/zebra/mq/mzinco.F \
126           packlib/zebra/mq/mzinqd.F \
127           packlib/zebra/mq/mzinqs.F \
128           packlib/zebra/mq/mzlift.F \
129           packlib/zebra/mq/mzlink.F \
130           packlib/zebra/mq/mzlint.F \
131           packlib/zebra/mq/mzlogl.F \
132           packlib/zebra/mq/mzmaps.F \
133           packlib/zebra/mq/mzneed.F \
134           packlib/zebra/mq/mzpudx.F \
135           packlib/zebra/mq/mzpush.F \
136           packlib/zebra/mq/mzstor.F \
137           packlib/zebra/mq/mzvers.F \
138           packlib/zebra/mq/mzwork.F \
139           packlib/zebra/mqg/mzfgap.F \
140           packlib/zebra/mqg/mzgar1.F \
141           packlib/zebra/mqg/mzgarb.F \
142           packlib/zebra/mqg/mzgsta.F \
143           packlib/zebra/mqg/mzmove.F \
144           packlib/zebra/mqg/mzrelb.F \
145           packlib/zebra/mqg/mzrell.F \
146           packlib/zebra/mqg/mzrelx.F \
147           packlib/zebra/mqg/mztabc.F \
148           packlib/zebra/mqg/mztabf.F \
149           packlib/zebra/mqg/mztabh.F \
150           packlib/zebra/mqg/mztabm.F \
151           packlib/zebra/mqg/mztabr.F \
152           packlib/zebra/mqg/mztabs.F \
153           packlib/zebra/mqg/mztabx.F \
154           packlib/zebra/mqg/mzwipe.F \
155           packlib/zebra/mqs/mzchln.F \
156           packlib/zebra/mqs/mzchls.F \
157           packlib/zebra/mqs/mzchnb.F \
158           packlib/zebra/mqs/mzdvac.F \
159           packlib/zebra/mqs/mzfdiv.F \
160           packlib/zebra/mqs/mzform.F \
161           packlib/zebra/mqs/mziocf.F \
162           packlib/zebra/mqs/mzioch.F \
163           packlib/zebra/mqs/mziocr.F \
164           packlib/zebra/mqs/mzixco.F \
165           packlib/zebra/mqs/mzresv.F \
166           packlib/zebra/mqs/mzsdiv.F \
167           packlib/zebra/mqs/mzxref.F \
168           packlib/zebra/mqs/mzxrup.F \
169           packlib/zebra/mqv/zvautx.F \
170           packlib/zebra/qend/zabend.F \
171           packlib/zebra/qend/zend.F \
172           packlib/zebra/qend/zfatal.F \
173           packlib/zebra/qend/zfatam.F \
174           packlib/zebra/qend/zphase.F \
175           packlib/zebra/qend/zpostm.F \
176           packlib/zebra/qend/ztell.F \
177           packlib/zebra/qend/ztelus.F \
178           packlib/zebra/qutil/izbcd.F \
179           packlib/zebra/qutil/izbcdt.F \
180           packlib/zebra/qutil/izhnum.F \
181           packlib/zebra/qutil/qnext.F \
182           packlib/zebra/qutil/zhtoi.F  \
183           packlib/zebra/qutil/zitoh.F \
184           packlib/zebra/qutil/zshunt.F \
185           packlib/zebra/rz/rzallo.F \
186           packlib/zebra/rz/rzcdir.F \
187           packlib/zebra/rz/rzdate.F \
188           packlib/zebra/rz/rzdelk.F \
189           packlib/zebra/rz/rzdlok.F \
190           packlib/zebra/rz/rzend.F \
191           packlib/zebra/rz/rzexpd.F \
192           packlib/zebra/rz/rzfdir.F \
193           packlib/zebra/rz/rzfile.F \
194           packlib/zebra/rz/rzfree.F \
195           packlib/zebra/rz/rzin.F \
196           packlib/zebra/rz/rzink.F \
197           packlib/zebra/rz/rzins.F \
198           packlib/zebra/rz/rziodo.F \
199           packlib/zebra/rz/rzllok.F \
200           packlib/zebra/rz/rzlock.F \
201           packlib/zebra/rz/rzmake.F \
202           packlib/zebra/rz/rzmdir.F \
203           packlib/zebra/rz/rzmods.F \
204           packlib/zebra/rz/rzobkn.F \
205           packlib/zebra/rz/rzopen.F \
206           packlib/zebra/rz/rzout.F \
207           packlib/zebra/rz/rzpaff.F \
208           packlib/zebra/rz/rzpath.F \
209           packlib/zebra/rz/rzprnk.F \
210           packlib/zebra/rz/rzpurf.F \
211           packlib/zebra/rz/rzread.F \
212           packlib/zebra/rz/rzrtop.F \
213           packlib/zebra/rz/rzsame.F \
214           packlib/zebra/rz/rzsave.F \
215           packlib/zebra/rz/rzstrip.F \
216           packlib/zebra/rz/rzstrir.F \
217           packlib/zebra/rz/rzused.F \
218           packlib/zebra/rz/rzvcyc.F \
219           packlib/zebra/rz/rzver1.F \
220           packlib/zebra/rz/rzver2.F \
221           packlib/zebra/rz/rzveri.F \
222           packlib/zebra/rz/rzwrt.F \
223  
224  
225 ifeq ($(PLATFORM),linux)
226           FSRC = $(FSRCS) \
227           packlib/kernlib/kerngen/unix/lnxgs/rdmin.F
228 endif
229 ifeq ($(PLATFORM),hpux)
230           FSRC = $(FSRCS)
231 endif
232 ifeq ($(PLATFORM),solaris)
233           FSRC = $(FSRCS) \
234           packlib/kernlib/kerngen/tcgen/uset.F
235 endif
236 ifeq ($(PLATFORM),alpha)
237           FSRC = $(FSRCS) 
238 endif
239
240 CSRCS   = \
241           packlib/kernlib/kerngen/ccgen/abend.c \
242           packlib/kernlib/kerngen/ccgen/geteni.c \
243           packlib/kernlib/kerngen/ccgen/jumptn.c \
244           packlib/kernlib/kerngen/ccgen/jumpxn.c \
245           packlib/kernlib/kerngen/ccgen/locf.c \
246           packlib/kernlib/kerngen/ccgen/qnexte.c \
247           packlib/kernlib/kerngen/ccgen/vxinvb.c \
248           packlib/kernlib/kerngen/ccgencf/cfclos.c \
249           packlib/kernlib/kerngen/ccgencf/cfget.c \
250           packlib/kernlib/kerngen/ccgencf/cfopei.c \
251           packlib/kernlib/kerngen/ccgencf/cfput.c \
252           packlib/kernlib/kerngen/ccgencf/cfseek.c \
253           packlib/kernlib/kerngen/ccgencf/cfstati.c \
254           packlib/kernlib/kerngen/ccgenu/fchput.c \
255           packlib/kernlib/kerngen/ccgenu/fchtak.c \
256           packlib/kernlib/kerngen/ccgen/datime.c \
257  
258 ifeq ($(PLATFORM),linux)
259           CSRC = $(CSRCS) \
260           packlib/kernlib/kerngen/unix/lnxgs/ishftr.c
261 endif
262 ifeq ($(PLATFORM),hpux)
263           CSRC = $(CSRCS) \
264           packlib/kernlib/kerngen/unix/hpxgs/traceqc.c \
265           packlib/kernlib/kerngen/ccgen/lnblnk.c
266 endif
267 ifeq ($(PLATFORM),solaris)
268           CSRC = $(CSRCS) 
269 endif
270 ifeq ($(PLATFORM),alpha)
271           CSRC = $(CSRCS) 
272 endif
273         
274
275 CXXSRC  =
276
277 FOBJ    = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRC))
278 COBJ    = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRC))
279 CXXOBJ  = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(CXXSRC))
280
281 SRCS    = $(FSRC) $(CSRC) $(CXXSRC)
282 OBJS    = $(FOBJ) $(COBJ) $(CXXOBJ)
283
284 ##### TARGETS #####
285  
286 # Target
287
288 SLIBRARY        = $(LIBDIR)/libminicern.$(SL)
289 ALIBRARY        = $(LIBDIR)/libminicern.a
290
291 ifeq ($(PLATFORM),alpha)
292         default:        $(ALIBRARY) $(SLIBRARY)
293 else
294         default:        $(SLIBRARY)
295 endif
296
297 $(LIBDIR)/libminicern.$(SL):  $(OBJS)
298 $(LIBDIR)/libminicern.a:  $(OBJS)
299
300 depend:                 $(SRCS)
301
302 TOCLEAN         = $(OBJS)
303
304 ############################### General Macros ################################
305
306 include $(ALICE_ROOT)/conf/GeneralMacros
307
308 ############################ Dependencies #####################################
309
310 -include tgt_$(ALICE_TARGET)/Make-depend