aboutsummaryrefslogblamecommitdiff
path: root/graphics/libwmf/files/patch-ad
blob: 318de818f496286b4c3d56cb153372b921667031 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


                                                        











                            
                                        




                                      


                                                                      



                                                               


                               
       
                                               



                                               
                 


                                                           

                                                        


                                                           
--- libdib/Makefile.in.orig	Tue Jul 13 22:14:28 1999
+++ libdib/Makefile.in	Tue May 30 19:22:58 2000
@@ -28,25 +28,29 @@
 
 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.1 test_dibtoxpm
 
 libdib.a:  $(MYOBJECTS)
 	$(AR) rc libdib.a $(MYOBJECTS)
 	$(RANLIB) libdib.a 
 
+libdib.so.1:  $(MYOBJECTS:.o=.so)
+	$(CC) -shared -Wl,-soname,$@ -o $@ $(MYOBJECTS:.o=.so) $(LIBS)
+	ln -sf libdib.so.1 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) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
+       
 clean:
 	rm -rf *.o *.a test_dibtoxpm a.out core
 
@@ -60,6 +64,8 @@
 install: all installdirs
 	$(INSTALL_DATA) dibtoxpm.h $(INCLUDEDIR)/dibtoxpm.h
 	$(INSTALL_DATA) libdib.a @libdir@/libdib.a
+	$(INSTALL_DATA) libdib.so.1 @libdir@/libdib.so.1
+	ln -sf libdib.so.1 @libdir@/libdib.so
 
 
 #  DO  NOT  DELETE THIS LINE -- make depend depends on it.