mirror of
https://github.com/lxsang/antd-lua-plugin
synced 2024-12-28 10:28:21 +01:00
18 lines
488 B
Makefile
18 lines
488 B
Makefile
|
LUA_H= -I../../3rd/lua-5.3.4/
|
||
|
REAL_PLUGINS_BASE=../../$(PLUGINS_BASE)
|
||
|
LIB_EXT=llib
|
||
|
LIB_BUILD_DIR=$(PBUILDIRD)/lua-api
|
||
|
main:$(LIB_OBJ) $(LIB_NAME)
|
||
|
|
||
|
%.o: %.c
|
||
|
$(CC) $(LIB_CFLAGS) $(LIB_INC) -fPIC $(LUA_H) -I$(REAL_PLUGINS_BASE) -c $< -o $@
|
||
|
|
||
|
%.$(LIB_EXT): %.o
|
||
|
-mkdir $(LIB_BUILD_DIR)
|
||
|
$(CC) $(LIB_CFLAGS) $(LUA_LIB) -shared -o $(LIB_BUILD_DIR)/$(basename $@).$(LIB_EXT) $(LIB_OBJ) $(LIB_CONF)
|
||
|
|
||
|
clean:
|
||
|
- rm $(LIB_BUILD_DIR)/$(LIB_NAME) *.o *.dylib
|
||
|
.PRECIOUS: %.o
|
||
|
.PHONY: clean
|