1 ## Process this file with automake to produce Makefile.in
3 ## Specify some includes and versioning
5 AM_CPPFLAGS = -I@srcdir@ $(VERSION_FLAGS)
7 VERSION_FLAGS = -DLIBGPPORT_VERSION=\"@LIBGPPORT_VERSION@\" -DHAVE_TERMIOS_H
10 bin_SCRIPTS = gphoto2-port-config
12 # Note: @subdirs@ lists all the directories from AC_CONFIG_SUBDIRS()
13 SUBDIRS = po libgphoto2_port test @IOLIB_SUBDIRS@ doc m4
22 gphoto2-port-config.in
24 doc_DATA = AUTHORS README NEWS
26 ACLOCAL_AMFLAGS = -I auto-m4 -I m4
28 EXTRA_DIST += libgphoto2_port.pc.in
29 pkgconfig_DATA = libgphoto2_port.pc
31 EXTRA_DIST += libgphoto2_port-uninstalled.pc.in
32 noinst_DATA = libgphoto2_port-uninstalled.pc
36 nobase_include_HEADERS = \
37 gphoto2/gphoto2-port.h \
38 gphoto2/gphoto2-port-info-list.h \
39 gphoto2/gphoto2-port-log.h \
40 gphoto2/gphoto2-port-version.h \
41 gphoto2/gphoto2-port-portability.h \
42 gphoto2/gphoto2-port-result.h
44 EXTRA_DIST += gphoto2/gphoto2-port-library.h
47 # Compatibility for header inclusions.
49 # - Old code has -I/usr/include/gphoto2
50 # #include <gphoto2-camera.h>
52 # - New code has -I/usr/include
53 # #include <gphoto2/gphoto2-camera.h>
56 rm -f $(DESTDIR)$(includedir)/gphoto2/gphoto2
57 $(INSTALL) -m 0755 -d $(DESTDIR)$(includedir)/gphoto2
58 $(LN_S) . $(DESTDIR)$(includedir)/gphoto2/gphoto2
61 rm -f $(DESTDIR)$(includedir)/gphoto2/gphoto2