diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-06-29 01:14:22 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2010-06-29 01:14:22 +0000 |
commit | 934ca4bd322d6d7626204fdc0d811861cc1dd278 (patch) | |
tree | 5fb0874229c727e2dd2fa5ae052518b26838e0b6 /GNUmakefile | |
parent | 5bd69c15772ff53ffc982edfe9c387af2c0fb484 (diff) | |
download | cryptopp-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-- | GNUmakefile | 4 |
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) |