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.1.1.1 $
|
---|
22 | # $Author: harald $
|
---|
23 | # $Date: 2000-07-06 10:18:48 $
|
---|
24 | #
|
---|
25 | ##################################################################
|
---|
26 | # @maintitle
|
---|
27 |
|
---|
28 | # @code
|
---|
29 |
|
---|
30 | INCLUDEMK = config.mk.${OSTYPE}
|
---|
31 | include ${INCLUDEMK}
|
---|
32 |
|
---|
33 | # @endcode
|
---|
34 |
|
---|
35 | # @code
|
---|
36 |
|
---|
37 | # common flags
|
---|
38 | INCLUDES = -I${INCLUDE} \
|
---|
39 | -I${INCLUDE_COR} \
|
---|
40 | -I${INCLUDE_ROOT} \
|
---|
41 | -I${INCLUDE_SIMO} \
|
---|
42 | -I/usr/include -I/usr/include/g++
|
---|
43 |
|
---|
44 | RANLIB = -L${RANLIBDIR} -lranlib
|
---|
45 |
|
---|
46 | # what is needed for ROOT is declared in config.mk file
|
---|
47 |
|
---|
48 |
|
---|
49 | # special flags
|
---|
50 |
|
---|
51 | osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
|
---|
52 | linux_FORLIBS = -lm
|
---|
53 | generic_FORLIBS = -lm
|
---|
54 |
|
---|
55 | FORLIBS = ${${SYSTEM}_FORLIBS}
|
---|
56 |
|
---|
57 | # compilation and linking flags
|
---|
58 |
|
---|
59 | CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
|
---|
60 | CFLAGS = ${CXXFLAGS}
|
---|
61 | FFLAGS = ${CXXFLAGS}
|
---|
62 | LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS} ${FORLIBS}
|
---|
63 | #LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS}
|
---|
64 |
|
---|
65 | #------------------------------------------------------------------------------
|
---|
66 |
|
---|
67 | #.SILENT:
|
---|
68 |
|
---|
69 | .SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
|
---|
70 |
|
---|
71 | SRCS = \
|
---|
72 | ${INCLUDE_COR}/COREventHeader.cxx \
|
---|
73 | ${INCLUDE_COR}/CORParticle.cxx \
|
---|
74 | ${INCLUDE_COR}/CORStatfile.cxx \
|
---|
75 | MainFrameSimone.cxx \
|
---|
76 | simone.cxx
|
---|
77 |
|
---|
78 | HEADERS = \
|
---|
79 | COREventHeader.hxx \
|
---|
80 | CORParticle.hxx \
|
---|
81 | CORStatfile.hxx \
|
---|
82 | MainFrameSimone.hxx \
|
---|
83 | simone.h
|
---|
84 |
|
---|
85 | OBJS = \
|
---|
86 | ${INCLUDE_COR}/COREventHeader.o \
|
---|
87 | ${INCLUDE_COR}/CORParticle.o \
|
---|
88 | ${INCLUDE_COR}/CORStatfile.o \
|
---|
89 | MainFrameSimone.o \
|
---|
90 | simone.o
|
---|
91 |
|
---|
92 | PROGRAM=simone
|
---|
93 |
|
---|
94 | ############################################################
|
---|
95 |
|
---|
96 | all: ${PROGRAM}
|
---|
97 |
|
---|
98 | depend:
|
---|
99 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
100 |
|
---|
101 | doc: reflector-doc
|
---|
102 |
|
---|
103 | reflector-doc:
|
---|
104 | @echo "Generating documentation for camera . . . "
|
---|
105 | $(DOCUM) -latex -o reflector.tex \
|
---|
106 | reflector.cxx reflector.h \
|
---|
107 | readparam.cxx readparam.h \
|
---|
108 | atm.cxx atm.h
|
---|
109 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
110 | makeindex reflector && \
|
---|
111 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
112 | latex "\nonstopmode\input{reflector.tex}"
|
---|
113 | @echo "Files reflector.tex and reflector.dvi generated."
|
---|
114 |
|
---|
115 | rate:
|
---|
116 | @echo "Rating documentation inside code . . . "
|
---|
117 | $(RATE) \
|
---|
118 | reflector.cxx reflector.h \
|
---|
119 | readparam.cxx readparam.h \
|
---|
120 | atm.cxx atm.h
|
---|
121 |
|
---|
122 | ${PROGRAM}: $(OBJS)
|
---|
123 | @echo "Linking..." $@
|
---|
124 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
---|
125 | @echo "done."
|
---|
126 |
|
---|
127 | .cxx.o:
|
---|
128 | @echo "Compiling " $<
|
---|
129 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
130 |
|
---|
131 | .c.o:
|
---|
132 | @echo "Compiling " $<
|
---|
133 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
134 |
|
---|
135 | .f.o:
|
---|
136 | @echo "Compiling " $<
|
---|
137 | $(F77) $(FFLAGS) -c $< -o $@
|
---|
138 |
|
---|
139 | lclean:
|
---|
140 | @echo "Cleanning..."
|
---|
141 | @rm -f *.o core
|
---|
142 |
|
---|
143 | clean:
|
---|
144 | @echo "Cleanning..."
|
---|
145 | @rm -f $(OBJS) core
|
---|
146 |
|
---|
147 | mrproper: clean
|
---|
148 | @echo "Mr.Proper in action . . ."
|
---|
149 | @rm -f $(PROGRAM)
|
---|
150 |
|
---|
151 | ctags:
|
---|
152 | @echo "Creating CTAGS file . . ."
|
---|
153 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
---|
154 |
|
---|
155 | etags:
|
---|
156 | @echo "Creating TAGS file . . ."
|
---|
157 | @etags -C $(SRCS) $(HEADERS)
|
---|
158 |
|
---|
159 | listsrc:
|
---|
160 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
161 |
|
---|
162 | redo: clean all
|
---|
163 |
|
---|
164 | # @endcode
|
---|
165 |
|
---|
166 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|
167 |
|
---|
168 | ../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
---|
169 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
|
---|
170 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/features.h
|
---|
171 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/cdefs.h
|
---|
172 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/gnu/stubs.h
|
---|
173 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
|
---|
174 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
|
---|
175 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/types.h
|
---|
176 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/time.h
|
---|
177 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/endian.h
|
---|
178 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/endian.h
|
---|
179 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
|
---|
180 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/select.h
|
---|
181 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/sigset.h
|
---|
182 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/sysmacros.h
|
---|
183 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/alloca.h
|
---|
184 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
|
---|
185 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/huge_val.h
|
---|
186 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathdef.h
|
---|
187 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/bits/mathcalls.h
|
---|
188 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
|
---|
189 | ../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
|
---|
190 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
|
---|
191 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/features.h
|
---|
192 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/cdefs.h
|
---|
193 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/gnu/stubs.h
|
---|
194 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
|
---|
195 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
|
---|
196 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/types.h
|
---|
197 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/time.h
|
---|
198 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/endian.h
|
---|
199 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/endian.h
|
---|
200 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
|
---|
201 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/select.h
|
---|
202 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/sigset.h
|
---|
203 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/sysmacros.h
|
---|
204 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/alloca.h
|
---|
205 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
|
---|
206 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/huge_val.h
|
---|
207 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathdef.h
|
---|
208 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/bits/mathcalls.h
|
---|
209 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
|
---|
210 | ../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
|
---|
211 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
|
---|
212 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/features.h
|
---|
213 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/cdefs.h
|
---|
214 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/gnu/stubs.h
|
---|
215 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
|
---|
216 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
|
---|
217 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/types.h
|
---|
218 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/time.h
|
---|
219 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/endian.h
|
---|
220 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/endian.h
|
---|
221 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
|
---|
222 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/select.h
|
---|
223 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/sigset.h
|
---|
224 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/sysmacros.h
|
---|
225 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/alloca.h
|
---|
226 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h
|
---|
227 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/huge_val.h
|
---|
228 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathdef.h
|
---|
229 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/bits/mathcalls.h
|
---|
230 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
|
---|
231 | MainFrameSimone.o: MainFrameSimone.hxx
|
---|
232 | MainFrameSimone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
---|
233 | MainFrameSimone.o: /usr/include/stdlib.h /usr/include/features.h
|
---|
234 | MainFrameSimone.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
|
---|
235 | MainFrameSimone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
|
---|
236 | MainFrameSimone.o: /usr/include/sys/types.h /usr/include/bits/types.h
|
---|
237 | MainFrameSimone.o: /usr/include/time.h /usr/include/endian.h
|
---|
238 | MainFrameSimone.o: /usr/include/bits/endian.h /usr/include/sys/select.h
|
---|
239 | MainFrameSimone.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
|
---|
240 | MainFrameSimone.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h
|
---|
241 | MainFrameSimone.o: /usr/include/math.h /usr/include/bits/huge_val.h
|
---|
242 | MainFrameSimone.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h
|
---|
243 | MainFrameSimone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
|
---|
244 | simone.o: /usr/include/stdlib.h /usr/include/features.h
|
---|
245 | simone.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
|
---|
246 | simone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/stddef.h
|
---|
247 | simone.o: /usr/include/sys/types.h /usr/include/bits/types.h
|
---|
248 | simone.o: /usr/include/time.h /usr/include/endian.h
|
---|
249 | simone.o: /usr/include/bits/endian.h /usr/include/sys/select.h
|
---|
250 | simone.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
|
---|
251 | simone.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h
|
---|
252 | simone.o: MainFrameSimone.hxx
|
---|
253 | simone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
---|
254 | simone.o: /usr/include/math.h /usr/include/bits/huge_val.h
|
---|
255 | simone.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h
|
---|
256 | simone.o: /usr/lib/gcc-lib/i486-linux/2.7.2.3/include/float.h
|
---|