New nonrecursive makefiles
[u/mrichter/AliRoot.git] / THijing / Makefile
CommitLineData
7dffa423 1############################### THijing Makefile ##############################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = THijing
9
10# FORTRAN sources
11
12FSRCS =
13
14# C++ sources
15
16SRCS = THijing.cxx
17
18# C++ Headers
19
20HDRS = $(SRCS:.cxx=.h) THijingLinkDef.h
21
22# Library dictionary
23
24DICT = THijingCint.cxx
25DICTH = $(DICT:.cxx=.h)
26DICTO = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(DICT))
27
28# Objects
29
30OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(FOBJS) $(DICTO)
31
32# FORTRAN Objectrs
33
34FOBJS = $(patsubst %.F,tgt_$(ALICE_TARGET)/%.o,$(FSRCS))
35
36# C Objects
37
38COBJS = $(patsubst %.c,tgt_$(ALICE_TARGET)/%.o,$(CSRCS))
39
40# C++ Objects
41
42OBJS = $(patsubst %.cxx,tgt_$(ALICE_TARGET)/%.o,$(SRCS)) $(DICTO)
43
44# C++ compilation flags
45
46CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
47
48# FORTRAN compilation flags
49
50FFLAGS = $(FOPT)
51
52##### TARGETS #####
53
54# Target
55
56SLIBRARY = $(LIBDIR)/libTHijing.$(SL)
57ALIBRARY = $(LIBDIR)/libTHijing.a
58
59default: $(SLIBRARY)
60
61$(LIBDIR)/libTHijing.$(SL): $(OBJS)
62
63$(DICT): $(HDRS)
64
65depend: $(SRCS) $(FSRCS)
66
119158cf 67HEADERS = THijing.h
68
7dffa423 69TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
70
71CHECKS = $(patsubst %.cxx,check/%.viol,$(SRCS))
72
73############################### General Macros ################################
74
75include $(ALICE_ROOT)/conf/GeneralMacros
76
77############################ Dependencies #####################################
78
79-include tgt_$(ALICE_TARGET)/Make-depend
80
81
82
83
84
85
86