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

Last change on this file since 859 was 774, checked in by blanch, 24 years ago
Small modifications to be able to compile under Linux.
File size: 8.6 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.2 $
22# $Author: blanch $
23# $Date: 2001-04-26 07:57:41 $
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
55CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
56CFLAGS = ${CXXFLAGS}
57#CFLAGS = -std1 -warnprotos -msg_enable level6 -msg_disable returnchecks
58FFLAGS = ${CXXFLAGS}
59LIBS = ${RANLIB} ${FORLIBS}
60LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS}
61
62#------------------------------------------------------------------------------
63
64#.SILENT:
65
66.SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
67
68SRCS = \
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
79HEADERS = \
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
89OBJS = \
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
100PROGRAM=reflector
101
102############################################################
103
104all: ${PROGRAM}
105
106depend:
107 @makedepend $(SRCS) -fMakefile 2> /dev/null
108
109doc: reflector-doc
110
111reflector-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
123rate:
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
147lclean:
148 @echo "Cleanning..."
149 @rm -f *.o core
150
151clean:
152 @echo "Cleanning..."
153 @rm -f $(OBJS) core
154
155mrproper: clean
156 @echo "Mr.Proper in action . . ."
157 @rm -f $(PROGRAM)
158
159ctags:
160 @echo "Creating CTAGS file . . ."
161 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
162
163etags:
164 @echo "Creating TAGS file . . ."
165 @etags -C $(SRCS) $(HEADERS)
166
167listsrc:
168 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
169
170redo: clean all
171
172# @endcode
173
174# DO NOT DELETE THIS LINE -- make depend depends on it.
175
176diag.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h
177diag.o: /usr/include/gnu/stubs.h
178diag.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
179diag.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
180diag.o: /usr/include/bits/types.h /usr/include/libio.h
181diag.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
182diag.o: /usr/include/stdlib.h /usr/include/sys/types.h /usr/include/time.h
183diag.o: /usr/include/endian.h /usr/include/bits/endian.h
184diag.o: /usr/include/sys/select.h /usr/include/bits/select.h
185diag.o: /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h
186diag.o: /usr/include/alloca.h version.h diag.h
187init.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h
188init.o: /usr/include/gnu/stubs.h
189init.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
190init.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
191init.o: /usr/include/bits/types.h /usr/include/libio.h
192init.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
193init.o: /usr/include/string.h /usr/include/stdlib.h /usr/include/sys/types.h
194init.o: /usr/include/time.h /usr/include/endian.h /usr/include/bits/endian.h
195init.o: /usr/include/sys/select.h /usr/include/bits/select.h
196init.o: /usr/include/bits/sigset.h /usr/include/sys/sysmacros.h
197init.o: /usr/include/alloca.h /usr/include/math.h
198init.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h
199init.o: /usr/include/bits/mathcalls.h
200init.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h
201init.o: version.h diag.h init.h
202parms.o: /usr/include/stdio.h /usr/include/features.h
203parms.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
204parms.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
205parms.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
206parms.o: /usr/include/bits/types.h /usr/include/libio.h
207parms.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
208parms.o: /usr/include/string.h /usr/include/math.h
209parms.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h
210parms.o: /usr/include/bits/mathcalls.h
211parms.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h
212parms.o: diag.h parms.h init.h
213geometry.o: /usr/include/stdio.h /usr/include/features.h
214geometry.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
215geometry.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
216geometry.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
217geometry.o: /usr/include/bits/types.h /usr/include/libio.h
218geometry.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
219geometry.o: /usr/include/string.h /usr/include/math.h
220geometry.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h
221geometry.o: /usr/include/bits/mathcalls.h
222geometry.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h
223geometry.o: diag.h geometry.h init.h
224atm.o: /usr/include/stdio.h /usr/include/features.h /usr/include/sys/cdefs.h
225atm.o: /usr/include/gnu/stubs.h
226atm.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
227atm.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
228atm.o: /usr/include/bits/types.h /usr/include/libio.h
229atm.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
230atm.o: /usr/include/string.h /usr/include/math.h /usr/include/bits/huge_val.h
231atm.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h
232atm.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h diag.h
233atm.o: atm.h init.h
234ph2cph.o: /usr/include/stdio.h /usr/include/features.h
235ph2cph.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
236ph2cph.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
237ph2cph.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
238ph2cph.o: /usr/include/bits/types.h /usr/include/libio.h
239ph2cph.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
240ph2cph.o: /usr/include/math.h /usr/include/bits/huge_val.h
241ph2cph.o: /usr/include/bits/mathdef.h /usr/include/bits/mathcalls.h
242ph2cph.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h
243ph2cph.o: diag.h init.h lagrange.h
244header.o: /usr/include/string.h /usr/include/features.h
245header.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
246header.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
247header.o: header.h
248reflector.o: /usr/include/stdio.h /usr/include/features.h
249reflector.o: /usr/include/sys/cdefs.h /usr/include/gnu/stubs.h
250reflector.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h
251reflector.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
252reflector.o: /usr/include/bits/types.h /usr/include/libio.h
253reflector.o: /usr/include/_G_config.h /usr/include/bits/stdio_lim.h
254reflector.o: /usr/include/stdlib.h /usr/include/sys/types.h
255reflector.o: /usr/include/time.h /usr/include/endian.h
256reflector.o: /usr/include/bits/endian.h /usr/include/sys/select.h
257reflector.o: /usr/include/bits/select.h /usr/include/bits/sigset.h
258reflector.o: /usr/include/sys/sysmacros.h /usr/include/alloca.h
259reflector.o: /usr/include/string.h /usr/include/math.h
260reflector.o: /usr/include/bits/huge_val.h /usr/include/bits/mathdef.h
261reflector.o: /usr/include/bits/mathcalls.h
262reflector.o: /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/float.h
263reflector.o: version.h diag.h init.h header.h
Note: See TracBrowser for help on using the repository browser.