Commit 1d62becb authored by Joe Poirier's avatar Joe Poirier Committed by Russ Cox

build: generate, clean .exe files on Windows

R=rsc, brainman, vcc
CC=golang-dev
https://golang.org/cl/2165044
parent a0fc33a8
...@@ -4,6 +4,10 @@ ...@@ -4,6 +4,10 @@
# Makefile for commands written in C. # Makefile for commands written in C.
ifeq (windows,$(findstring windows, $(shell uname | tr A-Z a-z | sed 's/mingw/windows/')))
TARG:=$(TARG).exe
endif
$(TARG): $(OFILES) $(LIB) $(TARG): $(OFILES) $(LIB)
$(HOST_LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm $(HOST_LD) -o $(TARG) -L"$(GOROOT)"/lib $(OFILES) $(LIB) -lbio -l9 -lm
......
...@@ -50,7 +50,7 @@ coverage: ...@@ -50,7 +50,7 @@ coverage:
gotest gotest
6cov -g $(shell pwd) $O.out | grep -v '_test\.go:' 6cov -g $(shell pwd) $O.out | grep -v '_test\.go:'
CLEANFILES+=*.cgo1.go *.cgo2.c _cgo_defun.c _cgo_gotypes.go _cgo_export.* *.so _obj _test _testmain.go CLEANFILES+=*.cgo1.go *.cgo2.c _cgo_defun.c _cgo_gotypes.go _cgo_export.* *.so _obj _test _testmain.go *.exe
test: test:
gotest gotest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment