Put headers before library in the make.
[u/mrichter/AliRoot.git] / STEER / Makefile
CommitLineData
fe4da5cc 1############################### STEER Makefile ################################
2
3# Include machine specific definitions
4
5include $(ALICE_ROOT)/conf/GeneralDef
6include $(ALICE_ROOT)/conf/MachineDef.$(ALICE_TARGET)
7
8PACKAGE = STEER
9
10# C++ sources
11
12SRCS = AliDetector.cxx AliHeader.cxx AliMagF.cxx GParticle.cxx \
13 AliDigit.cxx AliHit.cxx AliPoints.cxx \
14 AliDisplay.cxx AliMC.cxx AliRun.cxx AliGenerator.cxx \
8494b010 15 AliLego.cxx AliModule.cxx
fe4da5cc 16
17
18# C++ Headers
19
20HDRS = $(SRCS:.cxx=.h) STEERLinkDef.h
21
22# Library dictionary
23
24DICT = STEERCint.cxx
25DICTH = $(DICT:.cxx=.h)
26DICTO = $(DICT:.cxx=.o)
27
28# FORTRAN Objectrs
29
30FOBJS = $(FSRCS:.f=.o)
31
32# C Objects
33
34COBJS = $(CSRCS:.c=.o)
35
36# C++ Objects
37
38OBJS = $(SRCS:.cxx=.o) $(DICTO)
39
40# C++ compilation flags
41
42CXXFLAGS = $(CXXOPTS) -I$(ROOTSYS)/include -I. -I$(ALICE_ROOT)/include/
43
44# FORTRAN compilation flags
45
46FFLAGS = $(FOPT)
47
48##### TARGETS #####
49
50# Target
51
52SLIBRARY = $(ALICE_ROOT)/lib/libSTEER.$(SL)
53ALIBRARY = $(ALICE_ROOT)/lib/libSTEER.a
54
2805998a 55default: headers $(SLIBRARY)
fe4da5cc 56
57$(ALICE_ROOT)/lib/libSTEER.$(SL): $(OBJS)
58
59$(DICT): $(HDRS)
60
61depend: $(SRCS)
62
63HEADERS = $(filter-out %LinkDef.h,$(HDRS) AliConst.h AliCallf77.h)
64
65TOCLEAN = $(OBJS) *Cint.cxx *Cint.h
66
67############################### General Macros ################################
68
69include $(ALICE_ROOT)/conf/GeneralMacros
70
71############################ Dependencies #####################################
72
73include Make-depend