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=\
|
|
|
|
6g
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
../gc/go.h\
|
|
|
|
../6l/6.out.h\
|
|
|
|
gg.h\
|
2008-11-18 20:24:37 -07:00
|
|
|
opt.h\
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
OFILES=\
|
|
|
|
list.$O\
|
2009-03-30 22:31:29 -06:00
|
|
|
obj.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
align.$O\
|
|
|
|
gen.$O\
|
|
|
|
cgen.$O\
|
|
|
|
gsubr.$O\
|
2008-11-18 20:24:37 -07:00
|
|
|
peep.$O\
|
|
|
|
reg.$O\
|
2008-06-11 18:50:07 -06:00
|
|
|
../6l/enam.$O\
|
|
|
|
|
|
|
|
LIB=\
|
|
|
|
../gc/gc.a$O
|
|
|
|
|
2008-06-11 19:01:45 -06:00
|
|
|
$(TARG): $(OFILES) $(LIB)
|
2008-10-17 16:52:49 -06:00
|
|
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9 -lm
|
2008-06-11 18:50:07 -06:00
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out
|
|
|
|
|
|
|
|
install: $(TARG)
|
|
|
|
cp $(TARG) $(BIN)/$(TARG)
|