Updates to Trains. create a job-script to help
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / IdentifiedHighPt / lib / Makefile
CommitLineData
4ebdd20e 1#
2# Config variables
3#
4
5MAJOR = 0
6MINOR = 1
7
8#PROGRAM = maketracktree
9#PROGOBJS = maketracktree.o
10PROGRAM =
11PROGOBJS =
12
13PROGRAM2 =
14PROGOBJS2 =
15
16LIBNAME = MyDeDxAnalysis
17LIBRARY = lib$(LIBNAME).so
18LIBOBJS = 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#
29ROOTCINT = rootcint
30ROOTCFLAGS = $(shell root-config --cflags)
31#ROOTLIBS = $(shell root-config --glibs) -lEG -lGeom -lTreePlayer
32ROOTLIBS = $(shell root-config --glibs)
33ROOTINCS = -I./
34ACCPATH = $(shell pwd)
35
36#
37#
38#
39ALILIBS = -L$(ALICE_ROOT)/lib/tgt_linux/ -lESD
40#LIBS = -L./ -l$(LIBNAME) $(ROOTLIBS) $(ALILIBS) -L$(HOME)/lib -lTOption
41LIBS = -L./ -l$(LIBNAME) $(ROOTLIBS)
42ALIINCLUDE = -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/STEER/ -I$(ALICE_ROOT)/TPC/
43#INCLUDES = -I./ $(ALIINCLUDE) -I$(HOME)/include/
44INCLUDES = -I./
45
46#
47# Preprocessor, Compiler, and Linker variables
48#
49CPPFLAGS = $(INCLUDES) $(ROOTCFLAGS)
50CXX = g++
51#CXXFLAGS = -c -g -Wall -o
52CXXFLAGS = -c -g -Wall -fPIC -o
53LD = g++
54LDFLAGS = -rdynamic -Wl,-rpath,$(ACCPATH) $(LIBS) -o
55SOFLAGS = -shared -Wl,-soname,
56LN = ln -fs
57OUTOPT = -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#
83all: $(LIBRARY) $(PROGRAM) $(PROGRAM2)
84
85install: all
86 @echo "cannot install, don't know your install dir"
87clean:
88 rm -f core *~ *.o *Cint.* $(LIBRARY)* $(PROGRAM) $(PROGRAM2)
89
90realclean: clean
91 rm -f $(LIBRARY)* $(PROGRAM) $(PROGRAM2)
92
93#
94# Dependencies
95#
96$(LIBRARY):$(LIBOBJS)
97$(PROGRAM):$(PROGOBJS)
98$(PROGRAM2):$(PROGOBJS2)
99
100