From: Patrik Gornicz Date: Wed, 29 Apr 2009 00:37:42 +0000 (-0400) Subject: changed names, linking, and installing X-Git-Tag: libbear-premerge~99 X-Git-Url: http://gitweb.pgornicz.com/?a=commitdiff_plain;h=00b5432f943788d5cf6bca2d4f55b2b8f410a3a1;p=libbear.git changed names, linking, and installing --- 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}: