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

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