Outils pour utilisateurs

Outils du site


tech:makefile_et_variables_d_environnement

Makefile et variables d'environnement

Makefile

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

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)
tech/makefile_et_variables_d_environnement.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki