blob: 7952f754d77f1b577aa2da559e1dcc15d00ccdd2 [file] [log] [blame]
# 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.
include ../../Make.conf
TARG=\
6l\
OFILES=\
asm.$O\
compat.$O\
elf.$O\
enam.$O\
go.$O\
list.$O\
obj.$O\
optab.$O\
pass.$O\
span.$O\
HFILES=\
l.h\
../6l/6.out.h\
../ld/elf.h\
../6l/compat.h\
$(TARG): $(OFILES)
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
$(OFILES): $(HFILES)
enam.c: 6.out.h
sh mkenam
clean:
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out
install: $(TARG)
cp $(TARG) $(GOBIN)/$(TARG)
go.o: ../ld/go.c
elf.o: ../ld/elf.c