Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IS_DEBIAN = $(shell uname -a 2>&1 | $(EGREP) -i -c "debian|ubuntu|mint")
- ...
- # https://wiki.debian.org/DebugPackage
- ifeq ($(IS_DEBIAN),1)
- DEBUG_SYM_DIR = /usr/lib/debug/cryptopp
- DEBUG_SRC_DIR = /usr/src/debug/cryptopp
- endif
- ...
- symbol symbols:
- $(MKDIR) -p $(DEBUG_SYM_DIR) $(DEBUG_SRC_DIR)
- -objcopy --only-keep-debug cryptest.exe cryptest.exe.debug
- -objcopy --only-keep-debug libcryptopp.so libcryptopp.so.debug
- -strip --strip-debug --strip-unneeded cryptest.exe
- -strip --strip-debug --strip-unneeded libcryptopp.so
- -$(CP) cryptest.exe.debug $(DEBUG_SYM_DIR)/
- -$(CP) libcryptopp.so.debug $(DEBUG_SYM_DIR)/
- -objcopy --add-gnu-debuglink=$(DEBUG_SYM_DIR)/cryptest.exe.debug cryptest.exe
- -objcopy --add-gnu-debuglink=$(DEBUG_SYM_DIR)/libcryptopp.so.debug libcryptopp.so
- -$(CP) *.h *.cpp $(DEBUG_SRC_DIR)/
- cd cryptopp
- make static dynamic test
- sudo make symbols
- sudo make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement