source: trunk/MagicSoft/Simulation/Detector/Camera/Makefile@ 435

Last change on this file since 435 was 435, checked in by harald, 24 years ago
Oscar found some smaller errors in the calculation of the pixel shape and corrected it.
File size: 7.0 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.5 $
22# $Author: harald $
23# $Date: 2000-09-21 11:47:33 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32
33# @endcode
34
35# @code
36
37# common flags
38INCLUDES = -I${INCLUDE} \
39 -I${INCLUDE_COR} \
40 -I${INCLUDE_MC} \
41 -I${INCLUDE_EVITA} \
42 -I${INCLUDE_TRIGGER} \
43 -I${INCLUDE_FADC} \
44 -I${INCLUDE_REFL} \
45 -I${INCLUDE_ROOT} \
46 -I${INCLUDE_CPLUS}
47
48RANLIB = -L${RANLIBDIR} -lranlib
49
50# what is needed for ROOT is inside the config.mk... file
51
52
53# special flags
54
55osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
56#linux_FORLIBS = -lf2c -lm /usr/lib/libc.a
57linux_FORLIBS = -lm -ldl
58#linux_FORLIBS = -lm -ldl -rdynamic
59generic_FORLIBS = -lm
60
61FORLIBS = ${${SYSTEM}_FORLIBS}
62
63# compilation and linking flags
64
65CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
66CFLAGS = ${CXXFLAGS}
67FFLAGS = ${CXXFLAGS}
68LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS}
69
70#------------------------------------------------------------------------------
71
72#.SILENT:
73
74.SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
75
76SRCS = \
77 ${INCLUDE_MC}/MCEventHeader.cxx \
78 ${INCLUDE_MC}/MCCphoton.cxx \
79 ${INCLUDE_TRIGGER}/MTrigger.cxx \
80 ${INCLUDE_TRIGGER}/MGTriggerSignal.cxx \
81 ${INCLUDE_FADC}/MFadc.cxx \
82 ${INCLUDE_FADC}/MGFadcSignal.cxx \
83 ${INCLUDE_EVITA}/MRawPixel.cxx \
84 ${INCLUDE_EVITA}/MRawEvt.cxx \
85 ${INCLUDE_EVITA}/MMcEvt.cxx \
86 ${INCLUDE_EVITA}/MMcTrig.cxx \
87 MCamCint.cxx \
88 creadparam.cxx \
89 camera.cxx
90
91HEADERS = \
92 MCEventHeader.hxx \
93 MCCphoton.hxx \
94 MTRigger.hxx \
95 MGTriggerSignal.hxx \
96 MFadc.hxx \
97 MGFadcSignal.hxx \
98 MRawPixel.h \
99 MRawEvt.h \
100 MMcEvt.h \
101 MMcTrig.hxx \
102 lagrange.h \
103 atm.h \
104 creadparam.h \
105 camera.h
106
107OBJS = \
108 ${INCLUDE_MC}/MCEventHeader.o \
109 ${INCLUDE_MC}/MCCphoton.o \
110 ${INCLUDE_TRIGGER}/MTrigger.o \
111 ${INCLUDE_TRIGGER}/MGTriggerSignal.o \
112 ${INCLUDE_FADC}/MFadc.o \
113 ${INCLUDE_FADC}/MGFadcSignal.o \
114 ${INCLUDE_EVITA}/MRawPixel.o \
115 ${INCLUDE_EVITA}/MRawEvt.o \
116 ${INCLUDE_EVITA}/MMcEvt.o \
117 ${INCLUDE_EVITA}/MMcTrig.o \
118 MCamCint.o \
119 creadparam.o \
120 camera.o
121
122############################################################
123
124all: ${PROGRAM}
125
126depend:
127 @makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
128
129doc: camera-doc
130
131camera-doc:
132 @echo "Generating documentation for camera . . . "
133 $(DOCUM) -latex -o camera.tex \
134 camera.cxx camera.h \
135 creadparam.cxx creadparam.h \
136 moments.cxx moments.h
137 latex "\nonstopmode\input{camera.tex}" && \
138 makeindex camera && \
139 latex "\nonstopmode\input{camera.tex}" && \
140 latex "\nonstopmode\input{camera.tex}"
141 @echo "Files camera.tex and camera.dvi generated."
142
143${PROGRAM}: $(OBJS)
144 @echo "Linking..."
145 echo `ls -m $(OBJS)|sed 's/,/ +/g' `" + libraries => " $@
146 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
147 @echo "done."
148
149
150MCamCint.cxx: ${INCLUDE_EVITA}/MRawPixel.h \
151 ${INCLUDE_EVITA}/MRawEvt.h \
152 ${INCLUDE_EVITA}/MMcEvt.h \
153 ${INCLUDE_EVITA}/MMcTrig.hxx \
154 ${INCLUDE_EVITA}/Mdefine.h
155
156 @echo
157 @echo "Generating dictionary ..."
158 @echo
159
160 @$(ROOTSYS)/bin/rootcint -f \
161 MCamCint.cxx -c \
162 ${INCLUDE_EVITA}/MRawPixel.h \
163 ${INCLUDE_EVITA}/MRawEvt.h \
164 ${INCLUDE_EVITA}/MMcEvt.h \
165 ${INCLUDE_EVITA}/MMcTrig.hxx \
166 ${INCLUDE_EVITA}/Mdefine.h \
167 ${INCLUDE_EVITA}/LinkDef.h
168
169 @echo
170 @echo "Dictionary done"
171 @echo
172
173.cxx.o:
174 @echo "Compiling " $<
175 $(CXX) $(CXXFLAGS) -c $< -o $@
176
177.c.o:
178 @echo "Compiling " $<
179 $(CC) $(CFLAGS) -c $< -o $@
180
181lclean:
182 @echo "Cleanning..."
183 @rm -f *.o core
184
185clean:
186 @echo "Cleanning..."
187 @rm -f $(OBJS) core
188 @rm -f MCamCint.cxx MCamCint.h
189
190mrproper: clean
191 @echo "Mr.Proper in action . . ."
192 @rm -f $(PROGRAM)
193
194ctags:
195 @echo "Creating CTAGS file . . ."
196 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
197
198etags:
199 @echo "Creating TAGS file . . ."
200 @etags -C $(SRCS) $(HEADERS)
201
202listsrc:
203 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
204
205redo: clean all
206
207cflags:
208 @echo $(INCLUDES) $(CXXFLAGS)
209
210# @endcode
211
212# DO NOT DELETE THIS LINE -- make depend depends on it.
213
214creadparam.o: creadparam.h /usr/include/cxx/iostream.h
215creadparam.o: /usr/include/cxx/iostream.hxx /usr/include/cxx/compnent.hxx
216creadparam.o: /usr/include/cxx/iostream_impl.hxx /usr/include/cxx/cxxl.hxx
217creadparam.o: /usr/include/cxx/cxxl_share.hxx /usr/include/cxx/messages.hxx
218creadparam.o: /usr/include/stddef.h /usr/include/standards.h
219creadparam.o: /usr/include/stdio.h /usr/include/sys/seek.h
220creadparam.o: /usr/include/va_list.h /usr/include/sys/types.h
221creadparam.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
222creadparam.o: /usr/include/getopt.h /usr/include/sys/limits.h
223creadparam.o: /usr/include/sys/machine/machlimits.h
224creadparam.o: /usr/include/sys/syslimits.h
225creadparam.o: /usr/include/sys/machine/machtime.h
226creadparam.o: /usr/include/sys/rt_limits.h /usr/include/limits.h
227creadparam.o: /usr/include/memory.h /usr/include/string.h
228creadparam.o: /usr/include/strings.h /usr/include/cxx/fstream.h
229creadparam.o: /usr/include/cxx/fstream.hxx /usr/include/cxx/fstream_impl.hxx
230creadparam.o: /usr/include/stdlib.h /usr/include/math.h /usr/include/float.h
231creadparam.o: /usr/include/fp_class.h camera-v.h
232camera.o: /CERN/root/include/TROOT.h /CERN/root/include/TApplication.h
233camera.o: /CERN/root/include/TFile.h /CERN/root/include/TTree.h
234camera.o: /CERN/root/include/TBranch.h /CERN/root/include/TCanvas.h camera.h
235camera.o: /usr/include/cxx/iostream.h /usr/include/cxx/iostream.hxx
236camera.o: /usr/include/cxx/compnent.hxx /usr/include/cxx/iostream_impl.hxx
237camera.o: /usr/include/cxx/cxxl.hxx /usr/include/cxx/cxxl_share.hxx
238camera.o: /usr/include/cxx/messages.hxx /usr/include/stddef.h
239camera.o: /usr/include/standards.h /usr/include/stdio.h
240camera.o: /usr/include/sys/seek.h /usr/include/va_list.h
241camera.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
242camera.o: /usr/include/sys/select.h /usr/include/getopt.h
243camera.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
244camera.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
245camera.o: /usr/include/sys/rt_limits.h /usr/include/limits.h
246camera.o: /usr/include/memory.h /usr/include/string.h /usr/include/strings.h
247camera.o: /usr/include/cxx/fstream.h /usr/include/cxx/fstream.hxx
248camera.o: /usr/include/cxx/fstream_impl.hxx /usr/include/stdlib.h
249camera.o: /usr/include/stdarg.h /usr/include/math.h /usr/include/dirent.h
250camera.o: /usr/include/unistd.h /usr/include/sys/access.h
251camera.o: /usr/include/libgen.h camera-v.h creadparam.h /usr/include/float.h
252camera.o: /usr/include/fp_class.h moments.h /usr/include/ranlib.h
253camera.o: /usr/include/ar.h
Note: See TracBrowser for help on using the repository browser.