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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
--- Makefile.in.orig Fri Jul 9 14:24:13 1999
+++ Makefile.in Fri Mar 31 02:31:17 2000
@@ -32,19 +32,20 @@
#
CDKLIB = libcdk.a
+CDKSLIB = libcdk.so.1
VERSION = 4.9.9
CFLAGS = -Iinclude @CFLAGS@ @DEFS@
CC = @CC@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
RANLIB = @RANLIB@
-INSTALL = @INSTALL@
+INSTALL = @INSTALL_DATA@
INSTALL_DIR = @prefix@
INCLUDE_DIR = $(INSTALL_DIR)/include/cdk
LIB_DIR = $(INSTALL_DIR)/lib
MAN_DIR = $(INSTALL_DIR)/man/man3
-default:: cdklib
+default:: cdklib cdkslib
#
# Create the file lists.
@@ -71,6 +72,7 @@
cdk_template.3 cdk_viewer.3
CDKREADME = BUGS EXPANDING NOTES TODO COPYING INSTALL README
CDKOBJS = $(CDKSRC:.c=.o)
+CDKSOBJS = $(CDKSRC:.c=.so)
#
# Standard library directive.
@@ -79,6 +81,9 @@
$(AR) -cr $(CDKLIB) $(CDKOBJS)
$(RANLIB) $(CDKLIB)
+cdkslib $(CDKSLIB): $(CDKSOBJS)
+ $(CC) -shared -Wl,-x -Wl,-soname,$(CDKSLIB) -o $(CDKSLIB) $(CDKSOBJS)
+
#
# Make the examples directory.
#
@@ -94,7 +99,7 @@
#
# This installs all of the CDK library release.
#
-install:: installCDKHeaderFiles installCDKReadme installCDKLibrary installCDKManPages
+install:: installCDKHeaderFiles installCDKLibrary installCDKManPages
#
# This installs the header files.
@@ -129,6 +134,9 @@
fi
@echo " $(INSTALL) $(CDKLIB) $(LIB_DIR)"
@$(INSTALL) $(CDKLIB) $(LIB_DIR)
+ @echo " $(INSTALL) $(CDKSLIB) $(LIB_DIR)"
+ @$(INSTALL) $(CDKSLIB) $(LIB_DIR)
+ ln -sf $(CDKSLIB) $(LIB_DIR)/libcdk.so
#
# This installs the CDK man pages.
@@ -165,8 +173,10 @@
#
# Standard .c to .o compile line.
#
-.c.o:
- $(CC) $(CFLAGS) -c $<
+.SUFFIXES: .c .so .o
+
+.c.so:
+ $(CC) $(CFLAGS) -fpic -DPIC -o $@ -c $<
#
# Set up our PHONY tags.
|