source: trunk/MagicSoft/Simulation/Detector/StarResponse/Makefile@ 9472

Last change on this file since 9472 was 5396, checked in by moralejo, 20 years ago
*** empty log message ***
File size: 3.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.9 $
22# $Author: moralejo $
23# $Date: 2004-11-11 16:17:07 $
24#
25##################################################################
26# @maintitle
27
28# @code
29
30INCLUDEMK = config.mk.${OSTYPE}
31include ${INCLUDEMK}
32PROGRAM = starrespo
33
34# @endcode
35
36# @code
37
38# common flags
39INCLUDES = -I${INCLUDE} \
40 -I${INCLUDE_COR} \
41 -I${INCLUDE_MC} \
42 -I${INCLUDE_TRIGGER} \
43 -I${INCLUDE_FADC} \
44 -I${INCLUDE_ROOT} \
45 -I${INCLUDE_CPLUS} \
46 -I${INCLUDE_MARS_MBASE} \
47 -I${INCLUDE_MARS_MGEOM} \
48 -I${INCLUDE_MARS_MGUI} \
49 -I${INCLUDE_MARS_MC} \
50 -I${INCLUDE_MARS_MRAW}
51
52
53RANLIB = -L${RANLIBDIR} -lranlib
54
55# what is needed for ROOT is inside the config.mk... file
56
57
58# special flags
59
60osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
61linux_FORLIBS = -lm -ldl
62generic_FORLIBS = -lm
63
64MARSLIBS = ../../../Mars/libmars.so
65
66FORLIBS = ${${SYSTEM}_FORLIBS}
67
68# compilation and linking flags
69
70CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
71CFLAGS = ${CXXFLAGS}
72FFLAGS = ${CXXFLAGS}
73LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS} ${MARSLIBS}
74
75#
76# ----->>> Compile files related to MARS with Makefiles in their
77# directories.
78#
79
80#------------------------------------------------------------------------------
81
82#.SILENT:
83
84.SUFFIXES: .c .cc .cxx .C .c++ .h .hxx .H .h++ .o .so .f
85
86SRCS = \
87 ${INCLUDE_TRIGGER}/MTrigger.cxx \
88 ${INCLUDE_TRIGGER}/MGTriggerSignal.cxx \
89 ${INCLUDE_FADC}/MFadc.cxx \
90 ${INCLUDE_FADC}/MGFadcSignal.cxx \
91 MStarLight.cxx \
92 srreadparam.cxx \
93 starresponse.cxx
94
95HEADERS = \
96 MTRigger.hxx \
97 MGTRiggerSignal.hxx \
98 MFadc.hxx \
99 MGFadcSignal.hxx \
100 MStarLight.hxx \
101 srreadparam.h \
102 starresponse.hxx
103
104OBJS = \
105 ${INCLUDE_TRIGGER}/MTrigger.o \
106 ${INCLUDE_TRIGGER}/MGTriggerSignal.o \
107 ${INCLUDE_FADC}/MFadc.o \
108 ${INCLUDE_FADC}/MGFadcSignal.o \
109 MStarLight.o \
110 srreadparam.o \
111 starresponse.o
112
113############################################################
114
115all: $(PROGRAM)
116 @echo " Done. "
117 @echo " "
118
119$(PROGRAM): $(OBJS)
120 @echo " Linking $@ ..."
121 $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
122
123depend:
124 @makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
125
126.cxx.o:
127 @echo "Compiling " $<
128 $(CXX) $(CXXFLAGS) -c $< -o $@
129
130.cc.o:
131 @echo "Compiling " $<
132 $(CXX) $(CXXFLAGS) -c $< -o $@
133
134.c.o:
135 @echo "Compiling " $<
136 $(CC) $(CFLAGS) -c $< -o $@
137
138lclean:
139 @echo "Cleanning..."
140 @rm -f *.o core
141
142clean: rmcint rmobjs
143 @echo "Cleanning...done"
144
145mrproper: clean
146 @echo "Mr.Proper in action . . ."
147 @rm -f $(PROGRAM)
148
149listsrc:
150 @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
151
152redo: clean all
153
154cflags:
155 @echo $(INCLUDES) $(CXXFLAGS)
156
157#
158# The cleaning facility
159#
160
161rmcint:
162 @echo " Removing cint-stuff..."
163 @rm -f *Cint.*
164
165rmlib:
166 @echo " Removing libraries..."
167 @echo " "
168 @rm -f lib/lib*.a lib*.a
169
170rmobjs:
171 @echo " Removing object files..."
172 @rm -f *.o ../*/*.o
173
174rmcore:
175 @echo " Removing core files..."
176 @rm -f core*
177
178rmbin:
179 @echo " Removing binary files..."
180 @rm -f $(PROGRAM) lib/$(SOLIB) so_locations
181
182rmbak:
183 @echo " Removing backup files..."
184 @rm -f *~ kk.kk *.bak
185
186# @endcode
187
188# DO NOT DELETE THIS LINE -- make depend depends on it.
Note: See TracBrowser for help on using the repository browser.