$NetBSD: patch-aa,v 1.4 2007/12/29 20:32:37 joerg Exp $ --- Makefile.in.orig 1999-07-09 05:24:13.000000000 +0000 +++ Makefile.in @@ -31,18 +31,21 @@ # SUCH DAMAGE. # -CDKLIB = libcdk.a +CDKLIB = libcdk.la VERSION = 4.9.9 -CFLAGS = -Iinclude @CFLAGS@ @DEFS@ -CC = @CC@ +SHLIB_MAJOR = 4 +SHLIB_MINOR = 10 +CFLAGS = -Iinclude @CFLAGS@ @DEFS@ @CPPFLAGS@ +CC = ${LIBTOOL} --mode=compile @CC@ LDFLAGS = @LDFLAGS@ LIBS = @LIBS@ RANLIB = @RANLIB@ -INSTALL = @INSTALL@ +INSTALL = ${BSD_INSTALL_DATA} INSTALL_DIR = @prefix@ INCLUDE_DIR = $(INSTALL_DIR)/include/cdk LIB_DIR = $(INSTALL_DIR)/lib MAN_DIR = $(INSTALL_DIR)/man/man3 +DOC_DIR = $(INSTALL_DIR)/share/doc/cdk default:: cdklib @@ -76,8 +79,8 @@ CDKOBJS = $(CDKSRC:.c=.o) # Standard library directive. # cdklib $(CDKLIB): $(CDKOBJS) - $(AR) -cr $(CDKLIB) $(CDKOBJS) - $(RANLIB) $(CDKLIB) + ${LIBTOOL} --mode=link @CC@ -o ${CDKLIB} ${CDKOBJS:.o=.lo} \ + -rpath ${LIB_DIR} -version-info ${SHLIB_MAJOR}:${SHLIB_MINOR} -lm # # Make the examples directory. @@ -114,9 +117,12 @@ installCDKHeaderFiles:: # installCDKReadme:: @echo "Installing CDK Readme files..." + @if [ ! -d $(DOC_DIR) ]; then \ + mkdir -p $(DOC_DIR); \ + fi @for i in $(CDKREADME); do \ - echo " $(INSTALL) $$i $(INCLUDE_DIR)"; \ - $(INSTALL) $$i $(INCLUDE_DIR); \ + echo " $(INSTALL) $$i $(DOC_DIR)"; \ + $(INSTALL) $$i $(DOC_DIR); \ done # @@ -127,8 +133,8 @@ installCDKLibrary:: @if [ ! -d $(LIB_DIR) ]; then \ mkdir $(LIB_DIR); \ fi - @echo " $(INSTALL) $(CDKLIB) $(LIB_DIR)" - @$(INSTALL) $(CDKLIB) $(LIB_DIR) + @echo " ${LIBTOOL} --mode=install $(INSTALL) $(CDKLIB) $(LIB_DIR)" + @${LIBTOOL} --mode=install $(INSTALL) $(CDKLIB) $(LIB_DIR) # # This installs the CDK man pages.