| 1 | ##################################################################
|
|---|
| 2 | ##
|
|---|
| 3 | ## Starfield Generator Makefile
|
|---|
| 4 | ##
|
|---|
| 5 | ## $Id: Makefile.osf,v 1.1 2003-01-14 13:48:38 blanch Exp $
|
|---|
| 6 | ##
|
|---|
| 7 | ##################################################################
|
|---|
| 8 |
|
|---|
| 9 | # @T \newpage
|
|---|
| 10 |
|
|---|
| 11 | INCLUDE = ../include-GENERAL
|
|---|
| 12 | INCLUDE_COR = ../include-CORSIKA
|
|---|
| 13 |
|
|---|
| 14 | CXX = cxx
|
|---|
| 15 |
|
|---|
| 16 | INCLUDES = -I${INCLUDE} \
|
|---|
| 17 | -I${INCLUDE_COR} \
|
|---|
| 18 | -I/usr/include/cxx
|
|---|
| 19 |
|
|---|
| 20 | WARNINGS = -Wall
|
|---|
| 21 |
|
|---|
| 22 | CXXFLAGS = ${WARNINGS} ${INCLUDES}
|
|---|
| 23 |
|
|---|
| 24 | LIBS = -L${ROOTSYS}/lib -L/usr/local/lib -L/usr/lib -lm
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 | #------------------------------------------------------------------------------
|
|---|
| 28 |
|
|---|
| 29 | .SILENT:
|
|---|
| 30 |
|
|---|
| 31 | .SUFFIXES: .cxx .o
|
|---|
| 32 |
|
|---|
| 33 | SRCS = starfield.cxx\
|
|---|
| 34 | star.cxx\
|
|---|
| 35 | photon.cxx\
|
|---|
| 36 | convertcorsika.cxx\
|
|---|
| 37 | rand_un_gen.cxx\
|
|---|
| 38 | parameters.cxx\
|
|---|
| 39 | ${INCLUDE_COR}/COREventHeader.cxx\
|
|---|
| 40 | ${INCLUDE_COR}/CORParticle.cxx\
|
|---|
| 41 | ${INCLUDE_COR}/CORStatfile.cxx
|
|---|
| 42 |
|
|---|
| 43 | HEADERS = starfield.h\
|
|---|
| 44 | star.hxx\
|
|---|
| 45 | photon.hxx\
|
|---|
| 46 | convertcorsika.h\
|
|---|
| 47 | parameters.h\
|
|---|
| 48 | COREventHeader.hxx\
|
|---|
| 49 | CORParticle.hxx\
|
|---|
| 50 | CORStatfile.hxx\
|
|---|
| 51 | DllImport.h\
|
|---|
| 52 | RConfig.h\
|
|---|
| 53 | Rtypes.h\
|
|---|
| 54 | ranlib.h
|
|---|
| 55 |
|
|---|
| 56 | OBJS = starfield.o\
|
|---|
| 57 | star.o\
|
|---|
| 58 | photon.o\
|
|---|
| 59 | convertcorsika.o\
|
|---|
| 60 | rand_un_gen.o\
|
|---|
| 61 | parameters.o\
|
|---|
| 62 | ${INCLUDE_COR}/COREventHeader.o\
|
|---|
| 63 | ${INCLUDE_COR}/CORParticle.o\
|
|---|
| 64 | ${INCLUDE_COR}/CORStatfile.o
|
|---|
| 65 |
|
|---|
| 66 | ###########################################################
|
|---|
| 67 |
|
|---|
| 68 | all: starfield
|
|---|
| 69 |
|
|---|
| 70 | #If you type 'make depend' this will update the dependencies listed below
|
|---|
| 71 |
|
|---|
| 72 | depend:
|
|---|
| 73 | @makedepend $(SRCS) -fMakefile 2> /dev/null
|
|---|
| 74 |
|
|---|
| 75 | starfield: $(OBJS)
|
|---|
| 76 | @echo "Linking..." $(OBJS)
|
|---|
| 77 | $(CXX) $(CXXFLAGS) $(OBJS) $(LIBS) -o $@
|
|---|
| 78 | @echo "done."
|
|---|
| 79 |
|
|---|
| 80 | .cxx.o:
|
|---|
| 81 | @echo "Compiling " $<
|
|---|
| 82 | $(CXX) $(CXXFLAGS) -c $< -o $@
|
|---|
| 83 |
|
|---|
| 84 | lclean:
|
|---|
| 85 | @echo "Cleaning..."
|
|---|
| 86 | @rm -f *.o core
|
|---|
| 87 |
|
|---|
| 88 | clean:
|
|---|
| 89 | @echo "Cleaning..."
|
|---|
| 90 | @rm -f $(OBJS) core
|
|---|
| 91 |
|
|---|
| 92 | mrproper: clean
|
|---|
| 93 | @echo "Mr.Proper in action . . ."
|
|---|
| 94 | @rm -f $(PROGRAM)
|
|---|
| 95 |
|
|---|
| 96 | ctags:
|
|---|
| 97 | @echo "Creating CTAGS file . . ."
|
|---|
| 98 | @ctags -txw $(SRCS) $(HEADERS) > CTAGS
|
|---|
| 99 |
|
|---|
| 100 | etags:
|
|---|
| 101 | @echo "Creating TAGS file . . ."
|
|---|
| 102 | @/usr/local/bin/etags -C $(SRCS) $(HEADERS)
|
|---|
| 103 |
|
|---|
| 104 | listsrc:
|
|---|
| 105 | @ls -m $(SRCS) $(HEADERS) | sed 's/,//g'
|
|---|
| 106 |
|
|---|
| 107 | redo: clean all
|
|---|
| 108 |
|
|---|
| 109 | # @endcode
|
|---|
| 110 |
|
|---|
| 111 | # DO NOT DELETE THIS LINE -- make depend depends on it.
|
|---|
| 112 |
|
|---|
| 113 | starfield.o: starfield.h /usr/include/stdlib.h /usr/include/standards.h
|
|---|
| 114 | starfield.o: /usr/include/getopt.h /usr/include/sys/types.h
|
|---|
| 115 | starfield.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
|---|
| 116 | starfield.o: /usr/include/stdio.h /usr/include/sys/seek.h
|
|---|
| 117 | starfield.o: /usr/include/va_list.h /usr/include/sys/limits.h
|
|---|
| 118 | starfield.o: /usr/include/sys/machine/machlimits.h
|
|---|
| 119 | starfield.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
|---|
| 120 | starfield.o: /usr/include/sys/rt_limits.h /usr/include/string.h
|
|---|
| 121 | starfield.o: /usr/include/strings.h /usr/include/math.h /usr/include/dirent.h
|
|---|
| 122 | starfield.o: /usr/include/unistd.h /usr/include/sys/access.h convertcorsika.h
|
|---|
| 123 | starfield.o: photon.hxx star.hxx parameters.h
|
|---|
| 124 | star.o: star.hxx /usr/include/math.h /usr/include/standards.h
|
|---|
| 125 | star.o: /usr/include/stdlib.h /usr/include/getopt.h /usr/include/sys/types.h
|
|---|
| 126 | star.o: /usr/include/mach/machine/vm_types.h /usr/include/sys/select.h
|
|---|
| 127 | star.o: /usr/include/string.h /usr/include/strings.h /usr/include/stdio.h
|
|---|
| 128 | star.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
|---|
| 129 | star.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
|---|
| 130 | star.o: /usr/include/sys/syslimits.h /usr/include/sys/machine/machtime.h
|
|---|
| 131 | star.o: /usr/include/sys/rt_limits.h
|
|---|
| 132 | photon.o: photon.hxx /usr/include/math.h /usr/include/standards.h
|
|---|
| 133 | photon.o: /usr/include/stdlib.h /usr/include/getopt.h
|
|---|
| 134 | photon.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
|---|
| 135 | photon.o: /usr/include/sys/select.h
|
|---|
| 136 | convertcorsika.o: convertcorsika.h /usr/include/string.h
|
|---|
| 137 | convertcorsika.o: /usr/include/standards.h /usr/include/sys/types.h
|
|---|
| 138 | convertcorsika.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 139 | convertcorsika.o: /usr/include/sys/select.h /usr/include/strings.h photon.hxx
|
|---|
| 140 | convertcorsika.o: /usr/include/math.h /usr/include/stdlib.h
|
|---|
| 141 | convertcorsika.o: /usr/include/getopt.h
|
|---|
| 142 | parameters.o: parameters.h /usr/include/stdio.h /usr/include/standards.h
|
|---|
| 143 | parameters.o: /usr/include/sys/seek.h /usr/include/va_list.h
|
|---|
| 144 | parameters.o: /usr/include/sys/types.h /usr/include/mach/machine/vm_types.h
|
|---|
| 145 | parameters.o: /usr/include/sys/select.h /usr/include/getopt.h
|
|---|
| 146 | parameters.o: /usr/include/sys/limits.h /usr/include/sys/machine/machlimits.h
|
|---|
| 147 | parameters.o: /usr/include/sys/syslimits.h
|
|---|
| 148 | parameters.o: /usr/include/sys/machine/machtime.h
|
|---|
| 149 | parameters.o: /usr/include/sys/rt_limits.h
|
|---|
| 150 | ../include-CORSIKA/COREventHeader.o: ../include-CORSIKA/COREventHeader.hxx
|
|---|
| 151 | ../include-CORSIKA/COREventHeader.o: /usr/include/stdlib.h
|
|---|
| 152 | ../include-CORSIKA/COREventHeader.o: /usr/include/standards.h
|
|---|
| 153 | ../include-CORSIKA/COREventHeader.o: /usr/include/getopt.h
|
|---|
| 154 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/types.h
|
|---|
| 155 | ../include-CORSIKA/COREventHeader.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 156 | ../include-CORSIKA/COREventHeader.o: /usr/include/sys/select.h
|
|---|
| 157 | ../include-CORSIKA/COREventHeader.o: /usr/include/math.h
|
|---|
| 158 | ../include-CORSIKA/CORParticle.o: ../include-CORSIKA/CORParticle.hxx
|
|---|
| 159 | ../include-CORSIKA/CORParticle.o: /usr/include/stdlib.h
|
|---|
| 160 | ../include-CORSIKA/CORParticle.o: /usr/include/standards.h
|
|---|
| 161 | ../include-CORSIKA/CORParticle.o: /usr/include/getopt.h
|
|---|
| 162 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/types.h
|
|---|
| 163 | ../include-CORSIKA/CORParticle.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 164 | ../include-CORSIKA/CORParticle.o: /usr/include/sys/select.h
|
|---|
| 165 | ../include-CORSIKA/CORParticle.o: /usr/include/math.h
|
|---|
| 166 | ../include-CORSIKA/CORStatfile.o: ../include-CORSIKA/CORStatfile.hxx
|
|---|
| 167 | ../include-CORSIKA/CORStatfile.o: /usr/include/stdlib.h
|
|---|
| 168 | ../include-CORSIKA/CORStatfile.o: /usr/include/standards.h
|
|---|
| 169 | ../include-CORSIKA/CORStatfile.o: /usr/include/getopt.h
|
|---|
| 170 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/types.h
|
|---|
| 171 | ../include-CORSIKA/CORStatfile.o: /usr/include/mach/machine/vm_types.h
|
|---|
| 172 | ../include-CORSIKA/CORStatfile.o: /usr/include/sys/select.h
|
|---|
| 173 | ../include-CORSIKA/CORStatfile.o: /usr/include/math.h
|
|---|