summaryrefslogtreecommitdiff
path: root/src/cmd/cc
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2008-06-11 17:50:07 -0700
committerRob Pike <r@golang.org>2008-06-11 17:50:07 -0700
commit75e58620da9ac899933e1f3cf4b57a878b1b68f5 (patch)
tree3c65099ac3538304bd7a1c80823ae1dc6075d378 /src/cmd/cc
parent4d6f06807f473fcddbe2005ccffc7a5ebbe11d4b (diff)
downloadgolang-75e58620da9ac899933e1f3cf4b57a878b1b68f5.tar.gz
convert from mk to make
phew. SVN=122266
Diffstat (limited to 'src/cmd/cc')
-rw-r--r--src/cmd/cc/Makefile50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/cmd/cc/Makefile b/src/cmd/cc/Makefile
new file mode 100644
index 000000000..9121d1390
--- /dev/null
+++ b/src/cmd/cc/Makefile
@@ -0,0 +1,50 @@
+# 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.
+
+YFLAGS=-d
+CFLAGS=-I/home/r/plan9/include -I$(GOROOT)/include
+BIN=$(HOME)/bin
+O=o
+
+LIB=\
+ cc.a$O\
+
+HFILES=\
+ cc.h\
+ y.tab.h\
+ compat.h\
+
+YFILES=\
+ cc.y\
+
+OFILES=\
+ y.tab.$O\
+ lex.$O\
+ mac.$O\
+ dcl.$O\
+ acid.$O\
+ pickle.$O\
+ bits.$O\
+ com.$O\
+ scon.$O\
+ funct.$O\
+ sub.$O\
+ com64.$O\
+ compat.$O\
+ dpchk.$O\
+ omachcap.$O\
+ compat.$O\
+
+$(LIB): $(OFILES)
+ 9ar rsc $(LIB) $(OFILES)
+
+$(OFILES): $(HFILES)
+
+y.tab.c: $(YFILES)
+ yacc $(YFLAGS) $(YFILES)
+
+clean:
+ rm -f $(OFILES) $(TARG) *.6 enam.c 6.out a.out y.tab.h y.tab.c $(LIB)
+
+install: $(LIB)