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