2000-04-29 07:17:06 +00:00
|
|
|
--- Makefile.in.orig Fri Jul 9 14:24:13 1999
|
|
|
|
+++ Makefile.in Fri Mar 31 02:31:17 2000
|
|
|
|
@@ -32,19 +32,20 @@
|
1999-05-09 17:38:40 +00:00
|
|
|
#
|
|
|
|
|
2000-04-29 07:17:06 +00:00
|
|
|
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
|
1999-05-09 17:38:40 +00:00
|
|
|
|
2000-04-29 07:17:06 +00:00
|
|
|
#
|
|
|
|
# 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)
|
1999-05-09 17:38:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Standard library directive.
|
2000-04-29 07:17:06 +00:00
|
|
|
@@ -79,6 +81,9 @@
|
|
|
|
$(AR) -cr $(CDKLIB) $(CDKOBJS)
|
|
|
|
$(RANLIB) $(CDKLIB)
|
|
|
|
|
|
|
|
+cdkslib $(CDKSLIB): $(CDKSOBJS)
|
|
|
|
+ $(CC) -shared -Wl,-x -Wl,-soname,$(CDKSLIB) -o $(CDKSLIB) $(CDKSOBJS)
|
|
|
|
+
|
1999-05-09 17:38:40 +00:00
|
|
|
#
|
2000-04-29 07:17:06 +00:00
|
|
|
# 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
|
1999-05-09 17:38:40 +00:00
|
|
|
|
|
|
|
#
|
2000-04-29 07:17:06 +00:00
|
|
|
# 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
|
1999-05-09 17:38:40 +00:00
|
|
|
|
2000-04-29 07:17:06 +00:00
|
|
|
#
|
|
|
|
# This installs the CDK man pages.
|
|
|
|
@@ -165,8 +173,10 @@
|
|
|
|
#
|
|
|
|
# Standard .c to .o compile line.
|
|
|
|
#
|
|
|
|
-.c.o:
|
1999-05-09 17:38:40 +00:00
|
|
|
- $(CC) $(CFLAGS) -c $<
|
2000-04-29 07:17:06 +00:00
|
|
|
+.SUFFIXES: .c .so .o
|
1999-05-09 17:38:40 +00:00
|
|
|
+
|
2000-04-29 07:17:06 +00:00
|
|
|
+.c.so:
|
|
|
|
+ $(CC) $(CFLAGS) -fpic -DPIC -o $@ -c $<
|
|
|
|
|
|
|
|
#
|
|
|
|
# Set up our PHONY tags.
|