Created
September 19, 2011 22:39
-
-
Save alexdioso/1227804 to your computer and use it in GitHub Desktop.
Go Makefile with debug target
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include $(GOROOT)/src/Make.inc | |
TARGDIR=../bin | |
TARG=myprogram | |
GOFILES=\ | |
myprogram.go\ | |
CLEANFILES+=$(TARG)-debug | |
include $(GOROOT)/src/Make.cmd | |
debug: $(TARG)-debug | |
$(TARG)-debug: _go_.$O | |
$(LD) $(LDIMPORTS) -e -o $@ _go_.$O |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment