summaryrefslogtreecommitdiffhomepage
path: root/libs/px5g/Makefile
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-06-06 20:34:47 +0000
committerSteven Barth <steven@midlink.org>2009-06-06 20:34:47 +0000
commit0bf57f624564bae569dc49d243ad069f802d3127 (patch)
tree7e6849b1fe704ac3193138f10eb7c93a54b6fda7 /libs/px5g/Makefile
parent4d4f8f4d79577d0962e0b76db98d67865b69e6a0 (diff)
Add PX5G Keymaster
Diffstat (limited to 'libs/px5g/Makefile')
-rw-r--r--libs/px5g/Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/libs/px5g/Makefile b/libs/px5g/Makefile
new file mode 100644
index 000000000..d9aa89fbf
--- /dev/null
+++ b/libs/px5g/Makefile
@@ -0,0 +1,24 @@
+include ../../build/config.mk
+include ../../build/module.mk
+include ../../build/gccconfig.mk
+
+PX5G_LIB_CFLAGS = -Isrc/ -fvisibility=hidden
+PX5G_OBJ_CFLAGS = -Isrc/
+
+PX5G_LIB = src/library/bignum.o src/library/havege.o src/library/rsa.o \
+ src/library/sha1.o src/library/timing.o src/library/x509write.o
+PX5G_OBJ = src/px5g.o
+
+src/library/%.o: src/library/%.c
+ $(COMPILE) $(PX5G_LIB_CFLAGS) $(FPIC) -c -o $@ $<
+
+%.o: %.c
+ $(COMPILE) $(PX5G_OBJ_CFLAGS) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
+
+compile: $(PX5G_LIB) $(PX5G_OBJ)
+ $(LINK) $(SHLIB_FLAGS) -o src/px5g.so $(PX5G_OBJ) $(PX5G_LIB)
+ mkdir -p dist$(LUA_LIBRARYDIR)
+ cp src/px5g.so dist$(LUA_LIBRARYDIR)/px5g.so
+
+clean: luaclean
+ rm -f $(PX5G_OBJ) $(PX5G_LIB) src/*.o src/*.so src/*.a src/*.dll