1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-27 09:58:21 +01:00
antd-lua-plugin/lib.mk
Xuan Sang LE 10785a1b3b fix
2018-09-20 10:28:41 +02:00

15 lines
390 B
Makefile

include ../../var.mk
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