]> git.uio.no Git - u/mrichter/AliRoot.git/blame - THerwig/Makefile
Check if the provided path is a rootfile or a directory by using the
[u/mrichter/AliRoot.git] / THerwig / Makefile
CommitLineData
2d8d4543 1
2############################### THerwig6 Makefile ##############################
3
4# Include machine specific definitions
5
6include $(ALICE_ROOT)/conf/GeneralDef
7include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
8
9PACKAGE = THerwig6
10
11# FORTRAN sources
12
13FSRCS =
14
15# C++ sources
16
17SRCS = THerwig6.cxx
18
19# C++ Headers
20
21HDRS = $(SRCS:.cxx=.h) THerwig6LinkDef.h
22
23# Library dictionary
24
25DICT = THerwig6Cint.cxx
26DICTH = $(DICT:.cxx=.h)
27DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
28
29# Objects
30
31OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(FOBJS) $(DICTO)
32
33# FORTRAN Objectrs
34
35FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
36
37# C Objects
38
39COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
40
41# C++ Objects
42
43OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
44
45# C++ compilation flags
46
47CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
48
49# FORTRAN compilation flags
50
51FFLAGS = $(FOPT)
52
53##### TARGETS #####
54
55# Target
56
57SLIBRARY = $(LIBDIR)/libTHerwig6.$(SL)
58ALIBRARY = $(LIBDIR)/libTHerwig6.a
59
60default: $(SLIBRARY)
61
62$(LIBDIR)/libTHerwig6.$(SL): $(OBJS)
63
64$(DICT): $(HDRS)
65
66depend: $(SRCS) $(FSRCS)
67
68HEADERS = THerwig6.h
69
70TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
71
72CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
73
74############################### General Macros ################################
75
76include $(ALICE_ROOT)/conf/GeneralMacros
77
78############################ Dependencies #####################################
79
80-include tgt_$(ALICE_TARGET)/Make-depend
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99