You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
729 B

  1. --- a/makefile
  2. +++ b/makefile
  3. @@ -2,14 +2,14 @@
  4. # Makefile for UNIX - unrar
  5. # Linux using GCC
  6. -CXX=c++
  7. -CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
  8. -LIBFLAGS=-fPIC
  9. +CXX?=c++
  10. +CXXFLAGS?=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
  11. +LIBFLAGS?=-fPIC
  12. DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
  13. -STRIP=strip
  14. -AR=ar
  15. -LDFLAGS=-pthread
  16. -DESTDIR=/usr
  17. +STRIP?=strip
  18. +AR?=ar
  19. +LDFLAGS?=-lpthread
  20. +DESTDIR?=/usr
  21. # Linux using LCC
  22. #CXX=lcc
  23. @@ -167,7 +167,7 @@ uninstall-unrar:
  24. rm -f $(DESTDIR)/bin/unrar
  25. install-lib:
  26. - install libunrar.so $(DESTDIR)/lib
  27. + install -D libunrar.so $(DESTDIR)/lib/libunrar.so
  28. install libunrar.a $(DESTDIR)/lib
  29. uninstall-lib: