45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
--- makefile.unix.orig 2008-10-09 15:43:06.000000000 +0200
|
|
+++ makefile.unix 2008-11-06 01:43:52.000000000 +0100
|
|
@@ -7,10 +7,11 @@
|
|
|
|
# Linux using GCC
|
|
#CXX=g++
|
|
-#CXXFLAGS=-O2
|
|
-DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
|
|
+CXXFLAGS=$(CFLAGS) -fPIC -DPIC
|
|
+DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DGUI -DSILENT
|
|
STRIP=strip
|
|
DESTDIR=/usr
|
|
+RANLIB=ranlib
|
|
|
|
# Linux using LCC
|
|
#CXX=lcc
|
|
@@ -100,7 +101,7 @@
|
|
WHAT=UNRAR
|
|
|
|
UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o
|
|
-LIB_OBJ=filestr.o scantree.o dll.o
|
|
+LIB_OBJ=dll.o
|
|
|
|
OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savepos.o global.o file.o filefn.o filcreat.o \
|
|
archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
|
|
@@ -131,9 +132,15 @@
|
|
$(STRIP) default.sfx
|
|
|
|
lib: WHAT=RARDLL
|
|
-lib: $(OBJECTS) $(LIB_OBJ)
|
|
- @rm -f libunrar.so
|
|
- $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)
|
|
+lib: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
|
|
+ @rm -f libunrar.so.3
|
|
+ $(LINK) -shared -o libunrar.so.3 $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
|
|
+
|
|
+liba: WHAT=RARDLL
|
|
+liba: $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
|
|
+ @rm -f libunrar.a
|
|
+ $(AR) rc libunrar.a $(OBJECTS) $(LIB_OBJ) $(UNRAR_OBJ)
|
|
+ $(RANLIB) libunrar.a
|
|
|
|
install-unrar:
|
|
install unrar $(DESTDIR)/bin
|