2022-03-27 10:06:15 +02:00
|
|
|
--- ./makefile.orig 2022-03-27 13:31:57.231913431 +0530
|
|
|
|
+++ ./makefile 2022-03-27 13:33:07.581913404 +0530
|
|
|
|
@@ -2,14 +2,14 @@
|
2015-06-13 01:03:31 +02:00
|
|
|
# Makefile for UNIX - unrar
|
|
|
|
|
|
|
|
# Linux using GCC
|
2017-01-31 13:12:45 +01:00
|
|
|
-CXX=c++
|
2018-03-12 11:39:33 +01:00
|
|
|
-CXXFLAGS=-O2 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
|
2015-06-13 01:03:31 +02:00
|
|
|
-LIBFLAGS=-fPIC
|
2017-01-31 13:12:45 +01:00
|
|
|
+CXX?=c++
|
2022-03-27 10:06:15 +02:00
|
|
|
+CXXFLAGS?=
|
|
|
|
+CXXFLAGS+=-O3 -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
|
2015-06-13 01:03:31 +02:00
|
|
|
+LIBFLAGS=$(LDFLAGS)
|
|
|
|
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP
|
|
|
|
-STRIP=strip
|
2017-06-12 02:14:45 +02:00
|
|
|
-AR=ar
|
2015-06-13 01:03:31 +02:00
|
|
|
-LDFLAGS=-pthread
|
|
|
|
-DESTDIR=/usr
|
2017-01-31 13:12:45 +01:00
|
|
|
+STRIP?=strip
|
2017-06-12 02:14:45 +02:00
|
|
|
+AR?=ar
|
2017-01-31 13:12:45 +01:00
|
|
|
+LDFLAGS?=-pthread
|
2015-06-13 01:03:31 +02:00
|
|
|
|
|
|
|
# Linux using LCC
|
2017-06-12 02:14:45 +02:00
|
|
|
#CXX=lcc
|
2022-03-27 10:06:15 +02:00
|
|
|
@@ -161,14 +161,14 @@
|
2021-05-25 21:19:09 +02:00
|
|
|
$(AR) rcs libunrar.a $(OBJECTS) $(LIB_OBJ)
|
|
|
|
|
|
|
|
install-unrar:
|
|
|
|
- install -D unrar $(DESTDIR)/bin/unrar
|
|
|
|
+ install -D unrar $(DESTDIR)$(PREFIX)/bin/unrar
|
|
|
|
|
|
|
|
uninstall-unrar:
|
|
|
|
rm -f $(DESTDIR)/bin/unrar
|
|
|
|
|
|
|
|
install-lib:
|
|
|
|
- install libunrar.so $(DESTDIR)/lib
|
|
|
|
- install libunrar.a $(DESTDIR)/lib
|
|
|
|
+ install libunrar.so $(DESTDIR)$(PREFIX)/lib
|
|
|
|
+ install libunrar.a $(DESTDIR)$(PREFIX)/lib
|
|
|
|
|
|
|
|
uninstall-lib:
|
|
|
|
rm -f $(DESTDIR)/lib/libunrar.so
|