Skip to content

Commit

Permalink
Allow for library suffixes
Browse files Browse the repository at this point in the history
Linux installations like Slackware64 use the lib64 prefix to
distinguish 64-bit libraries from 32-bit installations. We
should enable support for this in the Makefile through config.Mk.

Unfortunately, this does not make things perfect, since there are
some scripts that assume we use lib instead of lib${LIBSUFFIX} and
we need to have some way of handling that.
  • Loading branch information
arcfide committed Jan 21, 2012
1 parent cd5110b commit 23a466c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -3,6 +3,7 @@ INSTDIR=${DESTDIR}${PREFIX}
CPPFLAGS += -D${FSH}

all:
mkdir -p bin
cp script/* bin/
@${MAKE} -C src

Expand All @@ -19,7 +20,7 @@ clean:

install.dirs:
mkdir -p ${INSTDIR}/bin
mkdir -p ${INSTDIR}/lib
mkdir -p ${INSTDIR}/lib${LIBSUFFIX}
mkdir -p ${INSTDIR}/share
# mkdir -p ${INSTDIR}/etc

Expand Down Expand Up @@ -52,8 +53,8 @@ install.xm: install.dirs
#endif

install.lib: install.dirs
cp -P lib/libmotifmm.so* ${INSTDIR}/lib/
cp -P lib/libopencde.so* ${INSTDIR}/lib/
cp -P lib/libmotifmm.so* ${INSTDIR}/lib${LIBSUFFIX}/
cp -P lib/libopencde.so* ${INSTDIR}/lib${LIBSUFFIX}/

uninstall:
rm -r -f ${INSTDIR}/share/opencde
Expand Down
1 change: 1 addition & 0 deletions config.Mk
Expand Up @@ -3,6 +3,7 @@ PLATFORM=FREEBSD
#FSH values: FSH ""
FSH=""
PREFIX=/usr/local
LIBSUFFIX=

INST=install -c
CC=gcc
Expand Down

0 comments on commit 23a466c

Please sign in to comment.