mirror of
https://github.com/golang/go
synced 2024-11-23 04:30:03 -07:00
eba73552d2
(e.g.: pretty -d pretty.go will print the Makefile dep. rules of the involved Go files that are not part of the installed library) - minor fix in pretty printer (tested against ken's test files) R=r OCL=17872 CL=17872
62 lines
931 B
Makefile
62 lines
931 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.go \
|
|
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: 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
|
|
|
|
|
|
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 $<
|