Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wrathematics/4ce7b5cb29aab2901f225ab488f055d4 to your computer and use it in GitHub Desktop.
Save wrathematics/4ce7b5cb29aab2901f225ab488f055d4 to your computer and use it in GitHub Desktop.
PKG_LIBS = -L. -lgotest
OBJECTS = gotest/test.o
all: $(SHLIB)
$(SHLIB): $(OBJECTS)
GOLIB = libgotest.so
$(OBJECTS):$(GOLIB)
$(GOLIB):
CC=clang go build -o libgotest.so -buildmode=c-shared gotest/gotest.go
clean:
rm libgotest.h
rm libgotest.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment