blob: c141a4b2b6dc384626d6ebe0675d05fcd8aaf673 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
--- libxfig/Makefile.in.orig Tue Jul 13 22:16:20 1999
+++ libxfig/Makefile.in Tue May 30 19:22:25 2000
@@ -28,21 +28,25 @@
SHELL = /bin/sh
-.SUFFIXES: .C .o
+.SUFFIXES: .c .o .so
MYOBJECTS = \
color.o \
objlist.o \
fileops.o
-all: libxfig.a
+all: libxfig.a libxfig.so.1
libxfig.a: $(MYOBJECTS)
$(AR) rc libxfig.a $(MYOBJECTS)
$(RANLIB) libxfig.a
-%.o: %.c
- $(CC) $(CFLAGS) -c $*.c
+libxfig.so.1: $(MYOBJECTS:.o=.so)
+ $(CC) -shared -Wl,-soname,$@ -o $@ $(MYOBJECTS:.o=.so) $(LIBS)
+ ln -sf libxfig.so.1 libxfig.so
+
+.c.so:
+ $(CC) $(CFLAGS) -fPIC -DPIC -o $@ -c $<
clean:
rm -rf *.o *.a core
@@ -52,6 +56,8 @@
install: all installdirs
$(INSTALL_DATA) libxfig.a @libdir@/libxfig.a
+ $(INSTALL_DATA) libxfig.so.1 @libdir@/libxfig.so.1
+ ln -sf libxfig.so.1 @libdir@/libxfig.so
installdirs:
$(MKINSTALLDIRS) @libdir@ \
|