blob: 8866f91c4024248ebe8e8d8fde2180e45e315e94 (
plain)
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
|
# Copyright (C) 1997 Robert de Bath <robert@mayday.cix.co.uk>
# This file is part of the Linux-8086 Development environment and is
# distributed under the GNU General Public License.
TARGETS=all bcc unproto copt as86 ld86 \
install install-all install-lib install-lib2 install-other \
clean tests alt-libs library config other
$(TARGETS): make.fil
PATH="`pwd`/bin:$$PATH" $(MAKE) -f make.fil TOPDIR=`pwd` $@
$(TARGETS): phony
phony:
realclean:
[ ! -f make.fil ] || $(MAKE) -f make.fil TOPDIR=`pwd` $@
rm -f make.fil ifdef
make.fil: ifdef makefile.in
./ifdef -MU makefile.in >tmp.mak
mv -f tmp.mak make.fil
ifdef: ifdef.o
$(CC) -o ifdef ifdef.o
Uninstall: phony
@echo 'Are you really sure... have you checked this... ^C to interrupt'
@read line
rm -rf /usr/bcc
rm -f /usr/bin/bcc /usr/bin/as86_encap /usr/bin/dis88
rm -f /lib/elksemu
rm -f /usr/lib/liberror.txt
rm -f /usr/man/man1/elks.1* /usr/man/man1/elksemu.1*
rm -f /usr/man/man1/dis88.1* /usr/man/man1/bcc.1*
rm -f /usr/man/man1/as86.1* /usr/man/man1/ld86.1*
rm -f /usr/man/man1/dis88.1*
distribution:
@rm -f /tmp/linux-86 || true
@[ ! -f Copy_dist ] || sh Copy_dist
mkdir -p /tmp/Dist
[ -d /tmp/linux-86 ] || ln -s `pwd` /tmp/linux-86
cd /tmp ;\
$(MAKE) -C linux-86 realclean || exit 1 ;\
$(MAKE) -C linux-86/libc Libc_version ;\
VER=`cat linux-86/Libc_version` ;\
tar cf Dist/Dev86src-$$VER.tar linux-86/* ;\
ln -s linux-86/as as86 ;\
cp -p linux-86/man/as86.1 as86/as86.1 ;\
tar cf Dist/as86-$$VER.tar `find as86/* -prune -type f` ;\
rm as86/as86.1 as86 ;\
ln -s linux-86/libc libc-$$VER ;\
tar cf Dist/libc-8086-$$VER.tar libc-$$VER/* ;\
rm libc-$$VER ;\
$(MAKE) -C /tmp/linux-86 install \
ARFLAGS=q DIST=/tmp/linux-86-dist || exit 1 ;\
tar cf /tmp/Dist/Dev86bin-$$VER.tar -C /tmp/linux-86-dist . ;\
rm -f /tmp/Dist/Dev86clb-$$VER.zip Bcc ;\
ln -s /tmp/linux-86 Bcc ;\
zip -9rpk /tmp/Dist/Dev86clb-$$VER.zip \
Bcc/lib/crt0.o Bcc/lib/libc.a Bcc/lib/libbsd.a \
Bcc/lib/libdos.a Bcc/lib/libc_f.a Bcc/lib/libc_s.a \
Bcc/lib/i386/crt0.o Bcc/lib/i386/libc.a ;\
rm Bcc
gzip -v9f /tmp/Dist/*.tar
@rm /tmp/linux-86 || true
|