Makefile et variables d'environnement

Makefile

include env exe: go build main.go dll: go build -buildmode=c-shared -o main.dll main.go clean: rm -f main.exe main.dll main.h all: exe dll

env

cat env export GOOS=windows #export GOARCH=amd64 export CGO_ENABLED=1 export CXX=x86_64-w64-mingw32-g++ export CC= x86_64-w64-mingw32-gcc export GOROOT=$(shell printenv HOME)/opt/go-legacy-win7/ export PATH = $(shell printenv HOME)/opt/go-legacy-win7/bin/go:$(shell printenv PATH)