diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-10-05 15:05:09 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:02 +0200 |
commit | 48798bf2eb93ec3b99720ac2e16093441156653d (patch) | |
tree | 35e03d95df5f2677f05e32d70abb6d0583aa47ba /Makefile | |
parent | 9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (diff) | |
download | dev86-48798bf2eb93ec3b99720ac2e16093441156653d.tar.gz |
Import Dev86src-0.13.0.tar.gzv0.13.0
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 31 insertions, 22 deletions
@@ -2,10 +2,12 @@ # This file is part of the Linux-8086 Development environment and is # distributed under the GNU General Public License. -TARGETS=clean bcc unproto copt as86 ld86 \ - install install-all install-lib install-lib2 install-other \ - install-ln install-man \ - tests alt-libs library config other +TARGETS= \ + clean bcc unproto copt as86 ld86 elksemu \ + install install-all install-bcc install-emu install-lib \ + install-lib2 install-ln install-man install-other \ + all-libs alt-libs library lib-386 lib-bsd lib-dos lib-fast lib-stand \ + config other tests dis88 doselks bootblocks ld86r PREFIX= /usr/bcc BINDIR= /usr/bin @@ -22,6 +24,9 @@ $(TARGETS): make.fil $(TARGETS): phony phony: +ld: ld86 +as: as86 + realclean: -[ ! -f make.fil ] || $(MAKE) -f make.fil TOPDIR=`pwd` $@ -rm -f make.fil ifdef ifdef.o @@ -45,6 +50,8 @@ ifdef.o: ifdef.c $(CC) $(CFLAGS) $(IFDEFFLAGS) -c ifdef.c Uninstall: phony + @# CHECK FROM HERE + @make -n Uninstall @echo 'Are you really sure... have you checked this... ^C to interrupt' @read line rm -rf /usr/bcc @@ -55,34 +62,36 @@ Uninstall: phony rm -f /usr/man/man1/elks.1* /usr/man/man1/elksemu.1* rm -f /usr/man/man1/dis86.1* /usr/man/man1/bcc.1* rm -f /usr/man/man1/as86.1* /usr/man/man1/ld86.1* + @# TO HERE 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 ;\ + cd /tmp &&\ + $(MAKE) -C linux-86 realclean &&\ + $(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 &&\ + cp -p linux-86/COPYING as86/COPYING &&\ + 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 ;\ - $(MAKE) -C /tmp/linux-86 other ;\ - 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 ;\ + ARFLAGS=q DIST=/tmp/linux-86-dist ELKSSRC=/dev/null &&\ + $(MAKE) -C /tmp/linux-86 other &&\ + 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 ;\ + Bcc/lib/i386/crt0.o Bcc/lib/i386/libc.a &&\ rm Bcc gzip -v9f /tmp/Dist/*.tar |