summaryrefslogtreecommitdiff
path: root/archivers/libarc/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/libarc/files/patch-Makefile')
-rw-r--r--archivers/libarc/files/patch-Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/archivers/libarc/files/patch-Makefile b/archivers/libarc/files/patch-Makefile
new file mode 100644
index 000000000000..6601419ad2df
--- /dev/null
+++ b/archivers/libarc/files/patch-Makefile
@@ -0,0 +1,38 @@
+--- Makefile Tue Jun 13 07:21:19 2000
++++ Makefile Tue Jun 20 17:44:24 2000
+@@ -14,20 +15,30 @@
+ url_hqxdecode.o url_qsdecode.o url_news.o url_newsgroup.o url_cgiesc.o \
+ arc_mime.o
+
++SOOBJS = $(OBJS:S/.o/.so/g)
++
+ # readdir_win.o (for Windows)
+
+ LIB=libarc.a
+
+-
+-all:: $(LIB)
++all:: $(LIB) $(SOLIB) arccat
+
+ $(LIB): $(OBJS)
+ $(AR) $@ $(OBJS)
+ $(RANLIB) $@
+
+-arccat: arccat.o $(LIB)
+- $(CC) -o $@ arccat.o $(LIB)
++$(SOLIB): $(SOOBJS)
++ $(CC) -shared -Wl,-soname -Wl,$@.$(SOVERSION) -o $@.$(SOVERSION) $(SOOBJS)
++ $(LN) $@.$(SOVERSION) $@
++
++arccat: arccat.o $(SOLIB)
++ $(CC) $(CFLAGS) -o $@ arccat.o -L. -larc
+
+ clean::
+- $(RM) $(LIB) *.o arccat *~ libarc/*~
++ $(RM) $(LIB) $(SOLIB).$(SOVERSION) *.o *.so arccat *~ libarc/*~
+
++
++.SUFFIXES: .so .c
++
++.c.so:
++ $(CC) $(CFLAGS) -fPIC -fpic -DPIC -c $(.IMPSRC) -o $(.TARGET)