diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-07-20 12:16:17 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:39:55 +0200 |
commit | 9d97bc3cb3aecd3416fb7c4be3ca2f436665b696 (patch) | |
tree | b1e5b67ef9e065efb6a4c9977ecfac8dedbad39b /Makefile | |
parent | e63c244cb22bf48ca1d2695784a072269d19ea96 (diff) | |
download | dev86-9d97bc3cb3aecd3416fb7c4be3ca2f436665b696.tar.gz |
Import Dev86src-0.12.4.tar.gzv0.12.4
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 34 |
1 files changed, 24 insertions, 10 deletions
@@ -2,9 +2,15 @@ # This file is part of the Linux-8086 Development environment and is # distributed under the GNU General Public License. -TARGETS=bcc unproto copt as86 ld86 \ +TARGETS=clean bcc unproto copt as86 ld86 \ install install-all install-lib install-lib2 install-other \ - clean tests alt-libs library config other + install-ln install-man \ + tests alt-libs library config other + +PREFIX= /usr/bcc +BINDIR= /usr/bin +LIBDIR= $(PREFIX)/lib/bcc +CFLAGS= -O # Some makes take the last of a list as the default ... all: make.fil @@ -17,15 +23,23 @@ $(TARGETS): phony phony: realclean: - [ ! -f make.fil ] || $(MAKE) -f make.fil TOPDIR=`pwd` $@ - rm -f make.fil ifdef ifdef.o + -[ ! -f make.fil ] || $(MAKE) -f make.fil TOPDIR=`pwd` $@ + -rm -f make.fil ifdef ifdef.o make.fil: ifdef makefile.in ./ifdef -MU makefile.in >tmp.mak - mv -f tmp.mak make.fil + sed -e "s:%PREFIX%:$(PREFIX):" \ + -e "s:%BINDIR%:$(BINDIR):" \ + -e "s:%LIBDIR%:$(LIBDIR):" \ + -e "s:%CC%:$(CC):" \ + -e "s:%CFLAGS%:$(CFLAGS):" \ + -e "s:%LDFLAGS%:$(LDFLAGS):" \ + < tmp.mak > make.tmp + mv -f make.tmp make.fil + @rm -f tmp.mak ifdef: ifdef.o - $(CC) -o ifdef ifdef.o + $(CC) $(LDFLAGS) -o ifdef ifdef.o ifdef.o: ifdef.c $(CC) $(CFLAGS) $(IFDEFFLAGS) -c ifdef.c @@ -34,14 +48,13 @@ 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 /usr/bin/as86 /usr/bin/ld86 + rm -f $(BINDIR)/bcc $(BINDIR)/as86_encap $(BINDIR)/dis86 + rm -f $(BINDIR)/as86 $(BINDIR)/ld86 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/dis86.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 @@ -62,6 +75,7 @@ distribution: 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 ;\ |