source: trunk/MagicSoft/Simulation/Detector/StarResponse/Makefile@ 5082

Last change on this file since 5082 was 5082, checked in by moralejo, 21 years ago
*** empty log message ***
File size: 3.7 KB
Line 
1##################################################################
2#
3# makefile
4#
5# @file makefile
6# @title Simulation of the camera and trigger logic
7# @author J C Gonz\'alez
8# @email gonzalez@mppmu.mpg.de
9# @date Fri Mar 12 11:51:11 MET 1999
10#
11#_______________________________________________________________
12#
13# Created: Fri Mar 12 11:51:11 MET 1999
14# Author: Jose Carlos Gonzalez
15# Purpose: Makefile for the compilation of the camera program
16# Notes:
17#
18#---------------------------------------------------------------
19#
20# $RCSfile: Makefile,v $
21# $Revision: 1.6 $
22# $Author: moralejo $
23# $Date: 2004-09-16 16:20:13 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32PROGRAM = starrespo
33
34# @endcode
35
36# @code
37
38# common flags
39INCLUDES = -I${INCLUDE} \
40 -I${INCLUDE_COR} \
41 -I${INCLUDE_MC} \
42 -I${INCLUDE_EVITA} \
43 -I${INCLUDE_EVITA_MC} \
44 -I${INCLUDE_EVITA_RAW} \
45 -I${INCLUDE_EVITA_BASE} \
46 -I${INCLUDE_MARS_MGEOM} \
47 -I${INCLUDE_TRIGGER} \
48 -I${INCLUDE_FADC} \
49 -I${INCLUDE_ROOT} \
50 -I${INCLUDE_CPLUS}
51
52RANLIB = -L${RANLIBDIR} -lranlib
53
54# what is needed for ROOT is inside the config.mk... file
55
56
57# special flags
58
59osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
60#linux_FORLIBS = -lf2c -lm /usr/lib/libc.a
61linux_FORLIBS = -lm -ldl
62#linux_FORLIBS = -lm -ldl -rdynamic
63generic_FORLIBS = -lm
64
65FORLIBS = ${${SYSTEM}_FORLIBS}
66
67# compilation and linking flags
68
69CXXFLAGS = -D__${SYSTEM}__ -D__STARRESPO__ ${INCLUDES} ${OPTIM} ${DEBUG}
70CFLAGS = ${CXXFLAGS}
71FFLAGS = ${CXXFLAGS}
72LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS}
73
74#
75# ----->>> Compile files related to MARS with Makefiles in their
76# directories.
77#
78
79#------------------------------------------------------------------------------
80
81#.SILENT:
82
83.SUFFIXES: .c .cc .cxx .C .c++ .h .hxx .H .h++ .o .so .f
84
85SRCS = \
86 ${INCLUDE_TRIGGER}/MTrigger.cxx \
87 ${INCLUDE_TRIGGER}/MGTriggerSignal.cxx \
88 ${INCLUDE_FADC}/MFadc.cxx \
89 ${INCLUDE_FADC}/MGFadcSignal.cxx \
90 MStarLight.cxx \
91 srreadparam.cxx \
92 starresponse.cxx
93
94HEADERS = \
95 MTRigger.hxx \
96 MGTRiggerSignal.hxx \
97 MFadc.hxx \
98 MGFadcSignal.hxx \
99 MStarLight.hxx \
100 srreadparam.h \
101 starresponse.hxx
102
103OBJS = \
104 ${INCLUDE_TRIGGER}/MTrigger.o \
105 ${INCLUDE_TRIGGER}/MGTriggerSignal.o \
106 ${INCLUDE_FADC}/MFadc.o \
107 ${INCLUDE_FADC}/MGFadcSignal.o \
108 MStarLight.o \
109 srreadparam.o \
110 starresponse.o
111
112############################################################
113
114all: rmtrig $(PROGRAM)
115 @echo " Done. "
116 @echo " "
117
118$(PROGRAM): $(OBJS)
119 @echo " Linking $@ ..."
120 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
121
122rmtrig:
123 @rm -f ${INCLUDE_TRIGGER}/*.o
124
125depend: rmtrig
126 @makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
127
128.cxx.o:
129 @echo "Compiling " $<
130 $(CXX) $(CXXFLAGS) -c $< -o $@
131
132.cc.o:
133 @echo "Compiling " $<
134 $(CXX) $(CXXFLAGS) -c $< -o $@
135
136.c.o:
137 @echo "Compiling " $<
138 $(CC) $(CFLAGS) -c $< -o $@
139
140lclean:
141 @echo "Cleanning..."
142 @rm -f *.o core
143
144clean: rmcint rmobjs
145 @echo "Cleanning...done"
146
147mrproper: clean
148 @echo "Mr.Proper in action . . ."
149 @rm -f $(PROGRAM)
150
151listsrc:
152 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
153
154redo: clean all
155
156cflags:
157 @echo $(INCLUDES) $(CXXFLAGS)
158
159#
160# The cleaning facility
161#
162
163rmcint:
164 @echo " Removing cint-stuff..."
165 @rm -f *Cint.*
166
167rmlib:
168 @echo " Removing libraries..."
169 @echo " "
170 @rm -f lib/lib*.a lib*.a
171
172rmobjs:
173 @echo " Removing object files..."
174 @rm -f *.o ../*/*.o
175
176rmcore:
177 @echo " Removing core files..."
178 @rm -f core*
179
180rmbin:
181 @echo " Removing binary files..."
182 @rm -f $(PROGRAM) lib/$(SOLIB) so_locations
183
184rmbak:
185 @echo " Removing backup files..."
186 @rm -f *~ kk.kk *.bak
187
188# @endcode
189
190# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.