Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. IS_DEBIAN = $(shell uname -a 2>&1 | $(EGREP) -i -c "debian|ubuntu|mint")
  2. ...
  3.  
  4. # https://wiki.debian.org/DebugPackage
  5. ifeq ($(IS_DEBIAN),1)
  6. DEBUG_SYM_DIR = /usr/lib/debug/cryptopp
  7. DEBUG_SRC_DIR = /usr/src/debug/cryptopp
  8. endif
  9. ...
  10.  
  11. symbol symbols:
  12. $(MKDIR) -p $(DEBUG_SYM_DIR) $(DEBUG_SRC_DIR)
  13. -objcopy --only-keep-debug cryptest.exe cryptest.exe.debug
  14. -objcopy --only-keep-debug libcryptopp.so libcryptopp.so.debug
  15. -strip --strip-debug --strip-unneeded cryptest.exe
  16. -strip --strip-debug --strip-unneeded libcryptopp.so
  17. -$(CP) cryptest.exe.debug $(DEBUG_SYM_DIR)/
  18. -$(CP) libcryptopp.so.debug $(DEBUG_SYM_DIR)/
  19. -objcopy --add-gnu-debuglink=$(DEBUG_SYM_DIR)/cryptest.exe.debug cryptest.exe
  20. -objcopy --add-gnu-debuglink=$(DEBUG_SYM_DIR)/libcryptopp.so.debug libcryptopp.so
  21. -$(CP) *.h *.cpp $(DEBUG_SRC_DIR)/
  22.  
  23. cd cryptopp
  24. make static dynamic test
  25. sudo make symbols
  26. sudo make install
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement