/Makefile
https://code.google.com/p/go-golf/ · Makefile · 24 lines · 13 code · 8 blank · 3 comment · 0 complexity · 299e26d95eb2ba902f916ac13a4c1503 MD5 · raw file
- # 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.
- include $(GOROOT)/src/Make.inc
- TARG=golf
- GOFILES=golf.go golfToken.go golfLine.go
- include $(GOROOT)/src/Make.pkg
- all: main
- main: $(TARG).a
- 6g main.go
- 6l -o main main.6
- $(TARG).a: _obj/$(TARG).a
- cp _obj/$(TARG).a .
- clean: mainclean
- mainclean:
- rm -f $(TARG).a