Makefile 483 Bytes
Newer Older
1 2 3 4
# 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.

5 6
include ../../Make.inc
O:=$(HOST_O)
7

8
TARG=5c
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

HFILES=\
	gc.h\
	../5l/5.out.h\
	../cc/cc.h\

OFILES=\
	cgen.$O\
	list.$O\
	sgen.$O\
	swt.$O\
	txt.$O\
	mul.$O\
	reg.$O\
	peep.$O\
Russ Cox's avatar
Russ Cox committed
24 25
	pgen.$O\
	pswt.$O\
26 27 28
	../5l/enam.$O\

LIB=\
29
	../cc/cc.a\
30

31
include ../../Make.ccmd
Russ Cox's avatar
Russ Cox committed
32 33

%.$O: ../cc/%.c
34
	$(HOST_CC) $(HOST_CFLAGS) -c -I. -o $@ ../cc/$*.c