mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
12 lines
270 B
Makefile
12 lines
270 B
Makefile
default:
|
|
go build -buildmode=c-shared -o gopkg.so main.go
|
|
python3 -c 'import gopkg; print(gopkg.system("time"))'
|
|
|
|
clean:
|
|
-rm *.so
|
|
|
|
# PKG_CONFIG=python3-config go build -buildmode=c-shared -o say-hello.so main.go
|
|
# python3-config --ldflags
|
|
# python3-config --include
|
|
|