Updating text, names and comments to be consistent and generally make a bit more...
[barry.git] / src / Makefile.am
blob0e87dd690b30223f51ca1c609de05d2c5c1ad9e4
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:17: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 INCLUDES = $(LIBUSB_CFLAGS)
34 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__DEBUG_MODE__
35 AM_CFLAGS = -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
36 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g -D__BARRY_LIBRARY_BUILD__
37 AM_LDFLAGS =
38 if WITH_GCCVISIBILITY
39 AM_CFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
40 #AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden -fvisibility-inlines-hidden
41 AM_CXXFLAGS += -D__BARRY_HAVE_GCCVISIBILITY__ -fvisibility=hidden
42 #AM_LDFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden
43 AM_LDFLAGS += -fvisibility=hidden
44 endif
45 include_barrydir = ${includedir}/barry
48 ## Boost library usage - required for serialization support, but optional
50 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
51 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
52 ##BOOSTFLAG =
53 ##LDBOOST =
55 # Heavy duty C++ warnings
56 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
57 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
59 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
61 # To use gettext
62 datadir = @datadir@
63 localedir = $(datadir)/locale
64 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
67 # libbarry - main USB protocol interface library
68 # libbarrydp - '.debug' parser library
69 # libbarryjdwp - java debug server library
70 # libbarrysync - utility functions and classes for syncing and vformats
72 lib_LTLIBRARIES = libbarry.la libbarrydp.la libbarryjdwp.la
73 if WITH_SYNC
74 lib_LTLIBRARIES += libbarrysync.la
75 endif
77 include_barry_HEADERS = barry.h barrysync.h \
78         dll.h \
79         builder.h \
80         common.h \
81         configfile.h \
82         controller.h \
83         m_mode_base.h \
84         m_desktop.h \
85         m_raw_channel.h \
86         m_desktoptmpl.h \
87         m_ipmodem.h \
88         m_serial.h \
89         m_javaloader.h \
90         m_jvmdebug.h \
91         data.h \
92         error.h \
93         ldif.h \
94         log.h \
95         parser.h \
96         pin.h \
97         probe.h \
98         protocol.h \
99         record.h \
100         modem.h \
101         r_recur_base.h \
102         r_calendar.h \
103         r_calllog.h \
104         r_contact.h \
105         r_folder.h \
106         r_memo.h \
107         r_message_base.h \
108         r_message.h \
109         r_pin_message.h \
110         r_saved_message.h \
111         r_servicebook.h \
112         r_sms.h \
113         r_task.h \
114         r_timezone.h \
115         dataqueue.h \
116         router.h \
117         socket.h \
118         time.h \
119         threadwrap.h \
120         vsmartptr.h \
121         usbwrap.h \
122         version.h \
123         pppfilter.h \
124         sha1.h \
125         iconv.h \
126         cod.h \
127         bmp.h \
128         s11n-boost.h \
129         dp_codinfo.h \
130         j_manager.h \
131         j_server.h \
132         vformat.h \
133         vbase.h \
134         vcard.h \
135         vevent.h \
136         vjournal.h \
137         vtodo.h \
138         tzwrapper.h
140 noinst_HEADERS = cbarry.h \
141         base64.h \
142         record-internal.h \
143         bmp-internal.h \
144         cod-internal.h \
145         packet.h \
146         scoped_lock.h \
147         protostructs.h \
148         debug.h \
149         endian.h \
150         strnlen.h \
151         dp_parser.h \
152         j_message.h \
153         j_jdwp.h \
154         clog.h
156 EXTRA_DIST = convo.awk \
157         legal.txt
159 libbarry_la_SOURCES = dll.h \
160         builder.h parser.h \
161         time.h time.cc \
162         base64.h base64.cc \
163         bmp.h bmp-internal.h bmp.cc \
164         cod.h cod-internal.h cod.cc \
165         data.h data.cc \
166         usbwrap.h usbwrap.cc \
167         pin.h pin.cc \
168         probe.h probe.cc \
169         common.h common.cc \
170         configfile.h configfile.cc \
171         error.h error.cc \
172         ldif.h ldif.cc \
173         log.h log.cc \
174         socket.cc \
175         router.cc \
176         dataqueue.cc \
177         threadwrap.cc \
178         protocol.h protostructs.h protocol.cc \
179         record.h record-internal.h record.cc \
180         r_recur_base.h r_recur_base.cc \
181         r_calendar.h r_calendar.cc \
182         r_calllog.h r_calllog.cc \
183         r_command.cc \
184         r_contact.h r_contact.cc \
185         r_dbdb.cc \
186         r_folder.h r_folder.cc \
187         r_memo.h r_memo.cc \
188         r_message_base.h r_message_base.cc \
189         r_recordstate.cc \
190         r_servicebook.h r_servicebook.cc \
191         r_sms.h r_sms.cc \
192         r_task.h r_task.cc \
193         r_timezone.h r_timezone.cc \
194         packet.h packet.cc \
195         controller.h controller.cc \
196         m_mode_base.h m_mode_base.cc \
197         m_desktop.h m_desktop.cc \
198         m_raw_channel.h m_raw_channel.cc \
199         m_ipmodem.h m_ipmodem.cc \
200         m_serial.h m_serial.cc \
201         m_javaloader.h m_javaloader.cc \
202         m_jvmdebug.h m_jvmdebug.cc \
203         version.h version.cc \
204         pppfilter.h pppfilter.cc \
205         sha1.h sha1.cc \
206         iconv.h iconv.cc
207 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
208 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
209 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
211 libbarrydp_la_SOURCES = \
212         dp_parser.h dp_parser.cc \
213         dp_codinfo.h dp_codinfo.cc
214 libbarrydp_la_LIBADD = libbarry.la
215 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
217 libbarryjdwp_la_SOURCES = \
218         j_record.cc \
219         j_jdwp.h j_jdwp.cc \
220         j_message.h j_message.cc \
221         j_server.h j_server.cc \
222         j_manager.h j_manager.cc
223 libbarryjdwp_la_LIBADD = libbarry.la libbarrydp.la $(LIBUSB_LIBS)
224 libbarryjdwp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
226 if WITH_SYNC
227 libbarrysync_la_SOURCES = \
228         vformat.h vformat.c \
229         vbase.h vbase.cc \
230         vcard.h vcard.cc \
231         vevent.h vevent.cc \
232         vjournal.h vjournal.cc \
233         vtodo.h vtodo.cc \
234         tzwrapper.h tzwrapper.cc
235 libbarrysync_la_CFLAGS = $(GLIB2_CFLAGS)
236 libbarrysync_la_CXXFLAGS = $(GLIB2_CFLAGS)
237 libbarrysync_la_LIBADD = libbarry.la $(GLIB2_LIBS)
238 libbarrysync_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
239 endif
241 ##if DO_TEST
242 ##      bin_PROGRAMS += test-base64 test-data test-time
244 ##      test_base64_SOURCES = base64.h base64.cc
245 ##      test_data_SOURCES = data.h data.cc
246 ##      test_time_SOURCES = time.h time.cc
247 ##endif