add makefile option for shared library
parent
f6259a01d3
commit
1ce62ff79b
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue