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