summaryrefslogtreecommitdiff
path: root/src/cmd/6l/Makefile
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-10-07 00:11:59 -0700
committerRuss Cox <rsc@golang.org>2009-10-07 00:11:59 -0700
commit9f661b631e585ef7f091fc2c83116cab83f031fa (patch)
treecd48bc5ff98e3e58a1e75d58e64af39fbfa33ef1 /src/cmd/6l/Makefile
parent8a7b8449de6b93152be1849efcbd3adc953f512d (diff)
downloadgolang-9f661b631e585ef7f091fc2c83116cab83f031fa.tar.gz
factor portable object+library bits out of 5l/6l/8l into ld
R=r DELTA=3214 (904 added, 2260 deleted, 50 changed) OCL=35425 CL=35427
Diffstat (limited to 'src/cmd/6l/Makefile')
-rw-r--r--src/cmd/6l/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/cmd/6l/Makefile b/src/cmd/6l/Makefile
index 82de18448..3260c15a7 100644
--- a/src/cmd/6l/Makefile
+++ b/src/cmd/6l/Makefile
@@ -9,10 +9,10 @@ TARG=\
OFILES=\
asm.$O\
- compat.$O\
elf.$O\
enam.$O\
go.$O\
+ lib.$O\
list.$O\
macho.$O\
obj.$O\
@@ -23,10 +23,9 @@ OFILES=\
HFILES=\
l.h\
../6l/6.out.h\
+ ../ld/lib.h\
../ld/elf.h\
../ld/macho.h\
- ../6l/compat.h\
-
$(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
@@ -42,6 +41,5 @@ clean:
install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG)
-go.o: ../ld/go.c
-elf.o: ../ld/elf.c
-macho.o: ../ld/macho.c
+%.$O: ../ld/%.c
+ $(CC) $(CFLAGS) -c -I. ../ld/$*.c