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: 2003-01-21 15:02:32 $
|
---|
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 | CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM}
|
---|
57 | #CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${DEBUG}
|
---|
58 |
|
---|
59 | CFLAGS = ${CXXFLAGS}
|
---|
60 | FFLAGS = ${CXXFLAGS}
|
---|
61 | LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS}
|
---|
62 |
|
---|
63 | #------------------------------------------------------------------------------
|
---|
64 |
|
---|
65 | #.SILENT:
|
---|
66 |
|
---|
67 | .SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
|
---|
68 |
|
---|
69 | SRCS = \
|
---|
70 | attenu.f \
|
---|
71 | diag.c \
|
---|
72 | init.c \
|
---|
73 | parms.c \
|
---|
74 | geometry.c \
|
---|
75 | atm.c \
|
---|
76 | ph2cph.c \
|
---|
77 | header.c \
|
---|
78 | attach.c \
|
---|
79 | reflector.c
|
---|
80 |
|
---|
81 | HEADERS = \
|
---|
82 | atm.h \
|
---|
83 | diag.h \
|
---|
84 | geometry.h \
|
---|
85 | header.h \
|
---|
86 | init.h \
|
---|
87 | lagrange.h \
|
---|
88 | parms.h \
|
---|
89 | version.h
|
---|
90 |
|
---|
91 | OBJS = \
|
---|
92 | attenu.o \
|
---|
93 | diag.o \
|
---|
94 | init.o \
|
---|
95 | parms.o \
|
---|
96 | geometry.o \
|
---|
97 | atm.o \
|
---|
98 | ph2cph.o \
|
---|
99 | header.o \
|
---|
100 | attach.o \
|
---|
101 | reflector.o
|
---|
102 |
|
---|
103 | PROGRAM=reflector
|
---|
104 |
|
---|
105 | ############################################################
|
---|
106 |
|
---|
107 | all: ${PROGRAM}
|
---|
108 |
|
---|
109 | depend:
|
---|
110 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
111 |
|
---|
112 | doc: reflector-doc
|
---|
113 |
|
---|
114 | reflector-doc:
|
---|
115 | @echo "Generating documentation for camera . . . "
|
---|
116 | $(DOCUM) -latex -o reflector.tex \
|
---|
117 | reflector.cxx reflector.h \
|
---|
118 | readparam.cxx readparam.h \
|
---|
119 | atm.cxx atm.h
|
---|
120 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
121 | makeindex reflector && \
|
---|
122 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
123 | latex "\nonstopmode\input{reflector.tex}"
|
---|
124 | @echo "Files reflector.tex and reflector.dvi generated."
|
---|
125 |
|
---|
126 | rate:
|
---|
127 | @echo "Rating documentation inside code . . . "
|
---|
128 | $(RATE) \
|
---|
129 | reflector.cxx reflector.h \
|
---|
130 | readparam.cxx readparam.h \
|
---|
131 | atm.cxx atm.h
|
---|
132 |
|
---|
133 | ${PROGRAM}: $(OBJS)
|
---|
134 | @echo "Linking..." $@
|
---|
135 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
---|
136 | @echo "done."
|
---|
137 |
|
---|
138 | .cxx.o:
|
---|
139 | @echo "Compiling " $<
|
---|
140 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
141 |
|
---|
142 | .c.o:
|
---|
143 | @echo "Compiling " $<
|
---|
144 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
145 |
|
---|
146 | .f.o:
|
---|
147 | @echo "Compiling " $<
|
---|
148 | $(F77) $(FFLAGS) -c $< -o $@
|
---|
149 |
|
---|
150 | lclean:
|
---|
151 | @echo "Cleanning..."
|
---|
152 | @rm -f *.o core
|
---|
153 |
|
---|
154 | clean:
|
---|
155 | @echo "Cleanning..."
|
---|
156 | @rm -f $(OBJS) core
|
---|
157 |
|
---|
158 | mrproper: clean
|
---|
159 | @echo "Mr.Proper in action . . ."
|
---|
160 | @rm -f $(PROGRAM)
|
---|
161 |
|
---|
162 | ctags:
|
---|
163 | @echo "Creating CTAGS file . . ."
|
---|
164 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
---|
165 |
|
---|
166 | etags:
|
---|
167 | @echo "Creating TAGS file . . ."
|
---|
168 | @etags -C $(SRCS) $(HEADERS)
|
---|
169 |
|
---|
170 | listsrc:
|
---|
171 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
172 |
|
---|
173 | redo: clean all
|
---|
174 |
|
---|
175 | # @endcode
|
---|
176 |
|
---|
177 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|
178 |
|
---|
179 | diag.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
|
---|
180 | diag.o: /usr/include/va_list.h /usr/include/sys/types.h
|
---|
181 | diag.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
---|
182 | diag.o: /usr/include/getopt.h /usr/include/sys/limits.h
|
---|
183 | diag.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
|
---|
184 | diag.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
|
---|
185 | diag.o: /usr/include/stdlib.h /usr/include/stdarg.h version.h diag.h
|
---|
186 | init.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
|
---|
187 | init.o: /usr/include/va_list.h /usr/include/sys/types.h
|
---|
188 | init.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
---|
189 | init.o: /usr/include/getopt.h /usr/include/sys/limits.h
|
---|
190 | init.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
|
---|
191 | init.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
|
---|
192 | init.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdlib.h
|
---|
193 | init.o: /usr/include/math.h version.h diag.h init.h
|
---|
194 | parms.o: /usr/include/stdio.h /usr/include/standards.h
|
---|
195 | parms.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
---|
196 | parms.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
197 | parms.o: /usr/include/sys/select.h /usr/include/getopt.h
|
---|
198 | parms.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
---|
199 | parms.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
---|
200 | parms.o: /usr/include/sys/rt_limits.h /usr/include/string.h
|
---|
201 | parms.o: /usr/include/strings.h /usr/include/stdlib.h /usr/include/math.h
|
---|
202 | parms.o: diag.h parms.h init.h
|
---|
203 | geometry.o: /usr/include/stdio.h /usr/include/standards.h
|
---|
204 | geometry.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
---|
205 | geometry.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
206 | geometry.o: /usr/include/sys/select.h /usr/include/getopt.h
|
---|
207 | geometry.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
---|
208 | geometry.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
---|
209 | geometry.o: /usr/include/sys/rt_limits.h /usr/include/string.h
|
---|
210 | geometry.o: /usr/include/strings.h /usr/include/stdlib.h /usr/include/math.h
|
---|
211 | geometry.o: diag.h geometry.h init.h
|
---|
212 | atm.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
|
---|
213 | atm.o: /usr/include/va_list.h /usr/include/sys/types.h
|
---|
214 | atm.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
---|
215 | atm.o: /usr/include/getopt.h /usr/include/sys/limits.h
|
---|
216 | atm.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
|
---|
217 | atm.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
|
---|
218 | atm.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h
|
---|
219 | atm.o: /usr/include/stdlib.h atm.h diag.h init.h
|
---|
220 | ph2cph.o: /usr/include/stdio.h /usr/include/standards.h
|
---|
221 | ph2cph.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
---|
222 | ph2cph.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
223 | ph2cph.o: /usr/include/sys/select.h /usr/include/getopt.h
|
---|
224 | ph2cph.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
---|
225 | ph2cph.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
---|
226 | ph2cph.o: /usr/include/sys/rt_limits.h /usr/include/math.h
|
---|
227 | ph2cph.o: /usr/include/stdlib.h diag.h init.h lagrange.h
|
---|
228 | header.o: /usr/include/string.h /usr/include/standards.h
|
---|
229 | header.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
230 | header.o: /usr/include/sys/select.h /usr/include/strings.h header.h
|
---|
231 | attach.o: /usr/include/stdio.h /usr/include/standards.h
|
---|
232 | attach.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
---|
233 | attach.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
234 | attach.o: /usr/include/sys/select.h /usr/include/getopt.h
|
---|
235 | attach.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
---|
236 | attach.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
---|
237 | attach.o: /usr/include/sys/rt_limits.h
|
---|
238 | reflector.o: /usr/include/stdio.h /usr/include/standards.h
|
---|
239 | reflector.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
---|
240 | reflector.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
---|
241 | reflector.o: /usr/include/sys/select.h /usr/include/getopt.h
|
---|
242 | reflector.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
---|
243 | reflector.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
---|
244 | reflector.o: /usr/include/sys/rt_limits.h /usr/include/stdlib.h
|
---|
245 | reflector.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h
|
---|
246 | reflector.o: version.h diag.h init.h header.h
|
---|