diff options
Diffstat (limited to 'ld/Makefile')
-rw-r--r-- | ld/Makefile | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/ld/Makefile b/ld/Makefile index 6351f10..da7b268 100644 --- a/ld/Makefile +++ b/ld/Makefile @@ -1,15 +1,11 @@ -ifneq ($(TOPDIR),) -include $(TOPDIR)/Make.defs -CFLAGS =$(CCFLAGS) -DREL_OUTPUT -else -LDFLAGS =-s LIBDIR =/usr/bin -CFLAGS =-O -DREL_OUTPUT -endif +CFLAGS =-O +LDFLAGS =-s # May need some of these if the auto-sense fails. # -DV7_A_OUT -DBSD_A_OUT -DSTANDARD_GNU_A_OUT +DEFS =-DREL_OUTPUT OBJS= dumps.o io.o ld.o readobj.o table.o typeconv.o linksyms.o \ writex86.o writebin.o @@ -23,8 +19,15 @@ install: ld86 install -d $(LIBDIR) install -m 755 ld86 $(LIBDIR) -clean: +clean realclean: rm -f $(OBJS) ld86 $(OBJS): align.h ar.h bindef.h byteord.h config.h const.h globvar.h obj.h \ syshead.h type.h x86_aout.h + +ar.h: + ln -s ../libc/include/ar.h . || \ + ln ../libc/include/ar.h . + +.c.o: + $(CC) $(CFLAGS) $(DEFS) -c $< -o $@ |