source: trunk/MagicSoft/Simulation/Detector/Camera/Makefile@ 6316

Last change on this file since 6316 was 6303, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 4.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.29 $
22# $Author: moralejo $
23# $Date: 2005-02-09 10:13: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_MC} \
41 -I${INCLUDE_LONS} \
42 -I${INCLUDE_STAR} \
43 -I${INCLUDE_TRIGGER} \
44 -I${INCLUDE_FADC} \
45 -I${INCLUDE_ROOT} \
46 -I${INCLUDE_CPLUS} \
47 -I${INCLUDE_MARS_MBASE} \
48 -I${INCLUDE_MARS_MGEOM} \
49 -I${INCLUDE_MARS_MGUI} \
50 -I${INCLUDE_MARS_MC} \
51 -I${INCLUDE_MARS_MRAW} \
52 -I${INCLUDE_MARS_MCALIB}
53
54RANLIB = -L${RANLIBDIR} -lranlib
55
56# what is needed for ROOT is inside the config.mk... file
57
58
59# special flags
60
61osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
62linux_FORLIBS = -lm -ldl
63generic_FORLIBS = -lm
64
65FORLIBS = ${${SYSTEM}_FORLIBS}
66MARSLIBS = ../../../Mars/libmars.so
67
68# compilation and linking flags
69
70CXXFLAGS = -D__${SYSTEM}__ $(ROOTCFLAGS) ${INCLUDES} ${OPTIM} ${DEBUG}
71CFLAGS = ${CXXFLAGS}
72FFLAGS = ${CXXFLAGS}
73LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS} ${MARSLIBS}
74
75#------------------------------------------------------------------------------
76
77#.SILENT:
78
79.SUFFIXES: .c .cc .cxx .C .c++ .h .hxx .H .h++ .o .so .f
80
81SRCS = \
82 ${INCLUDE_MC}/MCEventHeader.cxx \
83 ${INCLUDE_MC}/MCEventHeader_2.cxx \
84 ${INCLUDE_MC}/MCCphoton.cxx \
85 ${INCLUDE_LONS}/MLons.cxx \
86 ${INCLUDE_STAR}/MStarLight.cxx \
87 ${INCLUDE_TRIGGER}/MTrigger.cxx \
88 ${INCLUDE_TRIGGER}/MGTriggerSignal.cxx \
89 ${INCLUDE_FADC}/MFadc.cxx \
90 ${INCLUDE_FADC}/MGFadcSignal.cxx \
91 creadparam.cxx \
92 camera.cxx
93
94HEADERS = \
95 MCEventHeader.hxx \
96 MCEventHeader_2.hxx \
97 MCCphoton.hxx \
98 MLons.hxx \
99 MStarLight.hxx \
100 MTRigger.hxx \
101 MGTriggerSignal.hxx \
102 MFadc.hxx \
103 MGFadcSignal.hxx \
104 lagrange.h \
105 atm.h \
106 creadparam.h \
107 camera.h
108
109OBJS = \
110 ${INCLUDE_MC}/MCEventHeader.o \
111 ${INCLUDE_MC}/MCEventHeader_2.o \
112 ${INCLUDE_MC}/MCCphoton.o \
113 ${INCLUDE_LONS}/MLons.o \
114 ${INCLUDE_STAR}/MStarLight.o \
115 ${INCLUDE_TRIGGER}/MTrigger.o \
116 ${INCLUDE_TRIGGER}/MGTriggerSignal.o \
117 ${INCLUDE_FADC}/MFadc.o \
118 ${INCLUDE_FADC}/MGFadcSignal.o \
119 creadparam.o \
120 camera.o
121
122############################################################
123
124all: $(PROGRAM)
125 @echo " Done. "
126 @echo " "
127
128$(PROGRAM): $(LIBRARIES) $(OBJS) $(PROGRAMS:=.o)
129 @echo " Linking $@ ..."
130 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
131
132$(CLEANERS): makefiles
133 @echo "Cleaning $(@:.clean=):"
134 (cd $(@:.clean=); make clean; cd ..;)
135
136depend:
137 @makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
138
139doc: camera-doc
140
141camera-doc:
142 @echo "Generating documentation for camera . . . "
143 $(DOCUM) -latex -o camera.tex \
144 camera.cxx camera.h \
145 creadparam.cxx creadparam.h \
146 moments.cxx moments.h
147 latex "\nonstopmode\input{camera.tex}" && \
148 makeindex camera && \
149 latex "\nonstopmode\input{camera.tex}" && \
150 latex "\nonstopmode\input{camera.tex}"
151 @echo "Files camera.tex and camera.dvi generated."
152
153.cxx.o:
154 @echo "Compiling " $<
155 $(CXX) $(CXXFLAGS) -c $< -o $@
156
157.cc.o:
158 @echo "Compiling " $<
159 $(CXX) $(CXXFLAGS) -c $< -o $@
160
161.c.o:
162 @echo "Compiling " $<
163 $(CC) $(CFLAGS) -c $< -o $@
164
165makefiles:
166 @cp Makefile.* ${INCLUDE_EVITA}
167
168lclean:
169 @echo "Cleanning..."
170 @rm -f *.o core
171
172clean: $(CLEANERS) rmcint rmobjs
173 @echo "Cleanning...done"
174
175mrproper: clean $(MRPROPERS)
176 @echo "Mr.Proper in action . . ."
177 @rm -f $(PROGRAM)
178
179listsrc:
180 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
181
182redo: clean all
183
184cflags:
185 @echo $(INCLUDES) $(CXXFLAGS)
186
187#
188# The cleaning facility
189#
190
191rmcint:
192 @echo " Removing cint-stuff..."
193 @rm -f *Cint.*
194
195rmobjs:
196 @echo " Removing object files..."
197 @rm -f *.o ../*/*.o
198
199rmcore:
200 @echo " Removing core files..."
201 @rm -f core*
202
203rmbin:
204 @echo " Removing binary files..."
205 @rm -f $(PROGRAM) lib/$(SOLIB) so_locations
206
207rmbak:
208 @echo " Removing backup files..."
209 @rm -f *~ kk.kk *.bak
210
211rmbakmac:
212 @echo " Removing backup files in macros"
213 @rm -f macros/*~
214
215rmhtml:
216 @echo " Removing htmldoc-tree"
217 @rm -rf htmldoc
218# @endcode
219
220# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.