2009-01-06 12:34:02 -07: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.
|
|
|
|
|
|
|
|
include ../../Make.conf
|
|
|
|
|
|
|
|
TARG=\
|
|
|
|
8c\
|
|
|
|
|
|
|
|
HFILES=\
|
|
|
|
gc.h\
|
|
|
|
../8l/8.out.h\
|
|
|
|
../cc/cc.h\
|
|
|
|
|
|
|
|
OFILES=\
|
|
|
|
cgen.$O\
|
|
|
|
cgen64.$O\
|
|
|
|
div.$O\
|
|
|
|
list.$O\
|
|
|
|
machcap.$O\
|
|
|
|
mul.$O\
|
2009-07-07 11:07:15 -06:00
|
|
|
pgen.$O\
|
|
|
|
pswt.$O\
|
2009-01-06 12:34:02 -07:00
|
|
|
peep.$O\
|
|
|
|
reg.$O\
|
|
|
|
sgen.$O\
|
|
|
|
swt.$O\
|
|
|
|
txt.$O\
|
|
|
|
../8l/enam.$O\
|
|
|
|
|
|
|
|
LIB=\
|
|
|
|
../cc/cc.a$O
|
|
|
|
|
|
|
|
$(TARG): $(OFILES) $(LIB)
|
2009-03-24 19:04:19 -06:00
|
|
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lm -lbio -l9
|
2009-01-06 12:34:02 -07:00
|
|
|
|
|
|
|
$(OFILES): $(HFILES)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(OFILES) $(TARG) *.8 8.out a.out
|
|
|
|
|
|
|
|
install: $(TARG)
|
2009-07-28 12:23:24 -06:00
|
|
|
cp $(TARG) $(GOBIN)/$(TARG)
|
2009-07-07 11:07:15 -06:00
|
|
|
|
|
|
|
%.$O: ../cc/%.c
|
|
|
|
$(CC) $(CFLAGS) -c -I. -o $@ ../cc/$*.c
|