summaryrefslogtreecommitdiff
path: root/unrar/Makefile
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2024-01-19 18:48:41 +0100
committerTomas Bzatek <tbzatek@redhat.com>2024-01-19 18:48:41 +0100
commit328f212a3880ee595ff4278200a526937a8a64e0 (patch)
tree8587af7f123dbdcc6c7ea24285f976e53f5db9ef /unrar/Makefile
parent9d1ee3294040a5befb7d16cbbd6f1e8c781f6353 (diff)
downloadtuxcmd-modules-328f212a3880ee595ff4278200a526937a8a64e0.tar.xz
unrar: Use the new common logging macros
Diffstat (limited to 'unrar/Makefile')
-rw-r--r--unrar/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/unrar/Makefile b/unrar/Makefile
index 77d5f17..5286737 100644
--- a/unrar/Makefile
+++ b/unrar/Makefile
@@ -10,7 +10,7 @@ CPP = g++
CFLAGS = -I. \
-Wall -Wtype-limits -fPIC -O2 -g -ggdb \
-DG_DISABLE_DEPRECATED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE \
- -D__VERBOSE_DEBUGx
+ -D__DEBUG_INTERNALx -D_LOG_DOMAIN="unrar"
LIB_SUFFIX = `if test \`uname -m\` = x86_64 -o \`uname -m\` = ppc64; then echo 64; fi`
@@ -34,7 +34,7 @@ UNRAR_OBJECTS = $(DIR_UNRAR)/rar.o $(DIR_UNRAR)/strlist.o $(DIR_UNRAR)/strfn.o \
$(DIR_UNRAR)/threadpool.o $(DIR_UNRAR)/rs16.o $(DIR_UNRAR)/cmddata.o \
$(DIR_UNRAR)/ui.o
-VFS_COMMON_OBJECTS = filelist.o filelist-vfs-intf.o strutils.o vfsutils.o
+VFS_COMMON_OBJECTS = filelist.o filelist-vfs-intf.o strutils.o vfsutils.o logutils.o
VFS_OBJECTS = unrar.o
@@ -48,7 +48,7 @@ VFS_OBJECTS = unrar.o
all: shared
-shared: CFLAGS += -DMODULE_SHARED -I/usr/include/libunrar6
+shared: CFLAGS += -DMODULE_SHARED -I/usr/include/libunrar -I/usr/include/libunrar6
shared: $(VFS_COMMON_OBJECTS) $(VFS_OBJECTS)
$(CPP) -shared -o libunrar_plugin.so $(VFS_COMMON_OBJECTS) $(VFS_OBJECTS) $(CFLAGS) `pkg-config glib-2.0 gio-2.0 --libs` -lunrar
@@ -63,6 +63,7 @@ filelist.o: filelist.h filelist.c
filelist-vfs-intf.o: filelist-vfs-intf.h filelist-vfs-intf.c
strutils.o: strutils.h strutils.c
vfsutils.o: vfsutils.h vfsutils.c
+logutils.o: logutils.h logutils.c
install::
$(INSTALL) ./libunrar_plugin.so $(DESTDIR)/lib$(LIB_SUFFIX)/tuxcmd/