From 934ca4bd322d6d7626204fdc0d811861cc1dd278 Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 29 Jun 2010 01:14:22 +0000 Subject: 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 --- GNUmakefile | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.1