mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
fd7636eb2a
PR: 18822 Submitted by: Mario Sergio Fujikawa Ferreira <lioux@uol.com.br>
47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
--- libdib/Makefile.in.orig Tue Jul 13 10:14:28 1999
|
|
+++ libdib/Makefile.in Fri May 26 01:36:43 2000
|
|
@@ -28,25 +28,32 @@
|
|
|
|
SHELL = /bin/sh
|
|
|
|
-.SUFFIXES: .C .o
|
|
+.SUFFIXES: .c .o .so
|
|
|
|
MYOBJECTS = \
|
|
bytelevel.o \
|
|
bintree.o \
|
|
dibtoxpm.o
|
|
|
|
-all: libdib.a test_dibtoxpm
|
|
+all: libdib.a libdib.so.0 test_dibtoxpm
|
|
|
|
libdib.a: $(MYOBJECTS)
|
|
$(AR) rc libdib.a $(MYOBJECTS)
|
|
$(RANLIB) libdib.a
|
|
|
|
+libdib.so.0: $(MYOBJECTS:S/o$/so/g)
|
|
+ $(CC) -shared -Wl,-x -Wl,-assert -Wl,pure-text -Wl,-soname,$@ -o $@ $(MYOBJECTS:S/o$/so/g) $(LIBS)
|
|
+ ln -sf libdib.so.0 libdib.so
|
|
+
|
|
test_dibtoxpm: libdib.a test_dibtoxpm.o
|
|
$(CC) $(LDFLAGS) -o test_dibtoxpm test_dibtoxpm.o -ldib
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $*.c
|
|
|
|
+.c.so:
|
|
+ $(CC) -fpic -DPIC $(CFLAGS) -c $(.IMPSRC) -o $(.TARGET)
|
|
+
|
|
clean:
|
|
rm -rf *.o *.a test_dibtoxpm a.out core
|
|
|
|
@@ -60,6 +67,8 @@
|
|
install: all installdirs
|
|
$(INSTALL_DATA) dibtoxpm.h $(INCLUDEDIR)/dibtoxpm.h
|
|
$(INSTALL_DATA) libdib.a @libdir@/libdib.a
|
|
+ $(INSTALL_DATA) libdib.so.0 @libdir@/libdib.so.0
|
|
+ ln -sf libdib.so.0 @libdir@/libdib.so
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|