source: trunk/MagicSoft/Simulation/Detector/ReflectorII/Makefile@ 1535

Last change on this file since 1535 was 1535, checked in by bigongia, 22 years ago
Version 0.6. Changed output format: added run header, changed event header, added ascii parameter files attached at the end of every output file to keep all info.
File size: 7.4 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.4 $
22# $Author: bigongia $
23# $Date: 2002-10-09 18:15:27 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32
33# @endcode
34
35# @code
36
37# common flags
38INCLUDES = -I/usr/include -I/usr/include/cxx
39
40#CERNLIBDIR = ${CERNDIR}/pro/lib/
41#CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib -lkernlib -lpawlib
42
43RANLIB = -L${RANLIBDIR} -lranlib
44
45# special flags
46
47osf_FORLIBS = -L/usr/lib -lUfor -lFutil -lfor -lutil -lots -lm
48linux_FORLIBS = -lm
49generic_FORLIBS = -lm
50
51FORLIBS = ${${SYSTEM}_FORLIBS}
52
53# compilation and linking flags
54
55#CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
56CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM}
57#CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${DEBUG}
58
59CFLAGS = ${CXXFLAGS}
60FFLAGS = ${CXXFLAGS}
61LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS}
62
63#------------------------------------------------------------------------------
64
65#.SILENT:
66
67.SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
68
69SRCS = \
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
81HEADERS = \
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
91OBJS = \
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
103PROGRAM=reflector
104
105############################################################
106
107all: ${PROGRAM}
108
109depend:
110 @makedepend $(SRCS) -fMakefile 2> /dev/null
111
112doc: reflector-doc
113
114reflector-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
126rate:
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
150lclean:
151 @echo "Cleanning..."
152 @rm -f *.o core
153
154clean:
155 @echo "Cleanning..."
156 @rm -f $(OBJS) core
157
158mrproper: clean
159 @echo "Mr.Proper in action . . ."
160 @rm -f $(PROGRAM)
161
162ctags:
163 @echo "Creating CTAGS file . . ."
164 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
165
166etags:
167 @echo "Creating TAGS file . . ."
168 @etags -C $(SRCS) $(HEADERS)
169
170listsrc:
171 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
172
173redo: clean all
174
175# @endcode
176
177# DO NOT DELETE THIS LINE -- make depend depends on it.
178
179diag.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
180diag.o: /usr/include/va_list.h /usr/include/sys/types.h
181diag.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
182diag.o: /usr/include/getopt.h /usr/include/sys/limits.h
183diag.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
184diag.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
185diag.o: /usr/include/stdlib.h /usr/include/stdarg.h version.h diag.h
186init.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
187init.o: /usr/include/va_list.h /usr/include/sys/types.h
188init.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
189init.o: /usr/include/getopt.h /usr/include/sys/limits.h
190init.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
191init.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
192init.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdlib.h
193init.o: /usr/include/math.h version.h diag.h init.h
194parms.o: /usr/include/stdio.h /usr/include/standards.h
195parms.o: /usr/include/sys/seek.h /usr/include/va_list.h
196parms.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
197parms.o: /usr/include/sys/select.h /usr/include/getopt.h
198parms.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
199parms.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
200parms.o: /usr/include/sys/rt_limits.h /usr/include/string.h
201parms.o: /usr/include/strings.h /usr/include/stdlib.h /usr/include/math.h
202parms.o: diag.h parms.h init.h
203geometry.o: /usr/include/stdio.h /usr/include/standards.h
204geometry.o: /usr/include/sys/seek.h /usr/include/va_list.h
205geometry.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
206geometry.o: /usr/include/sys/select.h /usr/include/getopt.h
207geometry.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
208geometry.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
209geometry.o: /usr/include/sys/rt_limits.h /usr/include/string.h
210geometry.o: /usr/include/strings.h /usr/include/stdlib.h /usr/include/math.h
211geometry.o: diag.h geometry.h init.h
212atm.o: /usr/include/stdio.h /usr/include/standards.h /usr/include/sys/seek.h
213atm.o: /usr/include/va_list.h /usr/include/sys/types.h
214atm.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
215atm.o: /usr/include/getopt.h /usr/include/sys/limits.h
216atm.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
217atm.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
218atm.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h
219atm.o: /usr/include/stdlib.h diag.h atm.h init.h
220ph2cph.o: /usr/include/stdio.h /usr/include/standards.h
221ph2cph.o: /usr/include/sys/seek.h /usr/include/va_list.h
222ph2cph.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
223ph2cph.o: /usr/include/sys/select.h /usr/include/getopt.h
224ph2cph.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
225ph2cph.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
226ph2cph.o: /usr/include/sys/rt_limits.h /usr/include/math.h
227ph2cph.o: /usr/include/stdlib.h diag.h init.h lagrange.h
228header.o: /usr/include/string.h /usr/include/standards.h
229header.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
230header.o: /usr/include/sys/select.h /usr/include/strings.h header.h
231attach.o: /usr/include/string.h /usr/include/standards.h
232attach.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
233attach.o: /usr/include/sys/select.h /usr/include/strings.h
234reflector.o: /usr/include/stdio.h /usr/include/standards.h
235reflector.o: /usr/include/sys/seek.h /usr/include/va_list.h
236reflector.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
237reflector.o: /usr/include/sys/select.h /usr/include/getopt.h
238reflector.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
239reflector.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
240reflector.o: /usr/include/sys/rt_limits.h /usr/include/stdlib.h
241reflector.o: /usr/include/string.h /usr/include/strings.h /usr/include/math.h
242reflector.o: version.h diag.h init.h header.h
Note: See TracBrowser for help on using the repository browser.