2008-09-23 12:17:44 -06:00
|
|
|
# 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
|
|
|
|
|
2009-04-28 20:11:37 -06:00
|
|
|
LDFLAGS = -Wl,-R,/home/iant/go/lib,-static-libgo
|
2008-09-23 12:17:44 -06:00
|
|
|
|
2008-10-16 16:28:36 -06:00
|
|
|
PRETTY_OBJS = \
|
2009-04-28 20:11:37 -06:00
|
|
|
astprinter.o \
|
|
|
|
format.o \
|
2008-12-19 15:32:00 -07:00
|
|
|
pretty.o \
|
2008-10-16 16:28:36 -06:00
|
|
|
|
|
|
|
pretty: $(PRETTY_OBJS)
|
|
|
|
$(GO) $(LDFLAGS) -o $@ $(PRETTY_OBJS)
|
2008-09-23 12:17:44 -06:00
|
|
|
|
|
|
|
test: pretty
|
2008-10-17 17:19:31 -06:00
|
|
|
test.sh
|
2008-09-23 12:17:44 -06:00
|
|
|
|
|
|
|
install: pretty
|
|
|
|
cp pretty $(HOME)/bin/pretty
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f pretty *.o *~
|
|
|
|
|
|
|
|
|
2009-04-28 20:11:37 -06:00
|
|
|
pretty.o: astprinter.o format.o
|
2008-10-24 15:04:54 -06:00
|
|
|
|
2008-09-23 12:17:44 -06:00
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .go .o
|
|
|
|
|
|
|
|
.go.o:
|
|
|
|
$(GO) -O2 -c -g $<
|