mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
34 lines
751 B
Plaintext
34 lines
751 B
Plaintext
--- uulib/Makefile.in.orig Mon Oct 14 15:19:18 1996
|
|
+++ uulib/Makefile.in Fri Sep 25 14:49:15 1998
|
|
@@ -50,7 +50,7 @@
|
|
#
|
|
|
|
.SUFFIXES:
|
|
-.SUFFIXES: .c .o
|
|
+.SUFFIXES: .c .o .so
|
|
|
|
all: libuu.a
|
|
|
|
@@ -73,8 +73,21 @@
|
|
ar r $@ $(UULIB_OBJ)
|
|
-$(RANLIB) $@
|
|
|
|
+SOBJS= $(UULIB_OBJ:.o=.so)
|
|
+libuu.so.1.0: $(SOBJS)
|
|
+ rm -f $(.TARGET)
|
|
+ ld -Bshareable -x -o libuu.so.1.0 `lorder $(SOBJS) | tsort -q`
|
|
+
|
|
+libuu.so.1: $(SOBJS)
|
|
+ rm -f $(.TARGET)
|
|
+ ld -shared -x -soname libuu.so.1 -o libuu.so.1 $(SOBJS)
|
|
+
|
|
+.c.so:
|
|
+ $(CC) -fpic -DPIC -c -o $(.TARGET) $(CFLAGS) $(VDEF) $(.IMPSRC)
|
|
+
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $(VDEF) $<
|
|
+
|
|
|
|
uuencode.o: uuencode.c uudeview.h uuint.h uustring.h fptools.h config.h
|
|
uulib.o: uulib.c uudeview.h uuint.h uustring.h fptools.h config.h
|