summaryrefslogtreecommitdiff
path: root/ar/Makefile
diff options
context:
space:
mode:
authorRobert de Bath <rdebath@poboxes.com>1999-12-17 19:06:32 +0100
committerLubomir Rintel <lkundrak@v3.sk>2013-10-23 23:43:38 +0200
commit3401185106fb312c6a7bba3d9e90d44b6df0043b (patch)
tree63bace6fae9b547cc0c939c6803185cc3ad8aa0e /ar/Makefile
parent3d4957c86ff239b24b43933924ec72a3fd288518 (diff)
downloaddev86-3401185106fb312c6a7bba3d9e90d44b6df0043b.tar.gz
Import Dev86src-0.15.0.tar.gzv0.15.0
Diffstat (limited to 'ar/Makefile')
-rw-r--r--ar/Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/ar/Makefile b/ar/Makefile
new file mode 100644
index 0000000..f3b890d
--- /dev/null
+++ b/ar/Makefile
@@ -0,0 +1,37 @@
+# Copyright (c) 1999 Greg Haerr <greg@censoft.com>
+# This file is part of the Linux-8086 Development environment and is
+# distributed under the GNU General Public License.
+
+xCC=bcc -0
+LIBDIR =/usr/bin
+CFLAGS =-O
+LDFLAGS =
+DEFS =
+OBJS= ar.o
+
+all: ar86
+
+ar86: $(OBJS)
+ $(CC) $(LDFLAGS) $(OBJS) -o $@
+
+install: ar86
+ install -d $(LIBDIR)
+ install -m 755 ar86 $(LIBDIR)
+
+clean realclean clobber:
+ rm -f *.o ar86 ar.h rel_aout.h
+
+$(OBJS): ar.h rel_aout.h
+
+ar.h:
+ [ -f ar.h ] || \
+ { rm -f ar.h ; ln -s ../libc/include/ar.h . ; } || \
+ ln ../libc/include/ar.h .
+
+rel_aout.h:
+ [ -f rel_aout.h ] || \
+ { rm -f rel_aout.h ; ln -s ../ld/rel_aout.h . ; } || \
+ ln ../ld/rel_aout.h .
+
+.c.o:
+ $(CC) $(CFLAGS) $(DEFS) -c $< -o $@