Updates to Trains. create a job-script to help
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / IdentifiedHighPt / lib / Makefile
1 #
2 # Config variables
3 #
4
5 MAJOR           = 0
6 MINOR           = 1
7
8 #PROGRAM                = maketracktree
9 #PROGOBJS       = maketracktree.o
10 PROGRAM         = 
11 PROGOBJS        = 
12
13 PROGRAM2        = 
14 PROGOBJS2       = 
15
16 LIBNAME         = MyDeDxAnalysis
17 LIBRARY         = lib$(LIBNAME).so
18 LIBOBJS         = AliHighPtDeDxBase.o   \
19                   AliHighPtDeDxCalib.o  \
20                   AliHighPtDeDxData.o   \
21                   AliHighPtDeDxMc.o     \
22                   AliHighPtDeDxSpectra.o        \
23                   AliHighPtDeDxBaseCint.o
24
25
26 #
27 # ROOT and BRAT variables
28 #
29 ROOTCINT        = rootcint 
30 ROOTCFLAGS      = $(shell root-config --cflags)
31 #ROOTLIBS       = $(shell root-config --glibs) -lEG -lGeom -lTreePlayer
32 ROOTLIBS        = $(shell root-config --glibs)
33 ROOTINCS        = -I./ 
34 ACCPATH         = $(shell pwd)
35
36 #
37 #
38 #
39 ALILIBS         = -L$(ALICE_ROOT)/lib/tgt_linux/ -lESD
40 #LIBS           = -L./ -l$(LIBNAME) $(ROOTLIBS) $(ALILIBS) -L$(HOME)/lib -lTOption
41 LIBS            = -L./ -l$(LIBNAME) $(ROOTLIBS)
42 ALIINCLUDE      = -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/STEER/ -I$(ALICE_ROOT)/TPC/
43 #INCLUDES       = -I./ $(ALIINCLUDE) -I$(HOME)/include/ 
44 INCLUDES        = -I./ 
45
46
47 # Preprocessor, Compiler, and Linker variables 
48 #
49 CPPFLAGS        = $(INCLUDES) $(ROOTCFLAGS)
50 CXX             = g++
51 #CXXFLAGS       = -c -g -Wall -o  
52 CXXFLAGS        = -c -g -Wall -fPIC -o  
53 LD              = g++
54 LDFLAGS         = -rdynamic -Wl,-rpath,$(ACCPATH) $(LIBS) -o 
55 SOFLAGS         = -shared  -Wl,-soname,
56 LN              = ln -fs 
57 OUTOPT          = -o
58
59 #
60 # Rules
61 #
62 #%Cint.cxx:%Inc.h
63 %Cint.cxx:Include.h LinkDef.h
64         rootcint -f $@ -c $(ROOTCFLAGS) -p -I./ $^ 
65 #$*LinkDef.h
66
67 %.o:%.cc
68         $(CXX) $(CPPFLAGS) $(CXXFLAGS) $@ $<
69
70 %.o:%.cxx
71         $(CXX) $(CPPFLAGS) $(CXXFLAGS) $@ $<
72
73 %.so:
74         $(LD) $(SOFLAGS)$@ $(OUTOPT) $@ $^
75
76 %:%.o
77         $(LD) $(LDFLAGS) $@ $^
78
79
80 #
81 # Targets 
82 #
83 all:    $(LIBRARY) $(PROGRAM) $(PROGRAM2) 
84
85 install: all
86         @echo "cannot install, don't know your install dir"
87 clean:
88         rm -f core *~ *.o *Cint.* $(LIBRARY)* $(PROGRAM) $(PROGRAM2) 
89
90 realclean: clean
91         rm -f $(LIBRARY)* $(PROGRAM) $(PROGRAM2) 
92
93 #
94 # Dependencies 
95 #
96 $(LIBRARY):$(LIBOBJS)
97 $(PROGRAM):$(PROGOBJS)
98 $(PROGRAM2):$(PROGOBJS2)
99
100