-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
396 lines (303 loc) · 9.61 KB
/
Makefile.in
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
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
# -*- Mode: Makefile -*-
# Copyright (c)1996, 1997, 1998 The Regents of the University of
# California (Regents). All Rights Reserved.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for educational, research, and not-for-profit purposes,
# without fee and without a signed licensing agreement, is hereby
# granted, provided that the above copyright notice, this paragraph and
# the following two paragraphs appear in all copies, modifications, and
# distributions.
#
# Contact The Office of Technology Licensing, UC Berkeley, 2150 Shattuck
# Avenue, Suite 510, Berkeley, CA 94720-1620, (510) 643-7201, for
# commercial licensing opportunities.
#
# IN NO EVENT SHALL REGENTS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
# SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
# ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
# REGENTS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# REGENTS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE. THE SOFTWARE AND ACCOMPANYING DOCUMENTATION, IF
# ANY, PROVIDED HEREUNDER IS PROVIDED "AS IS". REGENTS HAS NO OBLIGATION
# TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
# MODIFICATIONS.
# -*- Mode: Makefile -*-
# Makefile.in -- Main Makefile (in 'configure' format) for SHIC
# project.
#
# Autoconf/Configure tag.
# @configure_input@
#==============================================================================
# Standard (GNU form) variable setup
# General Variables
SHELL = /bin/sh
# Installation Variables
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
includedir = @includedir@
libdir = @libdir@
libexecdir = @libexecdir@
mandir = @mandir@
# Build Variables
top_srcdir = @top_srcdir@
srcdir = @srcdir@
# Special directives and variables
# .PHONY works for GNU Make, but not for other Make's. Therefore we
# also use the dummy target FORCE (see "Application's Targets"section)
# to enforce dependencies.
# .PHONY: include compiler run-time debugger graphic.env ttyonly communications
# .PHONY: include.i compiler.i run-time.i debugger.i
# .PHONY: graphic.env.i ttyonly.i communications.i
# .PHONY: FORCE
# Extra Variables
MAT2SCALARDIR = extra/mat2scalar
SHIFTDOCDIR = extra/shiftdoc
SHIFTTREEDIR = extra/shifttree
# Variables for creating the source distribution
SRC_DISTRIBUTION_FILES = Makefile.in \
shift.mk.in \
cshift.in \
configure \
configure.in \
config.sub \
config.guess \
install-sh \
shiftDefaults.in \
README \
INSTALL \
RUNNING \
COPYRIGHT \
COMPILER.README \
RELEASE-NOTES \
NEWS \
ChangeLog
SRC_DISTRIBUTION_DIRS = compiler \
include \
run-time \
libDebug \
libTcl \
socket \
applications \
examples \
doc \
reference \
$(MAT2SCALARDIR)
# $(SHIFTDOCDIR) \
# $(SHIFTTREEDIR)
SHIFT_TARGETS = include \
compiler \
run-time \
debugger \
@CONFIGURATION_TARGET@ \
mat2scalar
# shiftdoc \
# shifttree
INSTALL_TARGETS = all \
include.i \
compiler.i \
run-time.i \
debugger.i \
@CONFIGURATION_TARGET@.i \
mat2scalar.i
# shiftdoc.i \
# shifttree.i
#==============================================================================
# Standard Targets
all: $(SHIFT_TARGETS)
@echo "SHIFT Building: compiler and debugger(s) have been built."
@echo ''
install: $(INSTALL_TARGETS)
chmod a+x cshift
cp cshift $(bindir)
@echo SHIFT Building: executables and libraries installed.
uninstall:
cd compiler; $(MAKE) uninstall
cd run-time; $(MAKE) uninstall
cd libDebug; $(MAKE) uninstall
cd include; $(MAKE) uninstall
cd socket; $(MAKE) uninstall
cd libTcl; $(MAKE) uninstall
if test -d $(MAT2SCALARDIR) && test -f $(MAT2SCALARDIR)/Makefile; \
then \
cd $(MAT2SCALARDIR) ; $(MAKE) uninstall; \
fi
if test -d $(SHIFTDOCDIR) && test -f $(SHIFTDOCDIR)/Makefile; \
then \
cd $(SHIFTDOCDIR) ; $(MAKE) uninstall; \
fi
if test -d $(SHIFTTREEDIR) && test -f $(SHIFTTREEDIR)/Makefile; \
then \
cd $(SHIFTTREEDIR) ; $(MAKE) uninstall; \
fi
rm -f $(bindir)/cshift
reinstall: clean install
@echo SHIFT Building: reinstallation complete
@echo ''
clean:
cd compiler; $(MAKE) clean
cd run-time; $(MAKE) clean
cd libDebug; $(MAKE) clean
cd include; $(MAKE) clean
cd socket; $(MAKE) clean
cd libTcl; $(MAKE) clean
if test -d $(MAT2SCALARDIR) && test -f $(MAT2SCALARDIR)/Makefile; \
then \
cd $(MAT2SCALARDIR) ; $(MAKE) clean; \
fi
if test -d $(SHIFTDOCDIR) && test -f $(SHIFTDOCDIR)/Makefile; \
then \
cd $(SHIFTDOCDIR) ; $(MAKE) clean; \
fi
if test -d $(SHIFTTREEDIR) && test -f $(SHIFTTREEDIR)/Makefile; \
then \
cd $(SHIFTTREEDIR) ; $(MAKE) clean; \
fi
-rm shic
distclean:
cd compiler; $(MAKE) distclean
cd run-time; $(MAKE) distclean
cd libDebug; $(MAKE) distclean
cd include; $(MAKE) distclean
cd socket; $(MAKE) distclean
cd libTcl; $(MAKE) distclean
cd reference; $(MAKE) distclean
if test -d $(MAT2SCALARDIR) && test -f $(MAT2SCALARDIR)/Makefile; \
then \
cd $(MAT2SCALARDIR); \
$(MAKE) clean; \
fi
if test -d $(SHIFTDOCDIR) && test -f $(SHIFTDOCDIR)/Makefile; \
then \
cd $(SHIFTDOCDIR); \
$(MAKE) clean; \
fi
if test -d $(SHIFTTREEDIR) && test -f $(SHIFTTREEDIR)/Makefile; \
then \
cd $(SHIFTTREEDIR); \
$(MAKE) clean; \
fi
-rm shic *.tar.gz *.tar *~ \#*
if test -d obsolete; then rm -rf obsolete; fi
if test -f config.cache; then rm config.cache; fi
if test -f config.log; then rm config.log; fi
if test -f config.status; then rm config.status; fi
# mostlyclean: # UNUSED
# maintainer-clean: # UNUSED
# TAGS: # UNUSED
# info: # UNUSED
# dvi: # UNUSED
# dist -- The 'dist' target assumes GMAKE. It should not cause problems
# since it should be really used only locally at PATH.
CWD = $(shell pwd)
CWDNAME = $(notdir $(CWD))
# The SHIFT version.
SV = $(shell admin/get-shift-version)
# dist -- Note that this is the only place where we actually make the
# reference manual automatically.
dist: distprologue reference.i distclean
@if test $(MAKE) != gmake; then \
echo "'gmake' is needed for the dist target" ; \
exit 1; \
fi
@echo "Preparing the tar file..."
if test $(CWDNAME) != shift; then \
if test -d ../shift; then \
echo "Directory shift already exists."; \
echo "Please rename it. Cannot make distribution without"; \
echo "risking to cancel important data."; \
exit 1; \
fi; \
cd ..; ln -s $(CWDNAME) shift; \
fi
cd ..; \
tar cvf SHIFTsrc-$(SV).tar \
$(SRC_DISTRIBUTION_FILES:%=shift/%) \
$(SRC_DISTRIBUTION_DIRS:%=shift/%)
gzip ../SHIFTsrc-$(SV).tar
@echo ''
@echo SHIFT Distribution: done.
@echo ''
distprologue:
@echo
@echo ======================================================
@echo Preparing SHIFT Distribution
@echo Many '(ignore)' messages may be printed out by $(MAKE).
@echo
# check: # UNUSED
# installcheck: # UNUSED
# installdirs: # UNUSED
#==============================================================================
# Special PATH targets
# These are useless to anybody outside California PATH
bindist: distclean
@if test -r admin/make-bin-dist ; then admin/make-bin-dist; fi
#==============================================================================
# Application Targets
FORCE:
compiler: FORCE
cd compiler; touch depend; $(MAKE) make-depend; $(MAKE) hasher; $(MAKE)
compiler.i:
cd compiler; $(MAKE) install
run-time: FORCE
cd run-time; touch depend; $(MAKE) make-depend; $(MAKE)
run-time.i:
cd run-time; $(MAKE) install
debugger: FORCE
cd libDebug; $(MAKE)
debugger.i: FORCE
cd libDebug; $(MAKE) install
include: FORCE
cd include; $(MAKE)
include.i: FORCE
cd include; $(MAKE) install
communications: FORCE
cd socket; touch depend; $(MAKE) make-depend; $(MAKE)
communications.i: FORCE
cd socket; $(MAKE) install
graphic.env: communications
@echo SHIFT Building: configuration with graphic debugger.
cd libTcl; $(MAKE)
graphic.env.i: communications.i
cd libTcl; $(MAKE) install
ttyonly: FORCE
@echo SHIFT Building: configuration with tty only debugger.
ttyonly.i: FORCE
reference: FORCE
cd reference; $(MAKE)
reference.i: FORCE
cd reference; $(MAKE) install
mat2scalar: FORCE
if test -d $(MAT2SCALARDIR) && test -f $(MAT2SCALARDIR)/Makefile; \
then \
cd $(MAT2SCALARDIR) ; touch depend; $(MAKE) make-depend; $(MAKE); \
fi
mat2scalar.i: FORCE
if test -d $(MAT2SCALARDIR) && test -f $(MAT2SCALARDIR)/Makefile; \
then \
cd $(MAT2SCALARDIR) ; $(MAKE) install; \
fi
shiftdoc: FORCE
if test -d $(SHIFTDOCDIR) && test -f $(SHIFTDOCDIR)/Makefile; \
then \
cd $(SHIFTDOCDIR) ; touch depend; $(MAKE) make-depend; $(MAKE); \
fi
shiftdoc.i: FORCE
if test -d $(SHIFTDOCDIR) && test -f $(SHIFTDOCDIR)/Makefile; \
then \
cd $(SHIFTDOCDIR) ; $(MAKE) install; \
fi
shifttree: FORCE
if test -d $(SHIFTTREEDIR) && test -f $(SHIFTTREEDIR)/Makefile; \
then \
cd $(SHIFTTREEDIR) ; touch depend; $(MAKE) make-depend; $(MAKE); \
fi
shifttree.i: FORCE
if test -d $(SHIFTTREEDIR) && test -f $(SHIFTTREEDIR)/Makefile; \
then \
cd $(SHIFTTREEDIR) ; $(MAKE) install; \
fi
# end of file -- Makefile --