mirror of
https://github.com/golang/go
synced 2024-11-18 09:44:50 -07:00
22301e8cea
- work-around for incorrect import path - added tmpl root in order to run against a goroot w/o templates - clarifications Daily snapshot of syntax-driven formatter. Some progress. Updated gccgo Makefile. TBR=r OCL=28004 CL=28004
36 lines
570 B
Makefile
36 lines
570 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,-static-libgo
|
|
|
|
PRETTY_OBJS = \
|
|
astprinter.o \
|
|
format.o \
|
|
pretty.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: astprinter.o format.o
|
|
|
|
.SUFFIXES:
|
|
.SUFFIXES: .go .o
|
|
|
|
.go.o:
|
|
$(GO) -O2 -c -g $<
|