| 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.5 $
|
|---|
| 22 | # $Author: harald $
|
|---|
| 23 | # $Date: 2000-09-21 11:47:33 $
|
|---|
| 24 | #
|
|---|
| 25 | ##################################################################
|
|---|
| 26 | # @maintitle
|
|---|
| 27 |
|
|---|
| 28 | # @code
|
|---|
| 29 |
|
|---|
| 30 | INCLUDEMK = config.mk.${OSTYPE}
|
|---|
| 31 | include ${INCLUDEMK}
|
|---|
| 32 |
|
|---|
| 33 | # @endcode
|
|---|
| 34 |
|
|---|
| 35 | # @code
|
|---|
| 36 |
|
|---|
| 37 | # common flags
|
|---|
| 38 | INCLUDES = -I${INCLUDE} \
|
|---|
| 39 | -I${INCLUDE_COR} \
|
|---|
| 40 | -I${INCLUDE_MC} \
|
|---|
| 41 | -I${INCLUDE_EVITA} \
|
|---|
| 42 | -I${INCLUDE_TRIGGER} \
|
|---|
| 43 | -I${INCLUDE_FADC} \
|
|---|
| 44 | -I${INCLUDE_REFL} \
|
|---|
| 45 | -I${INCLUDE_ROOT} \
|
|---|
| 46 | -I${INCLUDE_CPLUS}
|
|---|
| 47 |
|
|---|
| 48 | RANLIB = -L${RANLIBDIR} -lranlib
|
|---|
| 49 |
|
|---|
| 50 | # what is needed for ROOT is inside the config.mk... file
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | # special flags
|
|---|
| 54 |
|
|---|
| 55 | osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
|
|---|
| 56 | #linux_FORLIBS = -lf2c -lm /usr/lib/libc.a
|
|---|
| 57 | linux_FORLIBS = -lm -ldl
|
|---|
| 58 | #linux_FORLIBS = -lm -ldl -rdynamic
|
|---|
| 59 | generic_FORLIBS = -lm
|
|---|
| 60 |
|
|---|
| 61 | FORLIBS = ${${SYSTEM}_FORLIBS}
|
|---|
| 62 |
|
|---|
| 63 | # compilation and linking flags
|
|---|
| 64 |
|
|---|
| 65 | CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
|
|---|
| 66 | CFLAGS = ${CXXFLAGS}
|
|---|
| 67 | FFLAGS = ${CXXFLAGS}
|
|---|
| 68 | LIBS = ${RANLIB} ${ROOTLIBS} ${ROOTGLIBS} ${GLIBS}
|
|---|
| 69 |
|
|---|
| 70 | #------------------------------------------------------------------------------
|
|---|
| 71 |
|
|---|
| 72 | #.SILENT:
|
|---|
| 73 |
|
|---|
| 74 | .SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f
|
|---|
| 75 |
|
|---|
| 76 | SRCS = \
|
|---|
| 77 | ${INCLUDE_MC}/MCEventHeader.cxx \
|
|---|
| 78 | ${INCLUDE_MC}/MCCphoton.cxx \
|
|---|
| 79 | ${INCLUDE_TRIGGER}/MTrigger.cxx \
|
|---|
| 80 | ${INCLUDE_TRIGGER}/MGTriggerSignal.cxx \
|
|---|
| 81 | ${INCLUDE_FADC}/MFadc.cxx \
|
|---|
| 82 | ${INCLUDE_FADC}/MGFadcSignal.cxx \
|
|---|
| 83 | ${INCLUDE_EVITA}/MRawPixel.cxx \
|
|---|
| 84 | ${INCLUDE_EVITA}/MRawEvt.cxx \
|
|---|
| 85 | ${INCLUDE_EVITA}/MMcEvt.cxx \
|
|---|
| 86 | ${INCLUDE_EVITA}/MMcTrig.cxx \
|
|---|
| 87 | MCamCint.cxx \
|
|---|
| 88 | creadparam.cxx \
|
|---|
| 89 | camera.cxx
|
|---|
| 90 |
|
|---|
| 91 | HEADERS = \
|
|---|
| 92 | MCEventHeader.hxx \
|
|---|
| 93 | MCCphoton.hxx \
|
|---|
| 94 | MTRigger.hxx \
|
|---|
| 95 | MGTriggerSignal.hxx \
|
|---|
| 96 | MFadc.hxx \
|
|---|
| 97 | MGFadcSignal.hxx \
|
|---|
| 98 | MRawPixel.h \
|
|---|
| 99 | MRawEvt.h \
|
|---|
| 100 | MMcEvt.h \
|
|---|
| 101 | MMcTrig.hxx \
|
|---|
| 102 | lagrange.h \
|
|---|
| 103 | atm.h \
|
|---|
| 104 | creadparam.h \
|
|---|
| 105 | camera.h
|
|---|
| 106 |
|
|---|
| 107 | OBJS = \
|
|---|
| 108 | ${INCLUDE_MC}/MCEventHeader.o \
|
|---|
| 109 | ${INCLUDE_MC}/MCCphoton.o \
|
|---|
| 110 | ${INCLUDE_TRIGGER}/MTrigger.o \
|
|---|
| 111 | ${INCLUDE_TRIGGER}/MGTriggerSignal.o \
|
|---|
| 112 | ${INCLUDE_FADC}/MFadc.o \
|
|---|
| 113 | ${INCLUDE_FADC}/MGFadcSignal.o \
|
|---|
| 114 | ${INCLUDE_EVITA}/MRawPixel.o \
|
|---|
| 115 | ${INCLUDE_EVITA}/MRawEvt.o \
|
|---|
| 116 | ${INCLUDE_EVITA}/MMcEvt.o \
|
|---|
| 117 | ${INCLUDE_EVITA}/MMcTrig.o \
|
|---|
| 118 | MCamCint.o \
|
|---|
| 119 | creadparam.o \
|
|---|
| 120 | camera.o
|
|---|
| 121 |
|
|---|
| 122 | ############################################################
|
|---|
| 123 |
|
|---|
| 124 | all: ${PROGRAM}
|
|---|
| 125 |
|
|---|
| 126 | depend:
|
|---|
| 127 | @makedepend $(SRCS) $(INCLUDES) -fMakefile 2> kk.kk ; cat kk.kk
|
|---|
| 128 |
|
|---|
| 129 | doc: camera-doc
|
|---|
| 130 |
|
|---|
| 131 | camera-doc:
|
|---|
| 132 | @echo "Generating documentation for camera . . . "
|
|---|
| 133 | $(DOCUM) -latex -o camera.tex \
|
|---|
| 134 | camera.cxx camera.h \
|
|---|
| 135 | creadparam.cxx creadparam.h \
|
|---|
| 136 | moments.cxx moments.h
|
|---|
| 137 | latex "\nonstopmode\input{camera.tex}" && \
|
|---|
| 138 | makeindex camera && \
|
|---|
| 139 | latex "\nonstopmode\input{camera.tex}" && \
|
|---|
| 140 | latex "\nonstopmode\input{camera.tex}"
|
|---|
| 141 | @echo "Files camera.tex and camera.dvi generated."
|
|---|
| 142 |
|
|---|
| 143 | ${PROGRAM}: $(OBJS)
|
|---|
| 144 | @echo "Linking..."
|
|---|
| 145 | echo `ls -m $(OBJS)|sed 's/,/ +/g' `" + libraries => " $@
|
|---|
| 146 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
|---|
| 147 | @echo "done."
|
|---|
| 148 |
|
|---|
| 149 |
|
|---|
| 150 | MCamCint.cxx: ${INCLUDE_EVITA}/MRawPixel.h \
|
|---|
| 151 | ${INCLUDE_EVITA}/MRawEvt.h \
|
|---|
| 152 | ${INCLUDE_EVITA}/MMcEvt.h \
|
|---|
| 153 | ${INCLUDE_EVITA}/MMcTrig.hxx \
|
|---|
| 154 | ${INCLUDE_EVITA}/Mdefine.h
|
|---|
| 155 |
|
|---|
| 156 | @echo
|
|---|
| 157 | @echo "Generating dictionary ..."
|
|---|
| 158 | @echo
|
|---|
| 159 |
|
|---|
| 160 | @$(ROOTSYS)/bin/rootcint -f \
|
|---|
| 161 | MCamCint.cxx -c \
|
|---|
| 162 | ${INCLUDE_EVITA}/MRawPixel.h \
|
|---|
| 163 | ${INCLUDE_EVITA}/MRawEvt.h \
|
|---|
| 164 | ${INCLUDE_EVITA}/MMcEvt.h \
|
|---|
| 165 | ${INCLUDE_EVITA}/MMcTrig.hxx \
|
|---|
| 166 | ${INCLUDE_EVITA}/Mdefine.h \
|
|---|
| 167 | ${INCLUDE_EVITA}/LinkDef.h
|
|---|
| 168 |
|
|---|
| 169 | @echo
|
|---|
| 170 | @echo "Dictionary done"
|
|---|
| 171 | @echo
|
|---|
| 172 |
|
|---|
| 173 | .cxx.o:
|
|---|
| 174 | @echo "Compiling " $<
|
|---|
| 175 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
|---|
| 176 |
|
|---|
| 177 | .c.o:
|
|---|
| 178 | @echo "Compiling " $<
|
|---|
| 179 | $(CC) $(CFLAGS) -c $< -o $@
|
|---|
| 180 |
|
|---|
| 181 | lclean:
|
|---|
| 182 | @echo "Cleanning..."
|
|---|
| 183 | @rm -f *.o core
|
|---|
| 184 |
|
|---|
| 185 | clean:
|
|---|
| 186 | @echo "Cleanning..."
|
|---|
| 187 | @rm -f $(OBJS) core
|
|---|
| 188 | @rm -f MCamCint.cxx MCamCint.h
|
|---|
| 189 |
|
|---|
| 190 | mrproper: clean
|
|---|
| 191 | @echo "Mr.Proper in action . . ."
|
|---|
| 192 | @rm -f $(PROGRAM)
|
|---|
| 193 |
|
|---|
| 194 | ctags:
|
|---|
| 195 | @echo "Creating CTAGS file . . ."
|
|---|
| 196 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
|---|
| 197 |
|
|---|
| 198 | etags:
|
|---|
| 199 | @echo "Creating TAGS file . . ."
|
|---|
| 200 | @etags -C $(SRCS) $(HEADERS)
|
|---|
| 201 |
|
|---|
| 202 | listsrc:
|
|---|
| 203 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
|---|
| 204 |
|
|---|
| 205 | redo: clean all
|
|---|
| 206 |
|
|---|
| 207 | cflags:
|
|---|
| 208 | @echo $(INCLUDES) $(CXXFLAGS)
|
|---|
| 209 |
|
|---|
| 210 | # @endcode
|
|---|
| 211 |
|
|---|
| 212 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
|---|
| 213 |
|
|---|
| 214 | creadparam.o: creadparam.h /usr/include/cxx/iostream.h
|
|---|
| 215 | creadparam.o: /usr/include/cxx/iostream.hxx /usr/include/cxx/compnent.hxx
|
|---|
| 216 | creadparam.o: /usr/include/cxx/iostream_impl.hxx /usr/include/cxx/cxxl.hxx
|
|---|
| 217 | creadparam.o: /usr/include/cxx/cxxl_share.hxx /usr/include/cxx/messages.hxx
|
|---|
| 218 | creadparam.o: /usr/include/stddef.h /usr/include/standards.h
|
|---|
| 219 | creadparam.o: /usr/include/stdio.h /usr/include/sys/seek.h
|
|---|
| 220 | creadparam.o: /usr/include/va_list.h /usr/include/sys/types.h
|
|---|
| 221 | creadparam.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
|---|
| 222 | creadparam.o: /usr/include/getopt.h /usr/include/sys/limits.h
|
|---|
| 223 | creadparam.o: /usr/include/sys/machine/machlimits.h
|
|---|
| 224 | creadparam.o: /usr/include/sys/syslimits.h
|
|---|
| 225 | creadparam.o: /usr/include/sys/machine/machtime.h
|
|---|
| 226 | creadparam.o: /usr/include/sys/rt_limits.h /usr/include/limits.h
|
|---|
| 227 | creadparam.o: /usr/include/memory.h /usr/include/string.h
|
|---|
| 228 | creadparam.o: /usr/include/strings.h /usr/include/cxx/fstream.h
|
|---|
| 229 | creadparam.o: /usr/include/cxx/fstream.hxx /usr/include/cxx/fstream_impl.hxx
|
|---|
| 230 | creadparam.o: /usr/include/stdlib.h /usr/include/math.h /usr/include/float.h
|
|---|
| 231 | creadparam.o: /usr/include/fp_class.h camera-v.h
|
|---|
| 232 | camera.o: /CERN/root/include/TROOT.h /CERN/root/include/TApplication.h
|
|---|
| 233 | camera.o: /CERN/root/include/TFile.h /CERN/root/include/TTree.h
|
|---|
| 234 | camera.o: /CERN/root/include/TBranch.h /CERN/root/include/TCanvas.h camera.h
|
|---|
| 235 | camera.o: /usr/include/cxx/iostream.h /usr/include/cxx/iostream.hxx
|
|---|
| 236 | camera.o: /usr/include/cxx/compnent.hxx /usr/include/cxx/iostream_impl.hxx
|
|---|
| 237 | camera.o: /usr/include/cxx/cxxl.hxx /usr/include/cxx/cxxl_share.hxx
|
|---|
| 238 | camera.o: /usr/include/cxx/messages.hxx /usr/include/stddef.h
|
|---|
| 239 | camera.o: /usr/include/standards.h /usr/include/stdio.h
|
|---|
| 240 | camera.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
|---|
| 241 | camera.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
|---|
| 242 | camera.o: /usr/include/sys/select.h /usr/include/getopt.h
|
|---|
| 243 | camera.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
|---|
| 244 | camera.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
|---|
| 245 | camera.o: /usr/include/sys/rt_limits.h /usr/include/limits.h
|
|---|
| 246 | camera.o: /usr/include/memory.h /usr/include/string.h /usr/include/strings.h
|
|---|
| 247 | camera.o: /usr/include/cxx/fstream.h /usr/include/cxx/fstream.hxx
|
|---|
| 248 | camera.o: /usr/include/cxx/fstream_impl.hxx /usr/include/stdlib.h
|
|---|
| 249 | camera.o: /usr/include/stdarg.h /usr/include/math.h /usr/include/dirent.h
|
|---|
| 250 | camera.o: /usr/include/unistd.h /usr/include/sys/access.h
|
|---|
| 251 | camera.o: /usr/include/libgen.h camera-v.h creadparam.h /usr/include/float.h
|
|---|
| 252 | camera.o: /usr/include/fp_class.h moments.h /usr/include/ranlib.h
|
|---|
| 253 | camera.o: /usr/include/ar.h
|
|---|