summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1997-05-09 19:36:29 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:39:48 +0200
commite63c244cb22bf48ca1d2695784a072269d19ea96 (patch)
tree45b9018259f43db629b27395783cf48e55a85eee /Makefile
parent4c36e9a0c125ccfff37aa440dab2cf58c4152fff (diff)
downloaddev86-e63c244cb22bf48ca1d2695784a072269d19ea96.tar.gz
Import Dev86src-0.12.0.tar.gzv0.12.0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 8866f91..c04c366 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,14 @@
# 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 \
+TARGETS=bcc unproto copt as86 ld86 \
install install-all install-lib install-lib2 install-other \
clean tests alt-libs library config other
+# Some makes take the last of a list as the default ...
+all: make.fil
+ PATH="`pwd`/bin:$$PATH" $(MAKE) -f make.fil TOPDIR=`pwd` $@
+
$(TARGETS): make.fil
PATH="`pwd`/bin:$$PATH" $(MAKE) -f make.fil TOPDIR=`pwd` $@
@@ -14,7 +18,7 @@ phony:
realclean:
[ ! -f make.fil ] || $(MAKE) -f make.fil TOPDIR=`pwd` $@
- rm -f make.fil ifdef
+ rm -f make.fil ifdef ifdef.o
make.fil: ifdef makefile.in
./ifdef -MU makefile.in >tmp.mak
@@ -23,11 +27,15 @@ make.fil: ifdef makefile.in
ifdef: ifdef.o
$(CC) -o ifdef ifdef.o
+ifdef.o: ifdef.c
+ $(CC) $(CFLAGS) $(IFDEFFLAGS) -c ifdef.c
+
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 /lib/elksemu
rm -f /usr/lib/liberror.txt
rm -f /usr/man/man1/elks.1* /usr/man/man1/elksemu.1*