From 7b53ea4e203e299b5c12dda83a6eb47e81d31358 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Mon, 9 May 2005 14:15:08 +0000 Subject: [PATCH] install lean mean iolibs with short filenames and symbol lists git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7985 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2_port/serial/Makefile.am | 15 ++++++++------- libgphoto2_port/usb/Makefile.am | 17 +++++++++-------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/libgphoto2_port/serial/Makefile.am b/libgphoto2_port/serial/Makefile.am index 5ddcdbb4a..858d0d9ff 100644 --- a/libgphoto2_port/serial/Makefile.am +++ b/libgphoto2_port/serial/Makefile.am @@ -1,12 +1,13 @@ EXTRA_DIST = makefile.os2 serial.df -INCLUDES = -I$(top_srcdir)/libgphoto2_port -I$(top_srcdir)/intl +## Compile the IO library into a libtool module shared library +iolib_LTLIBRARIES = serial.la -## Compile the IO library into a shared library -iolib_LTLIBRARIES = libgphoto2_port_serial.la - -libgphoto2_port_serial_la_LDFLAGS = -module -no-undefined -avoid-version -libgphoto2_port_serial_la_LIBADD = \ +serial_la_LDFLAGS = -module -no-undefined -avoid-version \ + -export-dynamic \ + -export-symbols $(top_srcdir)/iolib.sym +serial_la_CPPFLAGS = -I$(top_srcdir)/libgphoto2_port $(INTL_CFLAGS) +serial_la_LIBADD = \ $(top_builddir)/libgphoto2_port/libgphoto2_port.la \ $(SERIAL_LIBS) -libgphoto2_port_serial_la_SOURCES = unix.c +serial_la_SOURCES = unix.c diff --git a/libgphoto2_port/usb/Makefile.am b/libgphoto2_port/usb/Makefile.am index 7406c05a7..689ebc693 100644 --- a/libgphoto2_port/usb/Makefile.am +++ b/libgphoto2_port/usb/Makefile.am @@ -1,13 +1,14 @@ EXTRA_DIST = makefile.os2 usb.df usb-os2.c -iolib_LTLIBRARIES = libgphoto2_port_usb.la +iolib_LTLIBRARIES = usb.la -libgphoto2_port_usb_la_CPPFLAGS = \ - $(AM_CPPFLAGS) $(AM_CFLAGS) \ - $(LIBUSB_CFLAGS) - -libgphoto2_port_usb_la_LDFLAGS = -module -no-undefined -avoid-version -libgphoto2_port_usb_la_LIBADD = \ +usb_la_LDFLAGS = -module -no-undefined -avoid-version \ + -export-dynamic \ + -export-symbols $(top_srcdir)/iolib.sym +usb_la_CPPFLAGS = \ + -I$(top_srcdir)/libgphoto2_port $(INTL_CFLAGS) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(LIBUSB_CFLAGS) +usb_la_LIBADD = \ $(LIBUSB_LIBS) \ $(top_builddir)/libgphoto2_port/libgphoto2_port.la -libgphoto2_port_usb_la_SOURCES = libusb.c +usb_la_SOURCES = libusb.c