1
0
mirror of https://github.com/golang/go synced 2024-11-25 08:57:58 -07:00

build: generate, clean .exe files on Windows

R=rsc, brainman, vcc
CC=golang-dev
https://golang.org/cl/2165044
This commit is contained in:
Joe Poirier 2010-09-09 01:42:55 -04:00 committed by Russ Cox
parent a0fc33a8ca
commit 1d62becbd8
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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