source: branches/start/MagicSoft/Simulation/Detector/Reflector/Makefile@ 13449

Last change on this file since 13449 was 292, checked in by harald, 25 years ago
This is the startpoint for the futher development of the Reflector program of Jose Carlos. For all developments use this CVS-controlled directory.
File size: 8.1 KB
Line 
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: 1999-10-29 07:00:32 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk
31include ${INCLUDEMK}
32
33# @endcode
34
35# @code
36
37# common flags
38INCLUDES = -I${INCLUDE} \
39 -I${INCLUDE_COR} \
40 -I${INCLUDE_MC} \
41 -I${INCLUDE_REFL} \
42 -I/usr/include
43
44#CERNLIBDIR = ${CERNDIR}/pro/lib/
45#CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib -lkernlib -lpawlib
46
47RANLIB = -L${RANLIBDIR} -lranlib
48
49# special flags
50
51osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
52linux_FORLIBS = -lm
53generic_FORLIBS = -lm
54
55FORLIBS = ${${SYSTEM}_FORLIBS}
56
57# compilation and linking flags
58
59CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
60CFLAGS = ${CXXFLAGS}
61FFLAGS = ${CXXFLAGS}
62LIBS = ${RANLIB} ${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
71SRCS = \
72 ${INCLUDE_COR}/COREventHeader.cxx \
73 ${INCLUDE_COR}/CORParticle.cxx \
74 ${INCLUDE_COR}/CORStatfile.cxx \
75 ${INCLUDE_MC}/MCEventHeader.cxx \
76 ${INCLUDE_MC}/MCCphoton.cxx \
77 atm.cxx \
78 attenu.f \
79 readparam.cxx \
80 reflector.cxx
81
82HEADERS = \
83 COREventHeader.hxx \
84 CORParticle.hxx \
85 CORStatfile.hxx \
86 MCEventHeader.hxx \
87 MCCphoton.hxx \
88 lagrange.h \
89 atm.h \
90 readparam.h \
91 reflector.h
92
93OBJS = \
94 ${INCLUDE_COR}/COREventHeader.o \
95 ${INCLUDE_COR}/CORParticle.o \
96 ${INCLUDE_COR}/CORStatfile.o \
97 ${INCLUDE_MC}/MCEventHeader.o \
98 ${INCLUDE_MC}/MCCphoton.o \
99 atm.o \
100 attenu.o \
101 readparam.o \
102 reflector.o
103
104PROGRAM=reflector
105
106############################################################
107
108all: ${PROGRAM}
109
110depend:
111 @makedepend $(SRCS) -fMakefile 2> /dev/null
112
113doc: reflector-doc
114
115reflector-doc:
116 @echo "Generating documentation for camera . . . "
117 $(DOCUM) -latex -o reflector.tex \
118 reflector.cxx reflector.h \
119 readparam.cxx readparam.h \
120 atm.cxx atm.h
121 latex "\nonstopmode\input{reflector.tex}" && \
122 makeindex reflector && \
123 latex "\nonstopmode\input{reflector.tex}" && \
124 latex "\nonstopmode\input{reflector.tex}"
125 @echo "Files reflector.tex and reflector.dvi generated."
126
127rate:
128 @echo "Rating documentation inside code . . . "
129 $(RATE) \
130 reflector.cxx reflector.h \
131 readparam.cxx readparam.h \
132 atm.cxx atm.h
133
134${PROGRAM}: $(OBJS)
135 @echo "Linking..." $@
136 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
137 @echo "done."
138
139.cxx.o:
140 @echo "Compiling " $<
141 $(CXX) $(CXXFLAGS) -c $< -o $@
142
143.c.o:
144 @echo "Compiling " $<
145 $(CC) $(CFLAGS) -c $< -o $@
146
147.f.o:
148 @echo "Compiling " $<
149 $(F77) $(FFLAGS) -c $< -o $@
150
151lclean:
152 @echo "Cleanning..."
153 @rm -f *.o core
154
155clean:
156 @echo "Cleanning..."
157 @rm -f $(OBJS) core
158
159mrproper: clean
160 @echo "Mr.Proper in action . . ."
161 @rm -f $(PROGRAM)
162
163ctags:
164 @echo "Creating CTAGS file . . ."
165 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
166
167etags:
168 @echo "Creating TAGS file . . ."
169 @etags -C $(SRCS) $(HEADERS)
170
171listsrc:
172 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
173
174redo: clean all
175
176# @endcode
177
178# DO NOT DELETE THIS LINE -- make depend depends on it.
179
180../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx
181../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
182../include-CORSIKA/COREventHeader.o: /usr/include/standards.h
183../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
184../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
185../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
186../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
187../include-CORSIKA/COREventHeader.o: /usr/include/math.h
188../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx
189../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
190../include-CORSIKA/CORParticle.o: /usr/include/standards.h
191../include-CORSIKA/CORParticle.o: /usr/include/getopt.h
192../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
193../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
194../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
195../include-CORSIKA/CORParticle.o: /usr/include/math.h
196../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx
197../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
198../include-CORSIKA/CORStatfile.o: /usr/include/standards.h
199../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
200../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
201../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
202../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
203../include-CORSIKA/CORStatfile.o: /usr/include/math.h
204../include-MC/MCEventHeader.o: ../include-MC/MCEventHeader.hxx
205../include-MC/MCEventHeader.o: /usr/include/stdlib.h /usr/include/standards.h
206../include-MC/MCEventHeader.o: /usr/include/getopt.h /usr/include/sys/types.h
207../include-MC/MCEventHeader.o: /usr/include/mach/machine/vm_types.h
208../include-MC/MCEventHeader.o: /usr/include/sys/select.h /usr/include/math.h
209../include-MC/MCEventHeader.o: ../include-CORSIKA/COREventHeader.hxx
210../include-MC/MCCphoton.o: ../include-MC/MCCphoton.hxx /usr/include/stdlib.h
211../include-MC/MCCphoton.o: /usr/include/standards.h /usr/include/getopt.h
212../include-MC/MCCphoton.o: /usr/include/sys/types.h
213../include-MC/MCCphoton.o: /usr/include/mach/machine/vm_types.h
214../include-MC/MCCphoton.o: /usr/include/sys/select.h /usr/include/string.h
215../include-MC/MCCphoton.o: /usr/include/strings.h /usr/include/math.h
216atm.o: atm.h /usr/include/stdlib.h /usr/include/standards.h
217atm.o: /usr/include/getopt.h /usr/include/sys/types.h
218atm.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
219atm.o: /usr/include/stdio.h /usr/include/sys/seek.h /usr/include/va_list.h
220atm.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
221atm.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
222atm.o: /usr/include/sys/rt_limits.h /usr/include/string.h
223atm.o: /usr/include/strings.h /usr/include/math.h reflector-v.h
224readparam.o: readparam.h /usr/include/stdlib.h /usr/include/standards.h
225readparam.o: /usr/include/getopt.h /usr/include/sys/types.h
226readparam.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
227readparam.o: /usr/include/stdio.h /usr/include/sys/seek.h
228readparam.o: /usr/include/va_list.h /usr/include/sys/limits.h
229readparam.o: /usr/include/sys/machine/machlimits.h
230readparam.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
231readparam.o: /usr/include/sys/rt_limits.h /usr/include/string.h
232readparam.o: /usr/include/strings.h /usr/include/math.h /usr/include/float.h
233readparam.o: /usr/include/fp_class.h /usr/include/unistd.h
234readparam.o: /usr/include/sys/access.h reflector-v.h atm.h
235reflector.o: reflector.h /usr/include/stdlib.h /usr/include/standards.h
236reflector.o: /usr/include/getopt.h /usr/include/sys/types.h
237reflector.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
238reflector.o: /usr/include/stdio.h /usr/include/sys/seek.h
239reflector.o: /usr/include/va_list.h /usr/include/sys/limits.h
240reflector.o: /usr/include/sys/machine/machlimits.h
241reflector.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
242reflector.o: /usr/include/sys/rt_limits.h /usr/include/string.h
243reflector.o: /usr/include/strings.h /usr/include/stdarg.h /usr/include/math.h
244reflector.o: /usr/include/dirent.h /usr/include/unistd.h
245reflector.o: /usr/include/sys/access.h reflector-v.h readparam.h
246reflector.o: /usr/include/float.h /usr/include/fp_class.h atm.h
247reflector.o: ../include-CORSIKA/COREventHeader.hxx
248reflector.o: ../include-CORSIKA/CORParticle.hxx
249reflector.o: ../include-CORSIKA/CORStatfile.hxx
250reflector.o: ../include-MC/MCEventHeader.hxx ../include-MC/MCCphoton.hxx
251reflector.o: /usr/include/ranlib.h /usr/include/ar.h
Note: See TracBrowser for help on using the repository browser.