# -*- Makefile-automake -*-

SUBDIRS               += %reldir%/doc

EXTRA_DIST            += %reldir%/.indent.pro
EXTRA_DIST            += %reldir%/ChangeLog
EXTRA_DIST            += %reldir%/urb-interpret
EXTRA_DIST            += %reldir%/TODO

EXTRA_DIST            += %reldir%/README.canon
camlibdoc_DATA        += %reldir%/README.canon


# "ideal" version:
# + only export the 3 symbols
# + -no-undefined, (i.e. Win32 support)
# - needs lengthy definition in every camlib's Makefile.am
# + nice short name
#   + makes renaming the exported symbols to canon_LTX_<symbol> realistic
#     without ## macros
#   + makes it possible to have the same name the module filename and
#     the camlib name returned by camera_id()

EXTRA_LTLIBRARIES     += canon.la

canon_la_SOURCES       =

canon_la_SOURCES      += %reldir%/canon.c
canon_la_SOURCES      += %reldir%/canon.h
canon_la_SOURCES      += %reldir%/library.c
canon_la_SOURCES      += %reldir%/library.h
canon_la_SOURCES      += %reldir%/serial.c
canon_la_SOURCES      += %reldir%/serial.h
canon_la_SOURCES      += %reldir%/usb.c
canon_la_SOURCES      += %reldir%/usb.h
canon_la_SOURCES      += %reldir%/crc.c
canon_la_SOURCES      += %reldir%/crc.h
canon_la_SOURCES      += %reldir%/util.c
canon_la_SOURCES      += %reldir%/util.h

canon_la_CFLAGS        = $(camlib_cflags)
canon_la_CPPFLAGS      = $(camlib_cppflags)
canon_la_DEPENDENCIES  = $(camlib_dependencies)
canon_la_LDFLAGS       = $(camlib_ldflags)
canon_la_LIBADD        = $(camlib_libadd)

canon_la_CPPFLAGS     += $(LIBEXIF_CFLAGS)
canon_la_LIBADD       += $(LIBEXIF_LIBS)
