From 00b5432f943788d5cf6bca2d4f55b2b8f410a3a1 Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Tue, 28 Apr 2009 20:37:42 -0400 Subject: [PATCH] changed names, linking, and installing --- Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index fb2ae17..f41cb7d 100644 --- a/Makefile +++ b/Makefile @@ -31,8 +31,8 @@ include ${SRCSDIR}${DIRMK} WORKINGDIR := bind/ LINKERNAME := libpg.so -SONAME := libpg.so.1 -REALNAME := libpg.so.1.0 +SONAME := libpg.so.0 +REALNAME := libpg.so.0.0 TARGETTMP := ${OBJSDIR}${REALNAME} TARGET := ${WORKINGDIR}${REALNAME} @@ -68,11 +68,15 @@ all: ${TARGET} install: mkdir -p /usr/include/pg/ cp inc/* /usr/include/pg/ - cp bind/libpg.so /usr/lib/ + cp -d ${WORKINGDIR}${REALNAME} /usr/lib/ + cp -d ${WORKINGDIR}${LINKERNAME} /usr/lib/ + cp -d ${WORKINGDIR}${SONAME} /usr/lib/ uninstall: rm -rf /usr/include/pg - rm /usr/lib/libpg.so + rm /usr/lib/${REALNAME} + rm /usr/lib/${LINKERNAME} + rm /usr/lib/${SONAME} # cause the fancy $$ directory rules to work out .SECONDEXPANSION: @@ -86,6 +90,8 @@ ${TARGETTMP}: ${OBJS} ${TARGET}: ${TARGETTMP} | ${WORKINGDIR} ${Q1}${PRNTFMT} "cp" "$@" ${Q2}cp $< $@ + ${Q2}ln -s ${REALNAME} ${WORKINGDIR}/${LINKERNAME} + ${Q2}ln -s ${REALNAME} ${WORKINGDIR}/${SONAME} # how to make a directory ${BLDDIRS}: -- 2.10.2