source: trunk/MagicSoft/Simulation/Corsika/Checkmc/Makefile@ 2797

Last change on this file since 2797 was 328, checked in by magiccvs, 25 years ago
This is the starting point for further development of the checkmc program. This program is based on the work of JC Gonzales, D Petry & P Morawitz. I hope it is running under linux and osf/alphas. You have to set the right values in the config.mk.* file and the Makefile. Now this program is also under CVS control.
File size: 6.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.1.1.1 $
22# $Author: magiccvs $
23# $Date: 1999-11-25 20:34:58 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32
33# @endcode
34
35# @code
36
37# includes
38
39INCLUDE = ../../Detector/include-GENERAL
40INCLUDE_COR = ../../Detector/include-CORSIKA
41INCLUDE_CHECK = .
42
43
44# common flags
45
46INCLUDES = -I${INCLUDE} \
47 -I${INCLUDE_COR} \
48 -I${INCLUDE_CHECK} \
49 -I${INCLUDE_CERN} \
50 -I/usr/include
51
52CERNLIBDIR = ${CERNDIR}/pro/lib/
53CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib \
54 -lkernlib -lpawlib -lmathlib
55
56RANLIBDIR = ../../Detector/lib
57RANLIB = -L${RANLIBDIR} -lranlib
58
59# special flags
60
61osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
62linux_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
70generic_FORLIBS = -lm
71
72FORLIBS = ${${SYSTEM}_FORLIBS}
73
74# compilation and linking flags
75
76CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
77CFLAGS = ${CXXFLAGS}
78FFLAGS = ${CXXFLAGS}
79LIBS = ${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
88SRCS = \
89 ${INCLUDE_COR}/COREventHeader.cxx \
90 ${INCLUDE_COR}/CORParticle.cxx \
91 ${INCLUDE_COR}/CORStatfile.cxx \
92 checkmc.cxx
93
94HEADERS = \
95 COREventHeader.hxx \
96 CORParticle.hxx \
97 CORStatfile.hxx \
98 checkmc.h
99
100OBJS = \
101 ${INCLUDE_COR}/COREventHeader.o \
102 ${INCLUDE_COR}/CORParticle.o \
103 ${INCLUDE_COR}/CORStatfile.o \
104 checkmc.o
105
106
107PROGRAM=checkmc_${OSTYPE}
108
109############################################################
110
111all: ${PROGRAM}
112
113depend:
114 @makedepend $(SRCS) -fMakefile 2> /dev/null
115
116doc: reflector-doc
117
118reflector-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
130rate:
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
154lclean:
155 @echo "Cleanning..."
156 @rm -f *.o core
157
158clean:
159 @echo "Cleanning..."
160 @rm -f $(OBJS) core
161
162mrproper: clean
163 @echo "Mr.Proper in action . . ."
164 @rm -rf test
165 @rm -f $(PROGRAM)
166
167ctags:
168 @echo "Creating CTAGS file . . ."
169 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
170
171etags:
172 @echo "Creating TAGS file . . ."
173 @etags -C $(SRCS) $(HEADERS)
174
175listsrc:
176 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
177
178redo: 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
208checkmc.o: checkmc.h /usr/include/stdlib.h /usr/include/standards.h
209checkmc.o: /usr/include/getopt.h /usr/include/sys/types.h
210checkmc.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
211checkmc.o: /usr/include/stdio.h /usr/include/sys/seek.h
212checkmc.o: /usr/include/va_list.h /usr/include/sys/limits.h
213checkmc.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
214checkmc.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
215checkmc.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdarg.h
216checkmc.o: /usr/include/math.h /usr/include/float.h /usr/include/fp_class.h
217checkmc.o: /usr/include/dirent.h
218checkmc.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
219checkmc.o: ../../Detector/include-CORSIKA/CORParticle.hxx
220checkmc.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
Note: See TracBrowser for help on using the repository browser.