Release tarball for barry-0.9
[barry.git] / src / Makefile.am
blob63ca4b841b68ac362961829086d084e6eb3f02fa
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:9:0
28 # Disable the default -I. -I$(srcdir) -I$(topdir), etc, but $(top_builddir) is
29 # needed for config.h
30 DEFAULT_INCLUDES = -I$(top_builddir)
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_folder.h \
68         r_memo.h \
69         r_message.h \
70         r_pin_message.h \
71         r_saved_message.h \
72         r_servicebook.h \
73         r_task.h \
74         socket.h \
75         time.h \
76         usbwrap.h \
77         version.h \
78         s11n-boost.h
81 libbarry_la_SOURCES = time.cc \
82         base64.cc base64.h \
83         parser.cc \
84         data.cc \
85         usbwrap.cc \
86         probe.cc \
87         common.cc \
88         error.cc \
89         ldif.cc \
90         socket.cc \
91         protocol.cc \
92         record.cc \
93         r_calendar.cc \
94         r_contact.cc \
95         r_folder.cc \
96         r_memo.cc \
97         r_message.cc \
98         r_pin_message.cc \
99         r_saved_message.cc \
100         r_servicebook.cc \
101         r_task.cc \
102         packet.cc packet.h \
103         controller.cc \
104         version.cc \
105         protostructs.h \
106         debug.h \
107         endian.h
108 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
109 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
111 noinst_HEADERS = cbarry.h \
112         record-internal.h \
113         strnlen.h
115 EXTRA_DIST = convo.awk \
116         Doxyfile \
117         legal.txt \
118         Makefile.orig
120 ##if DO_TEST
121 ##      bin_PROGRAMS += test-base64 test-data test-time
123 ##      test_base64_SOURCES = base64.h base64.cc
124 ##      test_data_SOURCES = data.h data.cc
125 ##      test_time_SOURCES = time.h time.cc
126 ##endif