2008-08-04 00:03:31 -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-11-19 13:54:44 -07:00
|
|
|
CC=quietgcc
|
|
|
|
LD=quietgcc
|
2009-11-23 18:32:51 -07:00
|
|
|
CFLAGS=-ggdb -I"$(GOROOT)"/include -O2 -fno-inline
|
2008-08-04 00:03:31 -06:00
|
|
|
O=o
|
|
|
|
YFLAGS=-d
|
2009-07-28 12:23:24 -06:00
|
|
|
# GNU Make syntax:
|
|
|
|
ifndef GOBIN
|
2009-11-23 18:32:51 -07:00
|
|
|
GOBIN="$(HOME)/bin"
|
2009-07-28 12:23:24 -06:00
|
|
|
endif
|
2009-07-30 13:54:38 -06:00
|
|
|
PWD=$(shell pwd)
|
|
|
|
|
|
|
|
%.$O: %.c
|
2009-11-23 18:32:51 -07:00
|
|
|
$(CC) $(CFLAGS) -c "$(PWD)"/$*.c
|