8b651ffa5f
Drop static lib while here.
38 lines
844 B
Text
38 lines
844 B
Text
--- 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)
|