add the fastindex module
[oweals/luci.git] / libs / fastindex / Makefile
diff --git a/libs/fastindex/Makefile b/libs/fastindex/Makefile
new file mode 100644 (file)
index 0000000..560a352
--- /dev/null
@@ -0,0 +1,12 @@
+include ../../build/config.mk
+include ../../build/gccconfig.mk
+
+%.o: %.c
+       $(COMPILE) $(LUA_CFLAGS) $(FPIC) -c -o $@ $< 
+
+compile: src/fastindex.o
+       mkdir -p dist/usr/lib/lua/luci
+       $(LINK) $(SHLIB_FLAGS) -o dist/usr/lib/lua/luci/fastindex.so src/fastindex.o $(LUA_SHLIBS)
+
+clean:
+       rm -f src/*.o