- applied patch from Niels de Vos fixing debian package build dependency
[barry.git] / src / Makefile.am
blobc3170d2156574a9a8a851f26e98212e2eca2a331
2 # The following version numbers are:  current:revision:age
4 # See also: http://sources.redhat.com/autobook/autobook/autobook_91.html
6 # Current - number of the current interface of the library
7 # Revision - implementation number of most recent interface
8 # Age - number of previous additional interfaces supported by this library
10 # Libtool uses the following calculation for Linux:
12 #    major = current - age
13 #    suffix = major.age.revision
15 # Therefore a libtool version of 1.4.0 will translate to a filename of:
16 #    libbarry.so.1.0.4
18 # Other operating systems just use current.revision, most of the time,
19 # and age is only used to subtract from current.
21 # Therefore, if you are careful never to increment the major version
22 # unless there is an incompatible break, you can get away with a
23 # two digit version number, and leave age as 0, always.
25 # Only ever increment the first 2 numbers in this version:
26 LIB_BARRY_VERSION = 0:8:0
28 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, as our includes
29 # are proper anyway. :-)
30 DEFAULT_INCLUDES =
31 #INCLUDES = @PACKAGE_CXXFLAGS@ -I@LIBUSB_INC_PATH@
32 INCLUDES = $(LIBUSB_CFLAGS) $(OPENSSL_CFLAGS)
33 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
34 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
35 include_barrydir = ${includedir}/barry
38 ## Boost library usage - required for serialization support, but optional
40 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
41 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
42 ##BOOSTFLAG =
43 ##LDBOOST =
45 # Heavy duty C++ warnings
46 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
47 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
49 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
51 lib_LTLIBRARIES = libbarry.la
53 include_barry_HEADERS = barry.h \
54         builder.h \
55         common.h \
56         controller.h \
57         controllertmpl.h \
58         data.h \
59         error.h \
60         ldif.h \
61         parser.h \
62         probe.h \
63         protocol.h \
64         record.h \
65         r_calendar.h \
66         r_contact.h \
67         r_memo.h \
68         r_message.h \
69         r_pin_message.h \
70         r_servicebook.h \
71         r_task.h \
72         socket.h \
73         time.h \
74         usbwrap.h \
75         version.h \
76         s11n-boost.h
79 libbarry_la_SOURCES = time.cc \
80         base64.cc base64.h \
81         parser.cc \
82         data.cc \
83         usbwrap.cc \
84         probe.cc \
85         common.cc \
86         error.cc \
87         ldif.cc \
88         socket.cc \
89         protocol.cc \
90         record.cc \
91         r_calendar.cc \
92         r_contact.cc \
93         r_memo.cc \
94         r_message.cc \
95         r_pin_message.cc \
96         r_servicebook.cc \
97         r_task.cc \
98         packet.cc packet.h \
99         controller.cc \
100         version.cc \
101         protostructs.h \
102         debug.h \
103         endian.h
104 libbarry_la_LIBADD = $(LIBUSB_LIBS) $(OPENSSL_LIBS)
105 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
107 ##if DO_TEST
108 ##      bin_PROGRAMS += test-base64 test-data test-time
110 ##      test_base64_SOURCES = base64.h base64.cc
111 ##      test_data_SOURCES = data.h data.cc
112 ##      test_time_SOURCES = time.h time.cc
113 ##endif