removed: old PBX definition

added: rpath option to link against development lib in non standard dirs
This commit is contained in:
Jrg Habenicht 2007-10-03 18:25:20 +02:00
parent 8911376d59
commit ba93d3abf0
1 changed files with 14 additions and 4 deletions

View File

@ -1,7 +1,12 @@
## Makefile.am -- Process this file with automake to produce Makefile.in
INSTALLATION_DEFINES = -DCONFIG_DATA="\"$(pkgsysconfdir)\"" -DSHARE_DATA="\"$(pkgdatadir)\"" -DLOG_DIR="\"$(pkglogdir)\"" -DPBX -DINSTALL_DATA="\"$(pkgdatadir)\""
INSTALLATION_DEFINES = \
-DCONFIG_DATA="\"$(pkgsysconfdir)\"" \
-DSHARE_DATA="\"$(pkgdatadir)\"" \
-DLOG_DIR="\"$(pkglogdir)\"" \
-DINSTALL_DATA="\"$(pkgdatadir)\""
# FIXME: find a macro for the include path of linux
# or is /lib/modules/$(uname -r)/source/include sufficient?
# Do we take /usr/src/linux or /usr/src/linux-$(uname -r)
@ -10,6 +15,11 @@ INSTALLATION_DEFINES = -DCONFIG_DATA="\"$(pkgsysconfdir)\"" -DSHARE_DATA="\"$(pk
INCLUDES = $(all_includes) $(INSTALLATION_DEFINES)
# add nonstandard lib installation paths to this
MISDN_LIB_INSTALL_PATH=$(misdnuser_libraries)
AM_LDFLAGS = -Wl,-rpath,$(MISDN_LIB_INSTALL_PATH)
bin_PROGRAMS = lcradmin gentones genwave #lcrwatch
sbin_PROGRAMS = lcr genrc genextension
@ -109,13 +119,13 @@ LINK=$(CXXLINK)
pkglogdir=$(localstatedir)/log/@PACKAGE@
# install runtime config in $prefix/etc/pbx4linux/ (e.g. /etc/pbx4linux)
# and voice data in $prefix/share/pbx4linux/ (e.g. /usr/share/pbx4linux)
# install runtime config in $prefix/etc/lcr/ (e.g. /etc/lcr)
# and voice data in $prefix/share/lcr/ (e.g. /usr/share/lcr)
pkgsysconfdir=$(sysconfdir)/@PACKAGE@
dist_pkgsysconf_DATA = $(config_default)
# install all voice data files along with their directory structure
# into $prefix/share/pbx4linux
# into $prefix/share/lcr
nobase_dist_pkgdata_DATA = $(vbox_english) $(vbox_german) \
$(tones_american) $(tones_efi) $(tones_german)