diff options
Diffstat (limited to 'ar/Makefile')
-rw-r--r-- | ar/Makefile | 37 |
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 $@ |