cuts on Q out, side, long added
[u/mrichter/AliRoot.git] / PMD / Makefile
index a11efed..579cd21 100644 (file)
@@ -9,29 +9,31 @@ PACKAGE = PMD
 
 # C++ sources
 
-SRCS          = AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDv2.cxx
+SRCS          = AliPMD.cxx AliPMDv0.cxx AliPMDv1.cxx AliPMDRecPoint.cxx
 
 # C++ Headers
 
-HDRS          = $(SRCS:.cxx=.h) PMDLinkDef.h
+HDRS    = $(SRCS:.cxx=.h) \
+       $(ROOTSYS)/include/TClonesArray.h \
+       PMDLinkDef.h
 
 # Library dictionary
 
 DICT          = PMDCint.cxx
 DICTH         = $(DICT:.cxx=.h)
-DICTO         = $(DICT:.cxx=.o)
+DICTO         = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
 
 # FORTRAN Objectrs
 
-FOBJS         = $(FSRCS:.f=.o)
+FOBJS         = $(patsubst %.f,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
 
 # C Objects
 
-COBJS         = $(CSRCS:.c=.o)
+COBJS         = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
 
 # C++ Objects
 
-OBJS          = $(SRCS:.cxx=.o) $(DICTO)
+OBJS          = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
 
 # C++ compilation flags
 
@@ -45,12 +47,12 @@ FFLAGS      = $(FOPT)
  
 # Target
 
-SLIBRARY       = $(ALICE_ROOT)/lib/libPMD.$(SL)
-ALIBRARY       = $(ALICE_ROOT)/lib/libPMD.a
+SLIBRARY       = $(LIBDIR)/libPMD.$(SL)
+ALIBRARY       = $(LIBDIR)/libPMD.a
 
 default:       $(SLIBRARY)
 
-$(ALICE_ROOT)/lib/libPMD.$(SL):        $(OBJS)
+$(LIBDIR)/libPMD.$(SL):        $(OBJS)
 
 $(DICT):                       $(HDRS)
 
@@ -58,10 +60,19 @@ depend:                             $(SRCS)
 
 TOCLEAN                = $(OBJS) *Cint.cxx *Cint.h
 
+CHECKS        = $(patsubst %.cxx,check/%.viol,$(SRCS))
+
 ############################### General Macros ################################
 
 include $(ALICE_ROOT)/conf/GeneralMacros
 
 ############################ Dependencies #####################################
 
-include Make-depend 
+-include tgt_$(ALICE_TARGET)/Make-depend 
+
+
+
+
+
+
+