| 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.3 $
|
|---|
| 22 | # $Author: harald $
|
|---|
| 23 | # $Date: 2000-07-12 10:19:10 $
|
|---|
| 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_ROOT} \
|
|---|
| 41 | -I${INCLUDE_SIMO} \
|
|---|
| 42 | -I/usr/include -I/usr/include/g++
|
|---|
| 43 |
|
|---|
| 44 | RANLIB = -L${RANLIBDIR} -lranlib
|
|---|
| 45 |
|
|---|
| 46 | # what is needed for ROOT is declared in config.mk file
|
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 | # special flags
|
|---|
| 50 |
|
|---|
| 51 | osf_FORLIBS = -lUfor -lfor -lutil -lots -lm
|
|---|
| 52 | linux_FORLIBS = -lm
|
|---|
| 53 | generic_FORLIBS = -lm
|
|---|
| 54 |
|
|---|
| 55 | FORLIBS = ${${SYSTEM}_FORLIBS}
|
|---|
| 56 |
|
|---|
| 57 | # compilation and linking flags
|
|---|
| 58 |
|
|---|
| 59 | CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG}
|
|---|
| 60 | CFLAGS = ${CXXFLAGS}
|
|---|
| 61 | FFLAGS = ${CXXFLAGS}
|
|---|
| 62 | LIBS = ${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 |
|
|---|
| 71 | SRCS = \
|
|---|
| 72 | ${INCLUDE_COR}/COREventHeader.cxx \
|
|---|
| 73 | ${INCLUDE_COR}/CORParticle.cxx \
|
|---|
| 74 | ${INCLUDE_COR}/CORStatfile.cxx \
|
|---|
| 75 | MSimone.cxx \
|
|---|
| 76 | simone.cxx
|
|---|
| 77 |
|
|---|
| 78 | HEADERS = \
|
|---|
| 79 | COREventHeader.hxx \
|
|---|
| 80 | CORParticle.hxx \
|
|---|
| 81 | CORStatfile.hxx \
|
|---|
| 82 | MSimone.hxx \
|
|---|
| 83 | simone.h
|
|---|
| 84 |
|
|---|
| 85 | OBJS = \
|
|---|
| 86 | ${INCLUDE_COR}/COREventHeader.o \
|
|---|
| 87 | ${INCLUDE_COR}/CORParticle.o \
|
|---|
| 88 | ${INCLUDE_COR}/CORStatfile.o \
|
|---|
| 89 | MSimone.o \
|
|---|
| 90 | simone.o
|
|---|
| 91 |
|
|---|
| 92 | PROGRAM=simone
|
|---|
| 93 |
|
|---|
| 94 | ############################################################
|
|---|
| 95 |
|
|---|
| 96 | all: ${PROGRAM}
|
|---|
| 97 |
|
|---|
| 98 | depend:
|
|---|
| 99 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
|---|
| 100 |
|
|---|
| 101 | doc: reflector-doc
|
|---|
| 102 |
|
|---|
| 103 | reflector-doc:
|
|---|
| 104 | @echo "Generating documentation for camera . . . "
|
|---|
| 105 | $(DOCUM) -latex -o reflector.tex \
|
|---|
| 106 | reflector.cxx reflector.h \
|
|---|
| 107 | readparam.cxx readparam.h \
|
|---|
| 108 | atm.cxx atm.h
|
|---|
| 109 | latex "\nonstopmode\input{reflector.tex}" && \
|
|---|
| 110 | makeindex reflector && \
|
|---|
| 111 | latex "\nonstopmode\input{reflector.tex}" && \
|
|---|
| 112 | latex "\nonstopmode\input{reflector.tex}"
|
|---|
| 113 | @echo "Files reflector.tex and reflector.dvi generated."
|
|---|
| 114 |
|
|---|
| 115 | rate:
|
|---|
| 116 | @echo "Rating documentation inside code . . . "
|
|---|
| 117 | $(RATE) \
|
|---|
| 118 | reflector.cxx reflector.h \
|
|---|
| 119 | readparam.cxx readparam.h \
|
|---|
| 120 | atm.cxx atm.h
|
|---|
| 121 |
|
|---|
| 122 | ${PROGRAM}: $(OBJS)
|
|---|
| 123 | @echo "Linking..." $@
|
|---|
| 124 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
|---|
| 125 | @echo "done."
|
|---|
| 126 |
|
|---|
| 127 | .cxx.o:
|
|---|
| 128 | @echo "Compiling " $<
|
|---|
| 129 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
|---|
| 130 |
|
|---|
| 131 | .c.o:
|
|---|
| 132 | @echo "Compiling " $<
|
|---|
| 133 | $(CC) $(CFLAGS) -c $< -o $@
|
|---|
| 134 |
|
|---|
| 135 | .f.o:
|
|---|
| 136 | @echo "Compiling " $<
|
|---|
| 137 | $(F77) $(FFLAGS) -c $< -o $@
|
|---|
| 138 |
|
|---|
| 139 | lclean:
|
|---|
| 140 | @echo "Cleanning..."
|
|---|
| 141 | @rm -f *.o core
|
|---|
| 142 |
|
|---|
| 143 | clean:
|
|---|
| 144 | @echo "Cleanning..."
|
|---|
| 145 | @rm -f $(OBJS) core
|
|---|
| 146 |
|
|---|
| 147 | mrproper: clean
|
|---|
| 148 | @echo "Mr.Proper in action . . ."
|
|---|
| 149 | @rm -f $(PROGRAM)
|
|---|
| 150 |
|
|---|
| 151 | ctags:
|
|---|
| 152 | @echo "Creating CTAGS file . . ."
|
|---|
| 153 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
|---|
| 154 |
|
|---|
| 155 | etags:
|
|---|
| 156 | @echo "Creating TAGS file . . ."
|
|---|
| 157 | @etags -C $(SRCS) $(HEADERS)
|
|---|
| 158 |
|
|---|
| 159 | listsrc:
|
|---|
| 160 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
|---|
| 161 |
|
|---|
| 162 | redo: clean all
|
|---|
| 163 |
|
|---|
| 164 | # @endcode
|
|---|
| 165 |
|
|---|
| 166 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
|---|
| 167 |
|
|---|
| 168 | ../../Detector/include-CORSIKA/COREventHeader.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
|---|
| 169 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
|
|---|
| 170 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/standards.h
|
|---|
| 171 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
|
|---|
| 172 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
|
|---|
| 173 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 174 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
|
|---|
| 175 | ../../Detector/include-CORSIKA/COREventHeader.o: /usr/include/math.h
|
|---|
| 176 | ../../Detector/include-CORSIKA/CORParticle.o: ../../Detector/include-CORSIKA/CORParticle.hxx
|
|---|
| 177 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
|
|---|
| 178 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/standards.h
|
|---|
| 179 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/getopt.h
|
|---|
| 180 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
|
|---|
| 181 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 182 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
|
|---|
| 183 | ../../Detector/include-CORSIKA/CORParticle.o: /usr/include/math.h
|
|---|
| 184 | ../../Detector/include-CORSIKA/CORStatfile.o: ../../Detector/include-CORSIKA/CORStatfile.hxx
|
|---|
| 185 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
|
|---|
| 186 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/standards.h
|
|---|
| 187 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
|
|---|
| 188 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
|
|---|
| 189 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 190 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
|
|---|
| 191 | ../../Detector/include-CORSIKA/CORStatfile.o: /usr/include/math.h
|
|---|
| 192 | MSimone.o: MSimone.hxx /usr/include/stdlib.h /usr/include/standards.h
|
|---|
| 193 | MSimone.o: /usr/include/getopt.h /usr/include/sys/types.h
|
|---|
| 194 | MSimone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
|---|
| 195 | MSimone.o: /usr/include/stdio.h /usr/include/sys/seek.h
|
|---|
| 196 | MSimone.o: /usr/include/va_list.h /usr/include/sys/limits.h
|
|---|
| 197 | MSimone.o: /usr/include/sys/machine/machlimits.h /usr/include/sys/syslimits.h
|
|---|
| 198 | MSimone.o: /usr/include/sys/machine/machtime.h /usr/include/sys/rt_limits.h
|
|---|
| 199 | MSimone.o: /usr/include/string.h /usr/include/strings.h /usr/include/unistd.h
|
|---|
| 200 | MSimone.o: /usr/include/sys/access.h /usr/include/fcntl.h
|
|---|
| 201 | MSimone.o: /usr/include/sys/fcntl.h /usr/include/sys/mode.h
|
|---|
| 202 | MSimone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
|---|
| 203 | MSimone.o: /usr/include/math.h
|
|---|
| 204 | simone.o: /usr/include/stdlib.h /usr/include/standards.h
|
|---|
| 205 | simone.o: /usr/include/getopt.h /usr/include/sys/types.h
|
|---|
| 206 | simone.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
|---|
| 207 | simone.o: ../../Detector/include-CORSIKA/COREventHeader.hxx
|
|---|
| 208 | simone.o: /usr/include/math.h ../../Detector/include-CORSIKA/CORParticle.hxx
|
|---|
| 209 | simone.o: ../../Detector/include-CORSIKA/CORStatfile.hxx MSimone.hxx
|
|---|
| 210 | simone.o: /usr/include/stdio.h /usr/include/sys/seek.h /usr/include/va_list.h
|
|---|
| 211 | simone.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
|---|
| 212 | simone.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
|---|
| 213 | simone.o: /usr/include/sys/rt_limits.h /usr/include/string.h
|
|---|
| 214 | simone.o: /usr/include/strings.h /usr/include/unistd.h
|
|---|
| 215 | simone.o: /usr/include/sys/access.h /usr/include/fcntl.h
|
|---|
| 216 | simone.o: /usr/include/sys/fcntl.h /usr/include/sys/mode.h
|
|---|