source: trunk/MagicSoft/Simulation/Corsika/Simone/Makefile

Last change on this file was 418, checked in by harald, 24 years ago
Changed in a way that SIMONE is able to read CER files and print the content of the shower on screen.
File size: 6.7 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.3 $
22# $Author: harald $
23# $Date: 2000-07-12 10:19:10 $
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${INCLUDE} \
39 -I${INCLUDE_COR} \
40 -I${INCLUDE_ROOT} \
41 -I${INCLUDE_SIMO} \
42 -I/usr/include -I/usr/include/g++
43
44RANLIB = -L${RANLIBDIR} -lranlib
45
46# what is needed for ROOT is declared in config.mk file
47
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} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS} ${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 MSimone.cxx \
76 simone.cxx
77
78HEADERS = \
79 COREventHeader.hxx \
80 CORParticle.hxx \
81 CORStatfile.hxx \
82 MSimone.hxx \
83 simone.h
84
85OBJS = \
86 ${INCLUDE_COR}/COREventHeader.o \
87 ${INCLUDE_COR}/CORParticle.o \
88 ${INCLUDE_COR}/CORStatfile.o \
89 MSimone.o \
90 simone.o
91
92PROGRAM=simone
93
94############################################################
95
96all: ${PROGRAM}
97
98depend:
99 @makedepend $(SRCS) -fMakefile 2> /dev/null
100
101doc: reflector-doc
102
103reflector-doc:
104 @echo "Generating documentation for camera . . . "
105 $(DOCUM) -latex -o reflector.tex \
106 reflector.cxx reflector.h \
107 readparam.cxx readparam.h \
108 atm.cxx atm.h
109 latex "\nonstopmode\input{reflector.tex}" && \
110 makeindex reflector && \
111 latex "\nonstopmode\input{reflector.tex}" && \
112 latex "\nonstopmode\input{reflector.tex}"
113 @echo "Files reflector.tex and reflector.dvi generated."
114
115rate:
116 @echo "Rating documentation inside code . . . "
117 $(RATE) \
118 reflector.cxx reflector.h \
119 readparam.cxx readparam.h \
120 atm.cxx atm.h
121
122${PROGRAM}: $(OBJS)
123 @echo "Linking..." $@
124 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
125 @echo "done."
126
127.cxx.o:
128 @echo "Compiling " $<
129 $(CXX) $(CXXFLAGS) -c $< -o $@
130
131.c.o:
132 @echo "Compiling " $<
133 $(CC) $(CFLAGS) -c $< -o $@
134
135.f.o:
136 @echo "Compiling " $<
137 $(F77) $(FFLAGS) -c $< -o $@
138
139lclean:
140 @echo "Cleanning..."
141 @rm -f *.o core
142
143clean:
144 @echo "Cleanning..."
145 @rm -f $(OBJS) core
146
147mrproper: clean
148 @echo "Mr.Proper in action . . ."
149 @rm -f $(PROGRAM)
150
151ctags:
152 @echo "Creating CTAGS file . . ."
153 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
154
155etags:
156 @echo "Creating TAGS file . . ."
157 @etags -C $(SRCS) $(HEADERS)
158
159listsrc:
160 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
161
162redo: clean all
163
164# @endcode
165
166# DO NOT DELETE THIS LINE -- make depend depends on it.
167
168../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
169../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
170../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/standards.h
171../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
172../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
173../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
174../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
175../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
176../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
177../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
178../../Detector/include-CORSIKA/CORParticle.o: /usr/include/standards.h
179../../Detector/include-CORSIKA/CORParticle.o: /usr/include/getopt.h
180../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
181../../Detector/include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
182../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
183../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
184../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
185../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
186../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/standards.h
187../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
188../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
189../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
190../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
191../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h
192MSimone.o: MSimone.hxx /usr/include/stdlib.h /usr/include/standards.h
193MSimone.o: /usr/include/getopt.h /usr/include/sys/types.h
194MSimone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
195MSimone.o: /usr/include/stdio.h /usr/include/sys/seek.h
196MSimone.o: /usr/include/va_list.h /usr/include/sys/limits.h
197MSimone.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
198MSimone.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
199MSimone.o: /usr/include/string.h /usr/include/strings.h /usr/include/unistd.h
200MSimone.o: /usr/include/sys/access.h /usr/include/fcntl.h
201MSimone.o: /usr/include/sys/fcntl.h /usr/include/sys/mode.h
202MSimone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
203MSimone.o: /usr/include/math.h
204simone.o: /usr/include/stdlib.h /usr/include/standards.h
205simone.o: /usr/include/getopt.h /usr/include/sys/types.h
206simone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
207simone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
208simone.o: /usr/include/math.h ../../Detector/include-CORSIKA/CORParticle.hxx
209simone.o: ../../Detector/include-CORSIKA/CORStatfile.hxx MSimone.hxx
210simone.o: /usr/include/stdio.h /usr/include/sys/seek.h /usr/include/va_list.h
211simone.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
212simone.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
213simone.o: /usr/include/sys/rt_limits.h /usr/include/string.h
214simone.o: /usr/include/strings.h /usr/include/unistd.h
215simone.o: /usr/include/sys/access.h /usr/include/fcntl.h
216simone.o: /usr/include/sys/fcntl.h /usr/include/sys/mode.h
Note: See TracBrowser for help on using the repository browser.