mirror of
https://github.com/golang/go
synced 2024-11-22 07:14:40 -07:00
Use a single Make.conf for setting CC, etc.
This makes it easy to build with other flags (like -ggdb) or other compilers (like cc64). R=r DELTA=45 (6 added, 22 deleted, 17 changed) OCL=13790 CL=13793
This commit is contained in:
parent
989676d2ba
commit
34514bdb72
10
src/Make.conf
Normal file
10
src/Make.conf
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# 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.
|
||||||
|
|
||||||
|
CC=cc64
|
||||||
|
LD=cc64
|
||||||
|
CFLAGS=-ggdb -I$(GOROOT)/include
|
||||||
|
BIN=$(HOME)/bin
|
||||||
|
O=o
|
||||||
|
YFLAGS=-d
|
@ -2,10 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
YFLAGS=-d
|
include ../../Make.conf
|
||||||
CFLAGS=-I$(GOROOT)/include
|
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
TARG=\
|
TARG=\
|
||||||
6a\
|
6a\
|
||||||
@ -26,7 +23,7 @@ YFILES=\
|
|||||||
a.y\
|
a.y\
|
||||||
|
|
||||||
$(TARG): $(OFILES)
|
$(TARG): $(OFILES)
|
||||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||||
|
|
||||||
$(OFILES): $(HFILES)
|
$(OFILES): $(HFILES)
|
||||||
|
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../../Make.conf
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
TARG=\
|
TARG=\
|
||||||
6c\
|
6c\
|
||||||
@ -32,7 +30,7 @@ LIB=\
|
|||||||
../cc/cc.a$O
|
../cc/cc.a$O
|
||||||
|
|
||||||
$(TARG): $(OFILES) $(LIB)
|
$(TARG): $(OFILES) $(LIB)
|
||||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
|
||||||
|
|
||||||
$(OFILES): $(HFILES)
|
$(OFILES): $(HFILES)
|
||||||
|
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../../Make.conf
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
TARG=\
|
TARG=\
|
||||||
6g
|
6g
|
||||||
@ -27,7 +25,7 @@ LIB=\
|
|||||||
../gc/gc.a$O
|
../gc/gc.a$O
|
||||||
|
|
||||||
$(TARG): $(OFILES) $(LIB)
|
$(TARG): $(OFILES) $(LIB)
|
||||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) $(LIB) -lbio -l9
|
||||||
|
|
||||||
$(OFILES): $(HFILES)
|
$(OFILES): $(HFILES)
|
||||||
|
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../../Make.conf
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
TARG=\
|
TARG=\
|
||||||
6l\
|
6l\
|
||||||
@ -25,7 +23,7 @@ HFILES=\
|
|||||||
|
|
||||||
|
|
||||||
$(TARG): $(OFILES)
|
$(TARG): $(OFILES)
|
||||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||||
|
|
||||||
$(OFILES): $(HFILES)
|
$(OFILES): $(HFILES)
|
||||||
|
|
||||||
|
@ -2,9 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../../Make.conf
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
# The directory is ar because the source is portable and general.
|
# The directory is ar because the source is portable and general.
|
||||||
# We call the binary 6ar to avoid confusion and because this binary
|
# We call the binary 6ar to avoid confusion and because this binary
|
||||||
@ -15,7 +13,7 @@ OFILES=\
|
|||||||
ar.$O\
|
ar.$O\
|
||||||
|
|
||||||
$(TARG): $(OFILES)
|
$(TARG): $(OFILES)
|
||||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach_amd64 -lbio -l9
|
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lmach_amd64 -lbio -l9
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OFILES) $(TARG)
|
rm -f $(OFILES) $(TARG)
|
||||||
|
@ -2,10 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
YFLAGS=-d
|
include ../../Make.conf
|
||||||
CFLAGS=-I$(GOROOT)/include
|
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
LIB=\
|
LIB=\
|
||||||
cc.a$O\
|
cc.a$O\
|
||||||
|
@ -2,10 +2,7 @@
|
|||||||
# Use of this source code is governed by a BSD-style
|
# Use of this source code is governed by a BSD-style
|
||||||
# license that can be found in the LICENSE file.
|
# license that can be found in the LICENSE file.
|
||||||
|
|
||||||
YFLAGS=-d
|
include ../../Make.conf
|
||||||
CFLAGS=-I$(GOROOT)/include
|
|
||||||
BIN=$(HOME)/bin
|
|
||||||
O=o
|
|
||||||
|
|
||||||
LIB=\
|
LIB=\
|
||||||
gc.a$O\
|
gc.a$O\
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../Make.conf
|
||||||
O=o
|
|
||||||
|
|
||||||
LIB=libbio.a
|
LIB=libbio.a
|
||||||
|
|
||||||
|
@ -26,8 +26,7 @@
|
|||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
CFLAGS=-I$(GOROOT)/include
|
include ../Make.conf
|
||||||
O=o
|
|
||||||
|
|
||||||
LIB=libmach_amd64.a
|
LIB=libmach_amd64.a
|
||||||
OFILES=\
|
OFILES=\
|
||||||
|
Loading…
Reference in New Issue
Block a user