[go: up one dir, main page]

Menu

[a6a1d5]: / Makefile  Maximize  Restore  History

Download this file

308 lines (264 with data), 7.7 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
# -*- makefile -*-
# Makefile for mkmf.
# Makefile for Unix and GNU/Linux with gcc/g++ compiler
# Edit here:
CC=gcc
CPP=g++
# Hints:
# if you use egcs-2.90.* version of GCC please add option -fno-exceptions
# to reduce code size and increase performance
# remove -DSLIST for really old systems without SGI's STL implementations
###############################################################################
# Debug version
#CFLAGS = -c -Wall -O0 -g -DDUMP_EDGES -DDEBUG -DDUMP_MONITOR
#CFLAGS = -c -Wall -O0 -g -DDUMP_EDGES -DDUMP_BYTE_CODES -DPRINT_PC -DDUMP_STACK -DDUMP_MONITOR -DDEBUG
# DSLIST DHASH_TABLE removed because it wouldn't compile otherwise on gcc 3.x
# Optimized version
CFLAGS = -c -Wall -O2 -g
# -DSLIST removed because it wouldn't compile under gcc 3.x
# add -DHASH_TABLE for extra speed (may sometimes produce inconsistent results)
# Optimized version with switched off asserts
#CFLAGS = -c -Wall -O2 -g -DSLIST -DNDEBUG
# link zlib the compression/decompression library. used for decompressing jar files
LFLAGS=-g -lz
# Directory to place executables
INSTALL_DIR=/usr/local/bin
# Version number
# VERSION=`grep VERSION jlint.hh | sed 's/.*N //'`
VERSION=3.0
# Files that go into distro
DISTFILES=`ls jlint-$(VERSION)/{antic.c,BUGS,Makefile,*.msg,*.hh,*.cc,*.d,README,TODO,CHANGELOG,COPYING,manual.texi,manual.html,manual.pdf,jlint.sh,mkmf.pl}`
TESTDISTFILES=`ls jlint-$(VERSION)/{antic.c,BUGS,Makefile,*.msg,*.hh,*.cc,*.d,README,TODO,CHANGELOG,COPYING,manual.texi,manual.html,manual.pdf,jlint_3.0.tex,jlint.sh,mkmf.pl,runtest.sh,showdiff.sh,showerror.sh,testall.sh,README.tests,tests.tar.bz2}`
# Makefile rules
all: antic jlint
antic.o: antic.c
$(CC) $(CFLAGS) antic.c
antic: antic.o
$(CC) $(LFLAGS) -o antic antic.o
clean:
rm -f *.o *.exe core *~ *.his *.class jlint antic manual.{html,pdf,aux,cp,fn,ky,log,pg,toc,tp,vr} jlint_3.0.{aux,dvi,log,toc}
if [ -d ./tests/log ]; then rm -f ./tests/log/*~ ./tests/log/*.{err,errfiles,log}; rm -f ./tests/log/test.{diff,err}; fi
if [ -d ./tests ]; then rm -f ./tests/*~ tests.tar.bz2; fi
doc: manual.texi
texi2html -monolithic manual.texi; texi2pdf manual.texi
dist: doc tarbz targz zip
chmod 644 ../jlint-*.{tar.bz2,tar.gz,zip}
tarbz:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; tar -chv --bzip2 -f jlint-$(VERSION).tar.bz2 $(DISTFILES)
targz:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; tar -chvzf jlint-$(VERSION).tar.gz $(DISTFILES)
zip:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; rm -f jlint-$(VERSION).zip; zip -v jlint-$(VERSION).zip $(DISTFILES) `find jlint-$(VERSION)/jlintwin32 | grep -v CVS`
test-dist: doc test-files-tar test-tarbz test-targz zip
chmod 644 ../jlint-*.{tar.bz2,tar.gz,zip}
test-files-tar:
tar -chv --bzip2 -f tests.tar.bz2 tests/
test-tarbz:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; tar -chv --bzip2 -f jlint-$(VERSION).tar.bz2 $(TESTDISTFILES)
test-targz:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; tar -chvzf jlint-$(VERSION).tar.gz $(TESTDISTFILES)
test-zip:
if [ $(VERSION) != `grep VERSION jlint.hh | sed 's/.*N //'` ]; then echo "Check version numbers!"; exit 1; fi
if [ ! -e ../jlint-$(VERSION) ]; then ln -s $(PWD) ../jlint-$(VERSION); fi
cd ..; rm -f jlint-$(VERSION).zip; zip -v jlint-$(VERSION).zip $(TESTDISTFILES) `find jlint-$(VERSION)/jlintwin32 | grep -v CVS`
install:
cp jlint antic jlint.sh $(INSTALL_DIR)
chmod 755 $(INSTALL_DIR)/antic
chmod 755 $(INSTALL_DIR)/jlint
chmod 755 $(INSTALL_DIR)/jlint.sh
# --> automatically generated dependencies follow; do not remove this line.
jlint: \
access_desc.o \
callee_desc.o \
class_desc.o \
graph.o \
jlint.o \
local_context.o \
locks.o \
message_node.o \
method_desc.o
$(CPP) $(LFLAGS) -o jlint access_desc.o callee_desc.o class_desc.o graph.o jlint.o local_context.o locks.o message_node.o method_desc.o
access_desc.o: access_desc.cc \
access_desc.hh \
class_desc.hh \
functions.hh \
types.hh \
locks.hh \
utf_string.hh \
field_desc.hh \
graph.hh \
method_desc.hh \
overridden_method.hh \
jlint.d \
jlint.msg \
message_node.hh \
component_desc.hh \
inlines.hh \
var_desc.hh \
constant.hh \
callee_desc.hh \
local_context.hh \
string_pool.hh
$(CPP) $(CFLAGS) access_desc.cc
callee_desc.o: callee_desc.cc \
callee_desc.hh \
class_desc.hh \
functions.hh \
types.hh \
locks.hh \
utf_string.hh \
field_desc.hh \
graph.hh \
method_desc.hh \
overridden_method.hh \
jlint.d \
jlint.msg \
message_node.hh \
component_desc.hh \
inlines.hh \
var_desc.hh \
constant.hh \
local_context.hh \
access_desc.hh \
string_pool.hh
$(CPP) $(CFLAGS) callee_desc.cc
class_desc.o: class_desc.cc \
class_desc.hh \
types.hh \
locks.hh \
utf_string.hh \
field_desc.hh \
graph.hh \
method_desc.hh \
overridden_method.hh \
jlint.d \
jlint.msg \
functions.hh \
message_node.hh \
component_desc.hh \
inlines.hh \
var_desc.hh \
constant.hh \
callee_desc.hh \
local_context.hh \
access_desc.hh \
string_pool.hh
$(CPP) $(CFLAGS) class_desc.cc
graph.o: graph.cc \
graph.hh \
types.hh \
method_desc.hh \
jlint.d \
jlint.msg \
inlines.hh \
component_desc.hh \
var_desc.hh \
constant.hh \
class_desc.hh \
callee_desc.hh \
field_desc.hh \
local_context.hh \
functions.hh \
access_desc.hh \
string_pool.hh \
locks.hh \
utf_string.hh \
message_node.hh \
overridden_method.hh
$(CPP) $(CFLAGS) graph.cc
jlint.o: jlint.cc \
jlint.hh \
jlint.msg \
types.hh \
message_node.hh \
utf_string.hh \
method_desc.hh \
field_desc.hh \
class_desc.hh \
constant.hh \
callee_desc.hh \
access_desc.hh \
graph.hh \
component_desc.hh \
var_desc.hh \
local_context.hh \
overridden_method.hh \
string_pool.hh \
jlint.d \
functions.hh \
inlines.hh \
locks.hh
$(CPP) $(CFLAGS) jlint.cc
local_context.o: local_context.cc \
local_context.hh \
types.hh \
var_desc.hh \
method_desc.hh \
jlint.d \
jlint.msg \
utf_string.hh \
functions.hh \
message_node.hh \
inlines.hh \
component_desc.hh \
constant.hh \
class_desc.hh \
callee_desc.hh \
field_desc.hh \
access_desc.hh \
string_pool.hh \
locks.hh \
graph.hh \
overridden_method.hh
$(CPP) $(CFLAGS) local_context.cc
locks.o: locks.cc \
locks.hh \
types.hh \
field_desc.hh \
jlint.d \
jlint.msg \
component_desc.hh \
utf_string.hh \
functions.hh \
message_node.hh
$(CPP) $(CFLAGS) locks.cc
message_node.o: message_node.cc \
message_node.hh \
functions.hh \
types.hh \
jlint.d \
jlint.msg
$(CPP) $(CFLAGS) message_node.cc
method_desc.o: method_desc.cc \
method_desc.hh \
types.hh \
inlines.hh \
component_desc.hh \
var_desc.hh \
constant.hh \
class_desc.hh \
callee_desc.hh \
field_desc.hh \
local_context.hh \
functions.hh \
access_desc.hh \
string_pool.hh \
locks.hh \
jlint.d \
jlint.msg \
utf_string.hh \
message_node.hh \
graph.hh \
overridden_method.hh
$(CPP) $(CFLAGS) method_desc.cc
# --> end of automatically generated dependencies; do not remove this line.