2008-06-11 18:50:07 -06:00
|
|
|
# Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
2008-08-04 00:03:31 -06:00
|
|
|
include ../../Make.conf
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
TARG=\
|
|
|
|
6l\
|
|
|
|
|
|
|
|
OFILES=\
|
|
|
|
asm.$O\
|
2009-08-21 14:08:11 -06:00
|
|
|
elf.$O\
|
2008-10-21 11:40:16 -06:00
|
|
|
enam.$O\
|
|
|
|
go.$O\
|
2009-10-07 01:11:59 -06:00
|
|
|
lib.$O\
|
2008-10-21 11:40:16 -06:00
|
|
|
list.$O\
|
2009-09-30 18:33:39 -06:00
|
|
|
macho.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
obj.$O\
|
|
|
|
optab.$O\
|
|
|
|
pass.$O\
|
|
|
|
span.$O\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
l.h\
|
|
|
|
../6l/6.out.h\
|
2009-10-07 01:11:59 -06:00
|
|
|
../ld/lib.h\
|
2009-08-21 14:08:11 -06:00
|
|
|
../ld/elf.h\
|
2009-09-30 18:33:39 -06:00
|
|
|
../ld/macho.h\
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
$(TARG): $(OFILES)
|
2008-08-04 00:03:31 -06:00
|
|
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
|
|
|
|
enam.c: 6.out.h
|
|
|
|
sh mkenam
|
|
|
|
|
|
|
|
clean:
|
2009-10-03 11:38:03 -06:00
|
|
|
rm -f *.$O $(TARG) *.6 enam.c 6.out a.out
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
install: $(TARG)
|
2009-07-28 12:23:24 -06:00
|
|
|
cp $(TARG) $(GOBIN)/$(TARG)
|
2009-03-31 01:20:07 -06:00
|
|
|
|
2009-10-07 01:11:59 -06:00
|
|
|
%.$O: ../ld/%.c
|
|
|
|
$(CC) $(CFLAGS) -c -I. ../ld/$*.c
|