source: trunk/MagicSoft/Simulation/Corsika/MaxiSingle/Makefile@ 10099

Last change on this file since 10099 was 790, checked in by domingo, 24 years ago
Version 1 of the MaxiSingle sources
File size: 7.5 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: domingo $
23# $Date: 2001-05-16 12:02:20 $
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}/CORRunHeader.cxx \
73 ${INCLUDE_COR}/CORRunEnd.cxx \
74 ${INCLUDE_COR}/COREventHeader.cxx \
75 ${INCLUDE_COR}/COREventEnd.cxx \
76 ${INCLUDE_COR}/CORParticle.cxx \
77 maxisingle.cxx
78
79HEADERS = \
80 ${INCLUDE_COR}/CORRunHeader.hxx \
81 ${INCLUDE_COR}/CORRunEnd.hxx \
82 ${INCLUDE_COR}/COREventHeader.hxx \
83 ${INCLUDE_COR}/COREventEnd.hxx \
84 ${INCLUDE_COR}/CORParticle.hxx \
85 maxisingle.hxx
86
87OBJS = \
88 ${INCLUDE_COR}/CORRunHeader.o \
89 ${INCLUDE_COR}/CORRunEnd.o \
90 ${INCLUDE_COR}/COREventHeader.o \
91 ${INCLUDE_COR}/COREventEnd.o \
92 ${INCLUDE_COR}/CORParticle.o \
93 maxisingle.o
94
95PROGRAM=maxisingle
96
97############################################################
98
99all: ${PROGRAM}
100
101depend:
102 @makedepend $(SRCS) -fMakefile 2> /dev/null
103
104doc: reflector-doc
105
106reflector-doc:
107 @echo "Generating documentation for camera . . . "
108 $(DOCUM) -latex -o reflector.tex \
109 reflector.cxx reflector.h \
110 readparam.cxx readparam.h \
111 atm.cxx atm.h
112 latex "\nonstopmode\input{reflector.tex}" && \
113 makeindex reflector && \
114 latex "\nonstopmode\input{reflector.tex}" && \
115 latex "\nonstopmode\input{reflector.tex}"
116 @echo "Files reflector.tex and reflector.dvi generated."
117
118rate:
119 @echo "Rating documentation inside code . . . "
120 $(RATE) \
121 reflector.cxx reflector.h \
122 readparam.cxx readparam.h \
123 atm.cxx atm.h
124
125${PROGRAM}: $(OBJS)
126 @echo "Linking..." $@
127 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
128 @echo "done."
129
130.cxx.o:
131 @echo "Compiling " $<
132 $(CXX) $(CXXFLAGS) -c $< -o $@
133
134.c.o:
135 @echo "Compiling " $<
136 $(CC) $(CFLAGS) -c $< -o $@
137
138.f.o:
139 @echo "Compiling " $<
140 $(F77) $(FFLAGS) -c $< -o $@
141
142lclean:
143 @echo "Cleanning..."
144 @rm -f *.o core
145
146clean:
147 @echo "Cleanning..."
148 @rm -f $(OBJS) core
149
150mrproper: clean
151 @echo "Mr.Proper in action . . ."
152 @rm -f $(PROGRAM)
153
154ctags:
155 @echo "Creating CTAGS file . . ."
156 @ctags -txw $(SRCS) $(HEADERS) > CTAGS
157
158etags:
159 @echo "Creating TAGS file . . ."
160 @etags -C $(SRCS) $(HEADERS)
161
162listsrc:
163 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
164
165redo: clean all
166
167# @endcode
168
169# DO NOT DELETE THIS LINE -- make depend depends on it.
170
171../../Detector/include-CORSIKA/CORRunHeader.o: ../../Detector/include-CORSIKA/CORRunHeader.hxx
172../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/stdlib.h
173../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/standards.h
174../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/getopt.h
175../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/sys/types.h
176../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/mach/machine/vm_types.h
177../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/sys/select.h
178../../Detector/include-CORSIKA/CORRunHeader.o: /usr/include/math.h
179../../Detector/include-CORSIKA/CORRunHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
180../../Detector/include-CORSIKA/CORRunEnd.o: ../../Detector/include-CORSIKA/CORRunEnd.hxx
181../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/stdlib.h
182../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/standards.h
183../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/getopt.h
184../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/sys/types.h
185../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/mach/machine/vm_types.h
186../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/sys/select.h
187../../Detector/include-CORSIKA/CORRunEnd.o: /usr/include/math.h
188../../Detector/include-CORSIKA/CORRunEnd.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
189../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
190../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
191../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/standards.h
192../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
193../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
194../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
195../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
196../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
197../../Detector/include-CORSIKA/COREventEnd.o: ../../Detector/include-CORSIKA/COREventEnd.hxx
198../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/stdlib.h
199../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/standards.h
200../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/getopt.h
201../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/sys/types.h
202../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/mach/machine/vm_types.h
203../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/sys/select.h
204../../Detector/include-CORSIKA/COREventEnd.o: /usr/include/math.h
205../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
206../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
207../../Detector/include-CORSIKA/CORParticle.o: /usr/include/standards.h
208../../Detector/include-CORSIKA/CORParticle.o: /usr/include/getopt.h
209../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
210../../Detector/include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
211../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
212../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
213maxisingle.o: /usr/include/stdlib.h /usr/include/standards.h
214maxisingle.o: /usr/include/getopt.h /usr/include/sys/types.h
215maxisingle.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
216maxisingle.o: /usr/include/stdio.h /usr/include/sys/seek.h
217maxisingle.o: /usr/include/va_list.h /usr/include/sys/limits.h
218maxisingle.o: /usr/include/sys/machine/machlimits.h
219maxisingle.o: /usr/include/sys/syslimits.h
220maxisingle.o: /usr/include/sys/machine/machtime.h
221maxisingle.o: /usr/include/sys/rt_limits.h
222maxisingle.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
223maxisingle.o: /usr/include/math.h
224maxisingle.o: ../../Detector/include-CORSIKA/COREventEnd.hxx
225maxisingle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
226maxisingle.o: ../../Detector/include-CORSIKA/CORRunHeader.hxx
227maxisingle.o: ../../Detector/include-CORSIKA/CORRunEnd.hxx
Note: See TracBrowser for help on using the repository browser.