/sample_game/Makefile

https://code.google.com/p/termon/ · Makefile · 25 lines · 12 code · 7 blank · 6 comment · 0 complexity · 0a5e85ecffe56ae1cfd547984801f659 MD5 · raw file

  1. # Makefile generated by gb: http://go-gb.googlecode.com
  2. # gb provides configuration-free building and distributing
  3. include $(GOROOT)/src/Make.inc
  4. TARG=sample_game
  5. GOFILES=\
  6. sample_game.go\
  7. # gb: this is the local install
  8. GBROOT=..
  9. # gb: compile/link against local install
  10. GC+= -I $(GBROOT)/_obj
  11. LD+= -L $(GBROOT)/_obj
  12. # gb: default target is in GBROOT this way
  13. command:
  14. include $(GOROOT)/src/Make.cmd
  15. # gb: copy to local install
  16. $(GBROOT)/bin/$(TARG): $(TARG)
  17. mkdir -p $(dir $@); cp -f $< $@
  18. command: $(GBROOT)/bin/$(TARG)