summaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-29 01:14:22 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-06-29 01:14:22 +0000
commit934ca4bd322d6d7626204fdc0d811861cc1dd278 (patch)
tree5fb0874229c727e2dd2fa5ae052518b26838e0b6 /GNUmakefile
parent5bd69c15772ff53ffc982edfe9c387af2c0fb484 (diff)
downloadcryptopp-934ca4bd322d6d7626204fdc0d811861cc1dd278.tar.gz
add makefile option for shared library
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@496 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 291eb60..5bf68b8 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -121,12 +121,16 @@ install:
$(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
$(CP) *.h $(PREFIX)/include/cryptopp
$(CP) *.a $(PREFIX)/lib
+ $(CP) *.so $(PREFIX)/lib
$(CP) *.exe $(PREFIX)/bin
libcryptopp.a: $(LIBOBJS)
$(AR) $(ARFLAGS) $@ $(LIBOBJS)
$(RANLIB) $@
+libcryptopp.so: $(LIBOBJS)
+ $(CXX) -shared -o $@ $(LIBOBJS)
+
cryptest.exe: libcryptopp.a $(TESTOBJS)
$(CXX) -o $@ $(CXXFLAGS) $(TESTOBJS) -L. -lcryptopp $(LDFLAGS) $(LDLIBS)