Changes needed by ICC/IFC compiler (Intel)
[u/mrichter/AliRoot.git] / MINICERN / Makefile
index e4da2b2ab80da2652cacb2de4e18b97cc3fa9cf1..94f8f860a1c36066635c3555e566ccf9be7ca4b7 100644 (file)
@@ -9,30 +9,34 @@ PACKAGE = minicern
 
 INC    = -Ipacklib/zebra \
           -Ipacklib/kernlib/kerngen \
-         -Imathlib/gen \
-         -Ipacklib/kernlib/kernnum
+         -Imathlib/gen \
+         -Ipacklib/kernlib/kernnum \
+      -Ipacklib/kernlib/kerngen/kerngen
+
 
 # C++ compilation flags
 
 CXXFLAGS      = $(CXXOPTS) $(CLIBCXXOPTS) $(INC) $(CLIBDEFS)
+
 # C compilation flags
 
 CFLAGS      = $(COPT) $(CLIBCOPT) $(INC) $(CLIBDEFS)
+
 # FORTRAN compilation flags
 
 FFLAGS      = $(FOPT) $(CLIBFOPT) $(INC) $(CLIBDEFS)
+
 FSRCS  = dummies.F hbcdf.F fzdummies.F \
          mathlib/gen/b/atg.F \
          mathlib/gen/c/gamma.F \
          mathlib/gen/c/gamma128.F \
          mathlib/gen/c/gamma64.F \
+         mathlib/gen/c/erf64.F \
+         mathlib/gen/c/erf128.F \
          mathlib/gen/d/gauss.F \
          mathlib/gen/d/gauss128.F \
          mathlib/gen/d/gauss64.F \
+         mathlib/gen/g/prob.F \
          mathlib/gen/n/mtlprt.F \
          mathlib/gen/n/mtlset.F \
          mathlib/gen/v/ranlux.F \
@@ -55,6 +59,7 @@ FSRCS = dummies.F hbcdf.F fzdummies.F \
          packlib/kernlib/kerngen/tcgen/lenocc.F \
          packlib/kernlib/kerngen/tcgen/lorenf.F \
          packlib/kernlib/kerngen/tcgen/ranmar.F \
+         packlib/kernlib/kerngen/tcgen/sortzv.F \
          packlib/kernlib/kerngen/tcgen/traceq.F \
          packlib/kernlib/kerngen/tcgen/ubits.F \
          packlib/kernlib/kerngen/tcgen/uoptc.F \
@@ -86,6 +91,7 @@ FSRCS = dummies.F hbcdf.F fzdummies.F \
          packlib/kernlib/kerngen/tcgens/vfill.F \
          packlib/kernlib/kerngen/tcgens/vmax.F \
          packlib/kernlib/kerngen/tcgens/vmod.F \
+         packlib/kernlib/kerngen/tcgens/vscale.F \
          packlib/kernlib/kerngen/tcgens/vunit.F \
          packlib/kernlib/kerngen/tcgens/vzero.F \
          packlib/kernlib/kernnum/e104fort/fint.F \
@@ -218,8 +224,7 @@ FSRCS       = dummies.F hbcdf.F fzdummies.F \
          packlib/zebra/rz/rzver2.F \
          packlib/zebra/rz/rzveri.F \
          packlib/zebra/rz/rzwrt.F \
+
 ifeq ($(PLATFORM),linux)
          FSRC = $(FSRCS) \
          packlib/kernlib/kerngen/unix/lnxgs/rdmin.F
@@ -251,8 +256,8 @@ CSRCS       = \
          packlib/kernlib/kerngen/ccgencf/cfstati.c \
          packlib/kernlib/kerngen/ccgenu/fchput.c \
          packlib/kernlib/kerngen/ccgenu/fchtak.c \
-         packlib/kernlib/kerngen/ccgen/datime.c \
+         packlib/kernlib/kerngen/ccgen/datime.c \
+
 ifeq ($(PLATFORM),linux)
          CSRC = $(CSRCS) \
          packlib/kernlib/kerngen/unix/lnxgs/ishftr.c
@@ -268,28 +273,32 @@ endif
 ifeq ($(PLATFORM),alpha)
          CSRC = $(CSRCS) 
 endif
-       
+
 
 CXXSRC =
 
-FOBJ   = $(FSRC:.F=.o)
-COBJ   = $(CSRC:.c=.o)
-CXXOBJ = $(CXXSRC:.cxx=.o)
+FOBJ   = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRC))
+COBJ   = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRC))
+CXXOBJ = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(CXXSRC))
 
 SRCS   = $(FSRC) $(CSRC) $(CXXSRC)
 OBJS   = $(FOBJ) $(COBJ) $(CXXOBJ)
 
 ##### TARGETS #####
+
 # Target
 
-SLIBRARY       = $(ALICE_ROOT)/lib/libminicern.$(SL)
-ALIBRARY       = $(ALICE_ROOT)/lib/libminicern.a
+SLIBRARY       = $(LIBDIR)/libminicern.$(SL)
+ALIBRARY       = $(LIBDIR)/libminicern.a
 
-default:       $(SLIBRARY)
+ifeq ($(PLATFORM),alpha)
+        default:       $(ALIBRARY) $(SLIBRARY)
+else
+        default:       $(SLIBRARY)
+endif
 
-$(ALICE_ROOT)/lib/libminicern.$(SL):  $(OBJS)
-$(ALICE_ROOT)/lib/libminicern.a:  $(OBJS)
+$(LIBDIR)/libminicern.$(SL):  $(OBJS)
+$(LIBDIR)/libminicern.a:  $(OBJS)
 
 depend:                        $(SRCS)
 
@@ -301,4 +310,4 @@ include $(ALICE_ROOT)/conf/GeneralMacros
 
 ############################ Dependencies #####################################
 
-include Make-depend 
+-include tgt_$(ALICE_TARGET)/Make-depend