summaryrefslogtreecommitdiffhomepage
path: root/libs/core/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libs/core/Makefile')
-rw-r--r--libs/core/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/core/Makefile b/libs/core/Makefile
index f7fac7740..7c9b3d794 100644
--- a/libs/core/Makefile
+++ b/libs/core/Makefile
@@ -1,2 +1,12 @@
include ../../build/config.mk
include ../../build/module.mk
+
+%.o: %.c
+ $(COMPILE) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
+
+compile: src/luci_cutil.o
+ mkdir -p dist$(LUCI_LIBRARYDIR)
+ $(LINK) $(SHLIB_FLAGS) -o dist$(LUCI_LIBRARYDIR)/cutil.so src/luci_cutil.o
+
+clean: luaclean
+ rm src/*.o \ No newline at end of file