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: 2001-04-09 08:59:01 $
|
---|
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 | ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx
|
---|
177 | ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
|
---|
178 | ../include-CORSIKA/COREventHeader.o: /usr/include/standards.h
|
---|
179 | ../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
|
---|
180 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
|
---|
181 | ../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
|
---|
182 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
|
---|
183 | ../include-CORSIKA/COREventHeader.o: /usr/include/math.h
|
---|
184 | ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx
|
---|
185 | ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
|
---|
186 | ../include-CORSIKA/CORParticle.o: /usr/include/standards.h
|
---|
187 | ../include-CORSIKA/CORParticle.o: /usr/include/getopt.h
|
---|
188 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
|
---|
189 | ../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
|
---|
190 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
|
---|
191 | ../include-CORSIKA/CORParticle.o: /usr/include/math.h
|
---|
192 | ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx
|
---|
193 | ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
|
---|
194 | ../include-CORSIKA/CORStatfile.o: /usr/include/standards.h
|
---|
195 | ../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
|
---|
196 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
|
---|
197 | ../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
|
---|
198 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
|
---|
199 | ../include-CORSIKA/CORStatfile.o: /usr/include/math.h
|
---|
200 | ../include-MC/MCEventHeader.o: ../include-MC/MCEventHeader.hxx
|
---|
201 | ../include-MC/MCEventHeader.o: /usr/include/stdlib.h /usr/include/standards.h
|
---|
202 | ../include-MC/MCEventHeader.o: /usr/include/getopt.h /usr/include/sys/types.h
|
---|
203 | ../include-MC/MCEventHeader.o: /usr/include/mach/machine/vm_types.h
|
---|
204 | ../include-MC/MCEventHeader.o: /usr/include/sys/select.h /usr/include/math.h
|
---|
205 | ../include-MC/MCEventHeader.o: ../include-CORSIKA/COREventHeader.hxx
|
---|
206 | ../include-MC/MCCphoton.o: ../include-MC/MCCphoton.hxx /usr/include/stdlib.h
|
---|
207 | ../include-MC/MCCphoton.o: /usr/include/standards.h /usr/include/getopt.h
|
---|
208 | ../include-MC/MCCphoton.o: /usr/include/sys/types.h
|
---|
209 | ../include-MC/MCCphoton.o: /usr/include/mach/machine/vm_types.h
|
---|
210 | ../include-MC/MCCphoton.o: /usr/include/sys/select.h /usr/include/string.h
|
---|
211 | ../include-MC/MCCphoton.o: /usr/include/strings.h /usr/include/math.h
|
---|