################################################################## # # makefile # # @file makefile # @title Simulation of the camera and trigger logic # @author J C Gonz\'alez # @email gonzalez@mppmu.mpg.de # @date Fri Mar 12 11:51:11 MET 1999 # #_______________________________________________________________ # # Created: Fri Mar 12 11:51:11 MET 1999 # Author: Jose Carlos Gonzalez # Purpose: Makefile for the compilation of the camera program # Notes: # #--------------------------------------------------------------- # # $RCSfile: Makefile,v $ # $Revision: 1.1.1.1 $ # $Author: harald $ # $Date: 2001-04-09 08:59:01 $ # ################################################################## # @maintitle # @code INCLUDEMK = config.mk.${OSTYPE} include ${INCLUDEMK} # @endcode # @code # common flags INCLUDES = -I/usr/include -I/usr/include/cxx #CERNLIBDIR = ${CERNDIR}/pro/lib/ #CERNLIB = -L${CERNLIBDIR} -lgraflib -lgrafX11 -lpacklib -lkernlib -lpawlib RANLIB = -L${RANLIBDIR} -lranlib # special flags osf_FORLIBS = -L/usr/lib -lUfor -lFutil -lfor -lutil -lots -lm linux_FORLIBS = -lm generic_FORLIBS = -lm FORLIBS = ${${SYSTEM}_FORLIBS} # compilation and linking flags CXXFLAGS = -D__${SYSTEM}__ ${INCLUDES} ${OPTIM} ${DEBUG} #CFLAGS = ${CXXFLAGS} CFLAGS = -std1 -warnprotos -msg_enable level6 -msg_disable returnchecks FFLAGS = ${CXXFLAGS} LIBS = ${RANLIB} ${FORLIBS} LIBS = ${CERNLIB} ${RANLIB} ${FORLIBS} #------------------------------------------------------------------------------ #.SILENT: .SUFFIXES: .c .cxx .C .c++ .h .hxx .H .h++ .o .so .f SRCS = \ attenu.f \ diag.c \ init.c \ parms.c \ geometry.c \ atm.c \ ph2cph.c \ header.c \ reflector.c HEADERS = \ atm.h \ diag.h \ geometry.h \ header.h \ init.h \ lagrange.h \ parms.h \ version.h OBJS = \ attenu.o \ diag.o \ init.o \ parms.o \ geometry.o \ atm.o \ ph2cph.o \ header.o \ reflector.o PROGRAM=reflector ############################################################ all: ${PROGRAM} depend: @makedepend $(SRCS) -fMakefile 2> /dev/null doc: reflector-doc reflector-doc: @echo "Generating documentation for camera . . . " $(DOCUM) -latex -o reflector.tex \ reflector.cxx reflector.h \ readparam.cxx readparam.h \ atm.cxx atm.h latex "\nonstopmode\input{reflector.tex}" && \ makeindex reflector && \ latex "\nonstopmode\input{reflector.tex}" && \ latex "\nonstopmode\input{reflector.tex}" @echo "Files reflector.tex and reflector.dvi generated." rate: @echo "Rating documentation inside code . . . " $(RATE) \ reflector.cxx reflector.h \ readparam.cxx readparam.h \ atm.cxx atm.h ${PROGRAM}: $(OBJS) @echo "Linking..." $@ $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@ @echo "done." .cxx.o: @echo "Compiling " $< $(CXX) $(CXXFLAGS) -c $< -o $@ .c.o: @echo "Compiling " $< $(CC) $(CFLAGS) -c $< -o $@ .f.o: @echo "Compiling " $< $(F77) $(FFLAGS) -c $< -o $@ lclean: @echo "Cleanning..." @rm -f *.o core clean: @echo "Cleanning..." @rm -f $(OBJS) core mrproper: clean @echo "Mr.Proper in action . . ." @rm -f $(PROGRAM) ctags: @echo "Creating CTAGS file . . ." @ctags -txw $(SRCS) $(HEADERS) > CTAGS etags: @echo "Creating TAGS file . . ." @etags -C $(SRCS) $(HEADERS) listsrc: @ls -m $(SRCS) $(HEADERS) | sed 's/,//g' redo: clean all # @endcode # DO NOT DELETE THIS LINE -- make depend depends on it. ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h ../include-CORSIKA/COREventHeader.o: /usr/include/standards.h ../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h ../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h ../include-CORSIKA/COREventHeader.o: /usr/include/math.h ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h ../include-CORSIKA/CORParticle.o: /usr/include/standards.h ../include-CORSIKA/CORParticle.o: /usr/include/getopt.h ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h ../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h ../include-CORSIKA/CORParticle.o: /usr/include/math.h ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h ../include-CORSIKA/CORStatfile.o: /usr/include/standards.h ../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h ../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h ../include-CORSIKA/CORStatfile.o: /usr/include/math.h ../include-MC/MCEventHeader.o: ../include-MC/MCEventHeader.hxx ../include-MC/MCEventHeader.o: /usr/include/stdlib.h /usr/include/standards.h ../include-MC/MCEventHeader.o: /usr/include/getopt.h /usr/include/sys/types.h ../include-MC/MCEventHeader.o: /usr/include/mach/machine/vm_types.h ../include-MC/MCEventHeader.o: /usr/include/sys/select.h /usr/include/math.h ../include-MC/MCEventHeader.o: ../include-CORSIKA/COREventHeader.hxx ../include-MC/MCCphoton.o: ../include-MC/MCCphoton.hxx /usr/include/stdlib.h ../include-MC/MCCphoton.o: /usr/include/standards.h /usr/include/getopt.h ../include-MC/MCCphoton.o: /usr/include/sys/types.h ../include-MC/MCCphoton.o: /usr/include/mach/machine/vm_types.h ../include-MC/MCCphoton.o: /usr/include/sys/select.h /usr/include/string.h ../include-MC/MCCphoton.o: /usr/include/strings.h /usr/include/math.h