1
0
mirror of https://github.com/golang/go synced 2024-11-14 08:40:27 -07:00
go/usr/gri/pretty/Makefile.iant
Robert Griesemer 5d0e5a7867 - use stringtorune library function for faster rune scanning
- converted 2 right-recursive parsing functions into iterative versions
- renamed node.go -> ast.go (clearer)

R=r
OCL=17496
CL=17498
2008-10-20 15:03:40 -07:00

53 lines
844 B
Makefile

# 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
PRETTY_OBJS = \
ast.o \
pretty.o \
parser.o \
platform.o \
printer.o \
scanner.o \
utils.o \
flag.o \
fmt.o \
pretty: $(PRETTY_OBJS)
$(GO) $(LDFLAGS) -o $@ $(PRETTY_OBJS)
test: pretty
test.sh
install: pretty
cp pretty $(HOME)/bin/pretty
clean:
rm -f pretty *.o *~
pretty.o: parser.o printer.o platform.o scanner.o flag.o
parser.o: ast.o scanner.o utils.o printer.o
scanner.o: utils.o platform.o
ast.o: scanner.o
flag.o: fmt.o
$(GO) -O2 -c -g $(GOROOT)/src/lib/flag.go
fmt.o:
$(GO) -O2 -c -g $(GOROOT)/src/lib/fmt.go
.SUFFIXES:
.SUFFIXES: .go .o
.go.o:
$(GO) -O2 -c -g $<