]> Cypherpunks repositories - gostls13.git/commitdiff
- added gccgo makefile
authorRobert Griesemer <gri@golang.org>
Tue, 23 Sep 2008 18:17:44 +0000 (11:17 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 23 Sep 2008 18:17:44 +0000 (11:17 -0700)
R=r
OCL=15693
CL=15695

usr/gri/pretty/Makefile.iant [new file with mode: 0644]
usr/gri/pretty/ast.go

diff --git a/usr/gri/pretty/Makefile.iant b/usr/gri/pretty/Makefile.iant
new file mode 100644 (file)
index 0000000..2f8f8c3
--- /dev/null
@@ -0,0 +1,56 @@
+# 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.
+
+# -*- Makefile -*-
+
+GO = /home/iant/go/bin/gccgo
+
+LDFLAGS = -Wl,-R,/home/iant/go/lib
+
+
+test: pretty
+       pretty -s *.go
+       pretty -s ../gosrc/*.go
+       pretty -s $(GOROOT)/test/sieve.go
+       pretty -s $(GOROOT)/src/pkg/*.go
+       pretty -s $(GOROOT)/src/lib/flag.go
+       pretty -s $(GOROOT)/src/lib/fmt.go
+       pretty -s $(GOROOT)/src/lib/rand.go
+       pretty -s $(GOROOT)/src/lib/math/*.go
+       pretty -s $(GOROOT)/src/lib/container/*.go
+       pretty -s $(GOROOT)/src/syscall/*.go
+       echo "DONE"
+
+install: pretty
+       cp pretty $(HOME)/bin/pretty
+
+clean:
+       rm -f pretty *.o  *~
+
+pretty.o:      parser.o printer.o platform.o scanner.o
+
+parser.o:      ast.o scanner.o utils.o printer.o
+
+scanner.o:     utils.o platform.o
+
+.SUFFIXES:
+.SUFFIXES: .go .o
+
+.go.o:
+       $(GO) -O2 -c -g $<
+
+
+PRETTY_OBJS = \
+       ast.o \
+       pretty.o \
+       parser.o \
+       platform.o \
+       printer.o \
+       scanner.o \
+       utils.o \
+
+
+pretty: $(PRETTY_OBJS)
+       $(GO) $(LDFLAGS) -o $@ $(PRETTY_OBJS)
+
index 601b9ecc4c126b480bbad0b8da5768269170149a..f314faa434b90c386603d5317fed1e9e30e71e07 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package AST;
+package AST
 
 // ----------------------------------------------------------------------------
 // Lists