1
0
mirror of https://github.com/lxsang/antd-lua-plugin synced 2024-12-28 02:18:21 +01:00
antd-lua-plugin/lib.mk

15 lines
390 B
Makefile
Raw Normal View History

2018-09-20 10:28:41 +02:00
include ../../var.mk
2018-09-19 15:08:49 +02:00
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