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