diff options
author | Rob Pike <r@golang.org> | 2008-06-11 17:50:07 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-06-11 17:50:07 -0700 |
commit | 75e58620da9ac899933e1f3cf4b57a878b1b68f5 (patch) | |
tree | 3c65099ac3538304bd7a1c80823ae1dc6075d378 /src/cmd/cc | |
parent | 4d6f06807f473fcddbe2005ccffc7a5ebbe11d4b (diff) | |
download | golang-75e58620da9ac899933e1f3cf4b57a878b1b68f5.tar.gz |
convert from mk to make
phew.
SVN=122266
Diffstat (limited to 'src/cmd/cc')
-rw-r--r-- | src/cmd/cc/Makefile | 50 |
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) |