Skip to content

Instantly share code, notes, and snippets.

@annidy
Last active December 21, 2015 15:39
Show Gist options
  • Save annidy/6327906 to your computer and use it in GitHub Desktop.
Save annidy/6327906 to your computer and use it in GitHub Desktop.
lua扩展一般makefile
# http://lua-users.org/wiki/BuildingModules
TARGET = "mytest.so"
all:
gcc -c *.c
gcc -bundle -undefined dynamic_lookup *.o -o $(TARGET)
.PHONY : all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment