1
0
mirror of https://github.com/golang/go synced 2024-10-03 16:41:28 -06:00
go/usr/gri/pretty/Makefile.iant
Ian Lance Taylor 748287d49e The flag and fmt libraries are now available from gccgo by
default.  Fix PRETTY_OBJS to include compilation.o rather than
compilation.go.

R=gri
DELTA=10  (0 added, 8 deleted, 2 changed)
OCL=20248
CL=20257
2008-12-02 12:52:47 -08:00

54 lines
801 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 \
compilation.o \
parser.o \
platform.o \
printer.o \
scanner.o \
utils.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: platform.o printer.o compilation.o
compilation.o: platform.o scanner.o parser.o ast.o
ast.o: scanner.o
scanner.o: utils.o
parser.o: scanner.o ast.o
platform.o: utils.o
printer.o: scanner.o ast.o
.SUFFIXES:
.SUFFIXES: .go .o
.go.o:
$(GO) -O2 -c -g $<