]> Cypherpunks repositories - gostls13.git/commitdiff
Use a single Make.conf for setting CC, etc.
authorRuss Cox <rsc@golang.org>
Mon, 4 Aug 2008 06:03:31 +0000 (23:03 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 4 Aug 2008 06:03:31 +0000 (23:03 -0700)
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

src/Make.conf [new file with mode: 0644]
src/cmd/6a/Makefile
src/cmd/6c/Makefile
src/cmd/6g/Makefile
src/cmd/6l/Makefile
src/cmd/ar/Makefile
src/cmd/cc/Makefile
src/cmd/gc/Makefile
src/libbio/Makefile
src/libmach_amd64/Makefile

diff --git a/src/Make.conf b/src/Make.conf
new file mode 100644 (file)
index 0000000..e6d8628
--- /dev/null
@@ -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
index 4d987c124740a4744fc0a533d2e441ac831dde60..be34e99d368ef95938224a1cfdc023fa9c4e5ffd 100644 (file)
@@ -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)
 
index df92cee014e941c99d4a48e8fbdd72ae8b552335..fcfeb2204347bdee9c5d68e740735bb67801e034 100644 (file)
@@ -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)
 
index d119820e9e171c0323d40c2f47e058dbe354145d..4d27ae811d6167db6f60dff705817f6c0b8eeaa8 100644 (file)
@@ -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)
 
index e87efafc93e65eae881a8e665fc54ce663b25a5c..c15f4ff1bdae3b546e38966884cb49dc057c0719 100644 (file)
@@ -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)
 
index 11f573e10798cce49f2ab3a0e3e6bc0cbcb45dc7..ec499b297093cfc77baa23e673206e6ed0fd00a7 100644 (file)
@@ -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)
index cf52c8818a62641c33de53eb6ebf2d747fc38996..5d21241c430cbf3d64d5866dbb5c1368018005e2 100644 (file)
@@ -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\
index 8535c64b437138ccd0c359434c12bbdde20ccdd1..d5db24fe2f16e4005544e9d2a68c0438c487caf9 100644 (file)
@@ -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\
index eddeac071df4dff89231d78b8064d6111f58566f..02eaaa684f0de71617fcf910f8d20eb9040bf157 100644 (file)
@@ -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
 
index b8aa716b38b62bb616600ae7258950c28d35bee2..e4a80d8d29d9644dab67d63ded714060b8287a61 100644 (file)
@@ -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=\