The following changes are done:
[u/mrichter/AliRoot.git] / EPOS / libEPOS.pkg
1 #-*- Mode: Makefile -*-
2
3 SRCS:= \
4 epos167/epostimer.cxx           \
5 TEpos.cxx AliGenEpos.cxx AliGenEposEventHeader.cxx
6
7 HDRS=TEpos.h AliGenEpos.h AliGenEposEventHeader.h   \
8
9 DHDR:=EPOSLinkDef.h
10
11 EXPORT:=TEpos.h AliGenEpos.h AliGenEposEventHeader.h
12
13 EINCLUDE:=EVGEN
14
15 FSRCS:= \
16 epos167/epos-app-158.f  \
17 epos167/epos-bas-168.f  \
18 epos167/epos-con-161.f  \
19 epos167/epos-dky-165.f  \
20 epos167/epos-dro-168.f  \
21 epos167/epos-ems-165.f  \
22 epos167/epos-fra-163.f  \
23 epos167/epos-ico-158.f  \
24 epos167/epos-yyy-168.f  \
25 epos167/epos-ids-165.f  \
26 epos167/epos-int-168.f  \
27 epos167/epos-jps-164.f  \
28 epos167/epos-omg-160.f  \
29 epos167/epos-par-129.f  \
30 epos167/epos-sem-165.f  \
31 epos167/epos-rsh-165.f  \
32 epos167/epos-qsh-165.f  \
33 epos167/epos-tim-155.f  \
34 epos167/epos-uti-165.f  \
35 epos167/epos-xan-154.f  \
36 epos167/epos-xpr-165.f  \
37 epos167/eposm.f         \
38 epos167/eposu.f
39
40 EXTFILES:= \
41 epos167/epos.inc  \
42 epos167/epos.incems  \
43 epos167/epos.inchy  \
44 epos167/epos.incico  \
45 epos167/epos.incpar  \
46 epos167/epos.incsem  \
47 epos167/epos.ini1ec  \
48 epos167/epos.ini1fc  \
49 epos167/epos.inics  \
50 epos167/epos.inidi  \
51 epos167/epos.iniev  \
52 epos167/epos.inirj  \
53 epos167/epos.initl  \
54 epos167/epos.param  \
55 epos167/3flav/epos.inics  \
56 epos167/3flav/epos.iniev  \
57 epos167/3flav/epos.inirj  \
58 epos167/3flav/epos.initl  \
59 epos167/3flav/epos.param  \
60 epos167/4flav/epos.inics  \
61 epos167/4flav/epos.iniev  \
62 epos167/4flav/epos.inirj  \
63 epos167/4flav/epos.initl  \
64 epos167/4flav/epos.param  \
65 EPOScommon.h eposproc.h  \
66 epos167/epostimer.h
67
68 ifeq (g95,$(F77))
69 SHLIB += -L$(shell g95 --print-search-dirs | sed -n -e 's/install: //p') -lf95
70 else
71 ifeq (gfortran,$(F77))
72 SHLIB := $(shell gfortran -print-file-name=libgfortran.so)
73 SHLIB += $(shell gfortran -print-file-name=libgfortranbegin.a)
74 else
75 SHLIB         = -lg2c
76 SYSLIBS +=  -lg2c
77 endif
78 endif
79
80 SOFLAGS+= $(SHLIB)
81
82
83 ifeq (macosxicc,$(ALICE_TARGET))
84 PACKFFLAGS      := $(filter-out -O%,$(FFLAGS))
85 endif
86
87
88 ifeq (win32gcc,$(ALICE_TARGET))
89 PACKSOFLAGS:= $(SOFLAGS) -L$(ALICE_ROOT)/lib/tgt_$(ALICE_TARGET) \
90                          -lEVGEN -lSTEER -lSTEERBase \
91                          -L$(shell root-config --libdir) -lEG
92 endif