diff options
author | Robert de Bath <rdebath@poboxes.com> | 1997-05-09 19:36:29 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:39:48 +0200 |
commit | e63c244cb22bf48ca1d2695784a072269d19ea96 (patch) | |
tree | 45b9018259f43db629b27395783cf48e55a85eee /ld/Makefile | |
parent | 4c36e9a0c125ccfff37aa440dab2cf58c4152fff (diff) | |
download | dev86-e63c244cb22bf48ca1d2695784a072269d19ea96.tar.gz |
Import Dev86src-0.12.0.tar.gzv0.12.0
Diffstat (limited to 'ld/Makefile')
-rw-r--r-- | ld/Makefile | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/ld/Makefile b/ld/Makefile index da7b268..2e30d96 100644 --- a/ld/Makefile +++ b/ld/Makefile @@ -4,11 +4,19 @@ 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 +# -DV7_A_OUT # a.out.h is like V7 +# -DBSD_A_OUT # a.out.h is like BSD +# -DSTANDARD_GNU_A_OUT # a.out.h is like GNU normal. +# -DNO_AOUT # a.out.h is like nothing known! +# +DEFS =-DREL_OUTPUT -DBUGCOMPAT + +# An alternative file for a non-standard a.out.h (eg i386 linux on an Alpha) +# +# NATIVE= -DA_OUT_INCL='"a_out_local.h"' OBJS= dumps.o io.o ld.o readobj.o table.o typeconv.o linksyms.o \ - writex86.o writebin.o + writex86.o writebin.o writerel.o all: ld86 @@ -29,5 +37,10 @@ ar.h: ln -s ../libc/include/ar.h . || \ ln ../libc/include/ar.h . +writebin.o: writebin.c + $(CC) $(CFLAGS) $(DEFS) $(NATIVE) -c writebin.c + +writerel.o: writebin.c + .c.o: $(CC) $(CFLAGS) $(DEFS) -c $< -o $@ |