| 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-07-25 13:48:09 $ | 
|---|
| 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_REFL} \ | 
|---|
| 42 | -I/usr/include  -I/usr/include/cxx | 
|---|
| 43 |  | 
|---|
| 44 | #CERNLIBDIR = ${CERNDIR}/pro/lib/ | 
|---|
| 45 | #CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib -lkernlib -lpawlib | 
|---|
| 46 |  | 
|---|
| 47 | RANLIB  = -L${RANLIBDIR} -lranlib | 
|---|
| 48 |  | 
|---|
| 49 | # special flags | 
|---|
| 50 |  | 
|---|
| 51 | osf_FORLIBS = -L/usr/lib -lUfor -lFutil -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} ${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 | ${INCLUDE_MC}/MCEventHeader.cxx \ | 
|---|
| 76 | ${INCLUDE_MC}/MCCphoton.cxx \ | 
|---|
| 77 | atm.cxx \ | 
|---|
| 78 | attenu.f \ | 
|---|
| 79 | readparam.cxx \ | 
|---|
| 80 | reflector.cxx | 
|---|
| 81 |  | 
|---|
| 82 | HEADERS = \ | 
|---|
| 83 | COREventHeader.hxx \ | 
|---|
| 84 | CORParticle.hxx \ | 
|---|
| 85 | CORStatfile.hxx \ | 
|---|
| 86 | MCEventHeader.hxx \ | 
|---|
| 87 | MCCphoton.hxx \ | 
|---|
| 88 | lagrange.h \ | 
|---|
| 89 | atm.h \ | 
|---|
| 90 | readparam.h \ | 
|---|
| 91 | reflector.h | 
|---|
| 92 |  | 
|---|
| 93 | OBJS = \ | 
|---|
| 94 | ${INCLUDE_COR}/COREventHeader.o \ | 
|---|
| 95 | ${INCLUDE_COR}/CORParticle.o \ | 
|---|
| 96 | ${INCLUDE_COR}/CORStatfile.o \ | 
|---|
| 97 | ${INCLUDE_MC}/MCEventHeader.o \ | 
|---|
| 98 | ${INCLUDE_MC}/MCCphoton.o \ | 
|---|
| 99 | atm.o \ | 
|---|
| 100 | attenu.o \ | 
|---|
| 101 | readparam.o \ | 
|---|
| 102 | reflector.o | 
|---|
| 103 |  | 
|---|
| 104 | PROGRAM=reflector | 
|---|
| 105 |  | 
|---|
| 106 | ############################################################ | 
|---|
| 107 |  | 
|---|
| 108 | all: ${PROGRAM} | 
|---|
| 109 |  | 
|---|
| 110 | depend: | 
|---|
| 111 | @makedepend $(SRCS) -fMakefile 2> /dev/null | 
|---|
| 112 |  | 
|---|
| 113 | doc: reflector-doc | 
|---|
| 114 |  | 
|---|
| 115 | reflector-doc: | 
|---|
| 116 | @echo "Generating documentation for camera . . . " | 
|---|
| 117 | $(DOCUM) -latex -o reflector.tex \ | 
|---|
| 118 | reflector.cxx reflector.h \ | 
|---|
| 119 | readparam.cxx readparam.h \ | 
|---|
| 120 | atm.cxx atm.h | 
|---|
| 121 | latex "\nonstopmode\input{reflector.tex}" && \ | 
|---|
| 122 | makeindex reflector && \ | 
|---|
| 123 | latex "\nonstopmode\input{reflector.tex}" && \ | 
|---|
| 124 | latex "\nonstopmode\input{reflector.tex}" | 
|---|
| 125 | @echo "Files reflector.tex and reflector.dvi generated." | 
|---|
| 126 |  | 
|---|
| 127 | rate: | 
|---|
| 128 | @echo "Rating documentation inside code . . . " | 
|---|
| 129 | $(RATE) \ | 
|---|
| 130 | reflector.cxx reflector.h \ | 
|---|
| 131 | readparam.cxx readparam.h \ | 
|---|
| 132 | atm.cxx atm.h | 
|---|
| 133 |  | 
|---|
| 134 | ${PROGRAM}: $(OBJS) | 
|---|
| 135 | @echo "Linking..." $@ | 
|---|
| 136 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@ | 
|---|
| 137 | @echo "done." | 
|---|
| 138 |  | 
|---|
| 139 | .cxx.o: | 
|---|
| 140 | @echo "Compiling " $< | 
|---|
| 141 | $(CXX) $(CXXFLAGS) -c $< -o $@ | 
|---|
| 142 |  | 
|---|
| 143 | .c.o: | 
|---|
| 144 | @echo "Compiling " $< | 
|---|
| 145 | $(CC) $(CFLAGS) -c $< -o $@ | 
|---|
| 146 |  | 
|---|
| 147 | .f.o: | 
|---|
| 148 | @echo "Compiling " $< | 
|---|
| 149 | $(F77) $(FFLAGS) -c $< -o $@ | 
|---|
| 150 |  | 
|---|
| 151 | lclean: | 
|---|
| 152 | @echo "Cleanning..." | 
|---|
| 153 | @rm -f *.o core | 
|---|
| 154 |  | 
|---|
| 155 | clean: | 
|---|
| 156 | @echo "Cleanning..." | 
|---|
| 157 | @rm -f $(OBJS) core | 
|---|
| 158 |  | 
|---|
| 159 | mrproper: clean | 
|---|
| 160 | @echo "Mr.Proper in action . . ." | 
|---|
| 161 | @rm -f $(PROGRAM) | 
|---|
| 162 |  | 
|---|
| 163 | ctags: | 
|---|
| 164 | @echo "Creating CTAGS file . . ." | 
|---|
| 165 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS | 
|---|
| 166 |  | 
|---|
| 167 | etags: | 
|---|
| 168 | @echo "Creating TAGS file . . ." | 
|---|
| 169 | @etags -C $(SRCS) $(HEADERS) | 
|---|
| 170 |  | 
|---|
| 171 | listsrc: | 
|---|
| 172 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g' | 
|---|
| 173 |  | 
|---|
| 174 | redo: clean all | 
|---|
| 175 |  | 
|---|
| 176 | # @endcode | 
|---|
| 177 |  | 
|---|
| 178 | # DO NOT DELETE THIS LINE -- make depend depends on it. | 
|---|
| 179 |  | 
|---|
| 180 | ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx | 
|---|
| 181 | ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h | 
|---|
| 182 | ../include-CORSIKA/COREventHeader.o: /usr/include/standards.h | 
|---|
| 183 | ../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h | 
|---|
| 184 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h | 
|---|
| 185 | ../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h | 
|---|
| 186 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h | 
|---|
| 187 | ../include-CORSIKA/COREventHeader.o: /usr/include/math.h | 
|---|
| 188 | ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx | 
|---|
| 189 | ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h | 
|---|
| 190 | ../include-CORSIKA/CORParticle.o: /usr/include/standards.h | 
|---|
| 191 | ../include-CORSIKA/CORParticle.o: /usr/include/getopt.h | 
|---|
| 192 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h | 
|---|
| 193 | ../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h | 
|---|
| 194 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h | 
|---|
| 195 | ../include-CORSIKA/CORParticle.o: /usr/include/math.h | 
|---|
| 196 | ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx | 
|---|
| 197 | ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h | 
|---|
| 198 | ../include-CORSIKA/CORStatfile.o: /usr/include/standards.h | 
|---|
| 199 | ../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h | 
|---|
| 200 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h | 
|---|
| 201 | ../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h | 
|---|
| 202 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h | 
|---|
| 203 | ../include-CORSIKA/CORStatfile.o: /usr/include/math.h | 
|---|
| 204 | ../include-MC/MCEventHeader.o: ../include-MC/MCEventHeader.hxx | 
|---|
| 205 | ../include-MC/MCEventHeader.o: /usr/include/stdlib.h /usr/include/standards.h | 
|---|
| 206 | ../include-MC/MCEventHeader.o: /usr/include/getopt.h /usr/include/sys/types.h | 
|---|
| 207 | ../include-MC/MCEventHeader.o: /usr/include/mach/machine/vm_types.h | 
|---|
| 208 | ../include-MC/MCEventHeader.o: /usr/include/sys/select.h /usr/include/math.h | 
|---|
| 209 | ../include-MC/MCEventHeader.o: ../include-CORSIKA/COREventHeader.hxx | 
|---|
| 210 | ../include-MC/MCCphoton.o: ../include-MC/MCCphoton.hxx /usr/include/stdlib.h | 
|---|
| 211 | ../include-MC/MCCphoton.o: /usr/include/standards.h /usr/include/getopt.h | 
|---|
| 212 | ../include-MC/MCCphoton.o: /usr/include/sys/types.h | 
|---|
| 213 | ../include-MC/MCCphoton.o: /usr/include/mach/machine/vm_types.h | 
|---|
| 214 | ../include-MC/MCCphoton.o: /usr/include/sys/select.h /usr/include/string.h | 
|---|
| 215 | ../include-MC/MCCphoton.o: /usr/include/strings.h /usr/include/math.h | 
|---|
| 216 | atm.o: atm.h /usr/include/stdlib.h /usr/include/standards.h | 
|---|
| 217 | atm.o: /usr/include/getopt.h /usr/include/sys/types.h | 
|---|
| 218 | atm.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h | 
|---|
| 219 | atm.o: /usr/include/stdio.h /usr/include/sys/seek.h /usr/include/va_list.h | 
|---|
| 220 | atm.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h | 
|---|
| 221 | atm.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h | 
|---|
| 222 | atm.o: /usr/include/sys/rt_limits.h /usr/include/string.h | 
|---|
| 223 | atm.o: /usr/include/strings.h /usr/include/math.h reflector-v.h | 
|---|
| 224 | readparam.o: readparam.h /usr/include/stdlib.h /usr/include/standards.h | 
|---|
| 225 | readparam.o: /usr/include/getopt.h /usr/include/sys/types.h | 
|---|
| 226 | readparam.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h | 
|---|
| 227 | readparam.o: /usr/include/stdio.h /usr/include/sys/seek.h | 
|---|
| 228 | readparam.o: /usr/include/va_list.h /usr/include/sys/limits.h | 
|---|
| 229 | readparam.o: /usr/include/sys/machine/machlimits.h | 
|---|
| 230 | readparam.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h | 
|---|
| 231 | readparam.o: /usr/include/sys/rt_limits.h /usr/include/string.h | 
|---|
| 232 | readparam.o: /usr/include/strings.h /usr/include/math.h /usr/include/float.h | 
|---|
| 233 | readparam.o: /usr/include/fp_class.h /usr/include/unistd.h | 
|---|
| 234 | readparam.o: /usr/include/sys/access.h reflector-v.h atm.h | 
|---|
| 235 | reflector.o: reflector.h /usr/include/stdlib.h /usr/include/standards.h | 
|---|
| 236 | reflector.o: /usr/include/getopt.h /usr/include/sys/types.h | 
|---|
| 237 | reflector.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h | 
|---|
| 238 | reflector.o: /usr/include/stdio.h /usr/include/sys/seek.h | 
|---|
| 239 | reflector.o: /usr/include/va_list.h /usr/include/sys/limits.h | 
|---|
| 240 | reflector.o: /usr/include/sys/machine/machlimits.h | 
|---|
| 241 | reflector.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h | 
|---|
| 242 | reflector.o: /usr/include/sys/rt_limits.h /usr/include/string.h | 
|---|
| 243 | reflector.o: /usr/include/strings.h /usr/include/stdarg.h /usr/include/math.h | 
|---|
| 244 | reflector.o: /usr/include/dirent.h /usr/include/unistd.h | 
|---|
| 245 | reflector.o: /usr/include/sys/access.h reflector-v.h readparam.h | 
|---|
| 246 | reflector.o: /usr/include/float.h /usr/include/fp_class.h atm.h | 
|---|
| 247 | reflector.o: ../include-CORSIKA/COREventHeader.hxx | 
|---|
| 248 | reflector.o: ../include-CORSIKA/CORParticle.hxx | 
|---|
| 249 | reflector.o: ../include-CORSIKA/CORStatfile.hxx | 
|---|
| 250 | reflector.o: ../include-MC/MCEventHeader.hxx ../include-MC/MCCphoton.hxx | 
|---|
| 251 | reflector.o: /usr/include/ranlib.h /usr/include/ar.h | 
|---|