mirror of
https://github.com/golang/go
synced 2024-11-22 01: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
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
YFLAGS=-d
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
TARG=\
|
||||
6a\
|
||||
@ -26,7 +23,7 @@ YFILES=\
|
||||
a.y\
|
||||
|
||||
$(TARG): $(OFILES)
|
||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||
|
||||
$(OFILES): $(HFILES)
|
||||
|
||||
|
@ -2,9 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
TARG=\
|
||||
6c\
|
||||
@ -32,7 +30,7 @@ LIB=\
|
||||
../cc/cc.a$O
|
||||
|
||||
$(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)
|
||||
|
||||
|
@ -2,9 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
TARG=\
|
||||
6g
|
||||
@ -27,7 +25,7 @@ LIB=\
|
||||
../gc/gc.a$O
|
||||
|
||||
$(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)
|
||||
|
||||
|
@ -2,9 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
TARG=\
|
||||
6l\
|
||||
@ -25,7 +23,7 @@ HFILES=\
|
||||
|
||||
|
||||
$(TARG): $(OFILES)
|
||||
cc -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||
$(LD) -o $(TARG) -L$(GOROOT)/lib $(OFILES) -lbio -l9
|
||||
|
||||
$(OFILES): $(HFILES)
|
||||
|
||||
|
@ -2,9 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
# The directory is ar because the source is portable and general.
|
||||
# We call the binary 6ar to avoid confusion and because this binary
|
||||
@ -15,7 +13,7 @@ OFILES=\
|
||||
ar.$O\
|
||||
|
||||
$(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:
|
||||
rm -f $(OFILES) $(TARG)
|
||||
|
@ -2,10 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
YFLAGS=-d
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
LIB=\
|
||||
cc.a$O\
|
||||
|
@ -2,10 +2,7 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
YFLAGS=-d
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
BIN=$(HOME)/bin
|
||||
O=o
|
||||
include ../../Make.conf
|
||||
|
||||
LIB=\
|
||||
gc.a$O\
|
||||
|
@ -22,8 +22,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
O=o
|
||||
include ../Make.conf
|
||||
|
||||
LIB=libbio.a
|
||||
|
||||
|
@ -26,8 +26,7 @@
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
# THE SOFTWARE.
|
||||
|
||||
CFLAGS=-I$(GOROOT)/include
|
||||
O=o
|
||||
include ../Make.conf
|
||||
|
||||
LIB=libmach_amd64.a
|
||||
OFILES=\
|
||||
|
Loading…
Reference in New Issue
Block a user