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: magiccvs $
|
---|
23 | # $Date: 1999-11-25 20:34:58 $
|
---|
24 | #
|
---|
25 | ##################################################################
|
---|
26 | # @maintitle
|
---|
27 |
|
---|
28 | # @code
|
---|
29 |
|
---|
30 | INCLUDEMK = config.mk.${OSTYPE}
|
---|
31 | include ${INCLUDEMK}
|
---|
32 |
|
---|
33 | # @endcode
|
---|
34 |
|
---|
35 | # @code
|
---|
36 |
|
---|
37 | # includes
|
---|
38 |
|
---|
39 | INCLUDE = ../../Detector/include-GENERAL
|
---|
40 | INCLUDE_COR = ../../Detector/include-CORSIKA
|
---|
41 | INCLUDE_CHECK = .
|
---|
42 |
|
---|
43 |
|
---|
44 | # common flags
|
---|
45 |
|
---|
46 | INCLUDES = -I${INCLUDE} \
|
---|
47 | -I${INCLUDE_COR} \
|
---|
48 | -I${INCLUDE_CHECK} \
|
---|
49 | -I${INCLUDE_CERN} \
|
---|
50 | -I/usr/include
|
---|
51 |
|
---|
52 | CERNLIBDIR = ${CERNDIR}/pro/lib/
|
---|
53 | CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib \
|
---|
54 | -lkernlib -lpawlib -lmathlib
|
---|
55 |
|
---|
56 | RANLIBDIR = ../../Detector/lib
|
---|
57 | RANLIB = -L${RANLIBDIR} -lranlib
|
---|
58 |
|
---|
59 | # special flags
|
---|
60 |
|
---|
61 | osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
|
---|
62 | linux_FORLIBS = -L/usr/local/lib/gcc-lib/i686-pc-linux-gnu/egcs-2.91.57 \
|
---|
63 | -L/usr/local/i686-pc-linux-gnu/lib \
|
---|
64 | -L/usr/local/lib \
|
---|
65 | /usr/X11R6/lib/libXt.a \
|
---|
66 | /usr/X11R6/lib/libXext.a \
|
---|
67 | /usr/X11R6/lib/libXp.a \
|
---|
68 | /usr/X11R6/lib/libX11.a \
|
---|
69 | -lcrypt -ldl -lg2c -lm -lgcc -lc -lgcc /usr/lib/crtn.o
|
---|
70 | generic_FORLIBS = -lm
|
---|
71 |
|
---|
72 | FORLIBS = ${${SYSTEM}_FORLIBS}
|
---|
73 |
|
---|
74 | # compilation and linking flags
|
---|
75 |
|
---|
76 | CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
|
---|
77 | CFLAGS = ${CXXFLAGS}
|
---|
78 | FFLAGS = ${CXXFLAGS}
|
---|
79 | LIBS = ${RANLIB} ${CERNLIB} ${FORLIBS} ${LIBS_linux}
|
---|
80 | #LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS}
|
---|
81 |
|
---|
82 | #------------------------------------------------------------------------------
|
---|
83 |
|
---|
84 | #.SILENT:
|
---|
85 |
|
---|
86 | .SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
|
---|
87 |
|
---|
88 | SRCS = \
|
---|
89 | ${INCLUDE_COR}/COREventHeader.cxx \
|
---|
90 | ${INCLUDE_COR}/CORParticle.cxx \
|
---|
91 | ${INCLUDE_COR}/CORStatfile.cxx \
|
---|
92 | checkmc.cxx
|
---|
93 |
|
---|
94 | HEADERS = \
|
---|
95 | COREventHeader.hxx \
|
---|
96 | CORParticle.hxx \
|
---|
97 | CORStatfile.hxx \
|
---|
98 | checkmc.h
|
---|
99 |
|
---|
100 | OBJS = \
|
---|
101 | ${INCLUDE_COR}/COREventHeader.o \
|
---|
102 | ${INCLUDE_COR}/CORParticle.o \
|
---|
103 | ${INCLUDE_COR}/CORStatfile.o \
|
---|
104 | checkmc.o
|
---|
105 |
|
---|
106 |
|
---|
107 | PROGRAM=checkmc_${OSTYPE}
|
---|
108 |
|
---|
109 | ############################################################
|
---|
110 |
|
---|
111 | all: ${PROGRAM}
|
---|
112 |
|
---|
113 | depend:
|
---|
114 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
---|
115 |
|
---|
116 | doc: reflector-doc
|
---|
117 |
|
---|
118 | reflector-doc:
|
---|
119 | @echo "Generating documentation for camera . . . "
|
---|
120 | $(DOCUM) -latex -o reflector.tex \
|
---|
121 | reflector.cxx reflector.h \
|
---|
122 | readparam.cxx readparam.h \
|
---|
123 | atm.cxx atm.h
|
---|
124 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
125 | makeindex reflector && \
|
---|
126 | latex "\nonstopmode\input{reflector.tex}" && \
|
---|
127 | latex "\nonstopmode\input{reflector.tex}"
|
---|
128 | @echo "Files reflector.tex and reflector.dvi generated."
|
---|
129 |
|
---|
130 | rate:
|
---|
131 | @echo "Rating documentation inside code . . . "
|
---|
132 | $(RATE) \
|
---|
133 | reflector.cxx reflector.h \
|
---|
134 | readparam.cxx readparam.h \
|
---|
135 | atm.cxx atm.h
|
---|
136 |
|
---|
137 | ${PROGRAM}: $(OBJS)
|
---|
138 | @echo "Linking..." $@
|
---|
139 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
---|
140 | @echo "done."
|
---|
141 |
|
---|
142 | .cxx.o:
|
---|
143 | @echo "Compiling " $<
|
---|
144 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
---|
145 |
|
---|
146 | .c.o:
|
---|
147 | @echo "Compiling " $<
|
---|
148 | $(CC) $(CFLAGS) -c $< -o $@
|
---|
149 |
|
---|
150 | .f.o:
|
---|
151 | @echo "Compiling " $<
|
---|
152 | $(F77) $(FFLAGS) -c $< -o $@
|
---|
153 |
|
---|
154 | lclean:
|
---|
155 | @echo "Cleanning..."
|
---|
156 | @rm -f *.o core
|
---|
157 |
|
---|
158 | clean:
|
---|
159 | @echo "Cleanning..."
|
---|
160 | @rm -f $(OBJS) core
|
---|
161 |
|
---|
162 | mrproper: clean
|
---|
163 | @echo "Mr.Proper in action . . ."
|
---|
164 | @rm -rf test
|
---|
165 | @rm -f $(PROGRAM)
|
---|
166 |
|
---|
167 | ctags:
|
---|
168 | @echo "Creating CTAGS file . . ."
|
---|
169 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
---|
170 |
|
---|
171 | etags:
|
---|
172 | @echo "Creating TAGS file . . ."
|
---|
173 | @etags -C $(SRCS) $(HEADERS)
|
---|
174 |
|
---|
175 | listsrc:
|
---|
176 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
---|
177 |
|
---|
178 | redo: clean all
|
---|
179 |
|
---|
180 | # @endcode
|
---|
181 |
|
---|
182 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
---|
183 |
|
---|
184 | ../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
---|
185 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
|
---|
186 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/standards.h
|
---|
187 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
|
---|
188 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
|
---|
189 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
|
---|
190 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
|
---|
191 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
|
---|
192 | ../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
|
---|
193 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
|
---|
194 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/standards.h
|
---|
195 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/getopt.h
|
---|
196 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
|
---|
197 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
|
---|
198 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
|
---|
199 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
|
---|
200 | ../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
|
---|
201 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
|
---|
202 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/standards.h
|
---|
203 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
|
---|
204 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
|
---|
205 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
|
---|
206 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
|
---|
207 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h
|
---|
208 | checkmc.o: checkmc.h /usr/include/stdlib.h /usr/include/standards.h
|
---|
209 | checkmc.o: /usr/include/getopt.h /usr/include/sys/types.h
|
---|
210 | checkmc.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
---|
211 | checkmc.o: /usr/include/stdio.h /usr/include/sys/seek.h
|
---|
212 | checkmc.o: /usr/include/va_list.h /usr/include/sys/limits.h
|
---|
213 | checkmc.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
|
---|
214 | checkmc.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
|
---|
215 | checkmc.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdarg.h
|
---|
216 | checkmc.o: /usr/include/math.h /usr/include/float.h /usr/include/fp_class.h
|
---|
217 | checkmc.o: /usr/include/dirent.h
|
---|
218 | checkmc.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
---|
219 | checkmc.o: ../../Detector/include-CORSIKA/CORParticle.hxx
|
---|
220 | checkmc.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
|
---|