summaryrefslogtreecommitdiff
path: root/bin86/Makefile
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1998-09-22 17:44:32 +0200
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:40:35 +0200
commit2233d47f9d89c107b6c425626d6eb2669363b055 (patch)
tree429df42a8f6ed7174868af04edd364cd778a4d54 /bin86/Makefile
parentec5f28e3f1400b5dacb88eda2d9db472a20b4349 (diff)
downloaddev86-2233d47f9d89c107b6c425626d6eb2669363b055.tar.gz
Import Dev86src-0.14.5.tar.gzv0.14.5
Diffstat (limited to 'bin86/Makefile')
-rw-r--r--bin86/Makefile49
1 files changed, 49 insertions, 0 deletions
diff --git a/bin86/Makefile b/bin86/Makefile
new file mode 100644
index 0000000..5cd0ce8
--- /dev/null
+++ b/bin86/Makefile
@@ -0,0 +1,49 @@
+
+CFLAGS=-O2 -D_POSIX_SOURCE
+LDFLAGS=
+DIRS=ld as
+
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+LIBDIR=$(PREFIX)/lib
+MANDIR=$(PREFIX)/man/man1
+SUF=86
+
+INSTALL_OPT=-m 755 -s
+MAN_OPTS =-m 644
+
+MFLAGS= "LIBS=$(LIBS)" \
+ "CFLAGS=$(CFLAGS)" \
+ "LDFLAGS=$(LDFLAGS)" \
+ "BINDIR=$(BINDIR)" \
+ "LIBDIR=$(LIBDIR)" \
+ "CC=$(CC)"
+
+all:
+ for d in $(DIRS); do \
+ (cd $$d; $(MAKE) $(MFLAGS) $@;); \
+ done
+
+install: all
+ install $(INSTALL_OPTS) as/as86 $(BINDIR)/as$(SUF)
+ install $(INSTALL_OPTS) as/as86_encap $(BINDIR)/as$(SUF)_encap
+ install $(INSTALL_OPTS) ld/ld86 $(BINDIR)/ld$(SUF)
+ install $(INSTALL_OPTS) ld/objdump86 $(BINDIR)/objdump$(SUF)
+ install $(MAN_OPTS) man/*.1 $(MANDIR)
+ ln -s objdump$(SUF) $(BINDIR)/nm$(SUF)
+ ln -s objdump$(SUF) $(BINDIR)/size$(SUF)
+
+depend clean clobber:
+ for d in $(DIRS); do \
+ (cd $$d; $(MAKE) $(MFLAGS) $@;); \
+ done
+
+ungrab:
+ rm -rf as ld man
+grab:
+ cp -a ../as ../ld .
+ rm -f ld/ar.h ; cp -p ../libc/include/ar.h ld/ar.h
+ mkdir man
+ cp -p ../man/ld86.1 man
+ cp -p ../man/as86.1 man
+