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