library: added dp_*{h,cc} files as libbarrydp library ('.debug' parser)
[barry.git] / src / Makefile.am
blob823102fd259282fc503a2a0db84e40e0a67882ff
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:16: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)
62 # libbarry - main USB protocol interface library
63 # libbarrydp - '.debug' parser library
65 lib_LTLIBRARIES = libbarry.la libbarrydp.la
67 include_barry_HEADERS = barry.h \
68         dll.h \
69         builder.h \
70         common.h \
71         controller.h \
72         m_mode_base.h \
73         m_desktop.h \
74         m_desktoptmpl.h \
75         m_ipmodem.h \
76         m_serial.h \
77         m_javaloader.h \
78         m_jvmdebug.h \
79         data.h \
80         error.h \
81         ldif.h \
82         log.h \
83         parser.h \
84         probe.h \
85         protocol.h \
86         record.h \
87         modem.h \
88         r_recur_base.h \
89         r_calendar.h \
90         r_calllog.h \
91         r_contact.h \
92         r_folder.h \
93         r_memo.h \
94         r_message_base.h \
95         r_message.h \
96         r_pin_message.h \
97         r_saved_message.h \
98         r_servicebook.h \
99         r_sms.h \
100         r_task.h \
101         r_timezone.h \
102         dataqueue.h \
103         router.h \
104         socket.h \
105         time.h \
106         threadwrap.h \
107         usbwrap.h \
108         version.h \
109         pppfilter.h \
110         sha1.h \
111         iconv.h \
112         cod.h \
113         bmp.h \
114         s11n-boost.h \
115         dp_codinfo.h
117 noinst_HEADERS = cbarry.h \
118         base64.h \
119         record-internal.h \
120         bmp-internal.h \
121         cod-internal.h \
122         packet.h \
123         scoped_lock.h \
124         protostructs.h \
125         debug.h \
126         endian.h \
127         strnlen.h \
128         dp_parser.h
130 EXTRA_DIST = convo.awk \
131         legal.txt
133 libbarry_la_SOURCES = time.cc \
134         base64.cc \
135         bmp.cc \
136         cod.cc \
137         data.cc \
138         usbwrap.cc \
139         probe.cc \
140         common.cc \
141         error.cc \
142         ldif.cc \
143         log.cc \
144         socket.cc \
145         router.cc \
146         dataqueue.cc \
147         threadwrap.cc \
148         protocol.cc \
149         record.cc \
150         r_recur_base.cc \
151         r_calendar.cc \
152         r_calllog.cc \
153         r_contact.cc \
154         r_folder.cc \
155         r_memo.cc \
156         r_message_base.cc \
157         r_servicebook.cc \
158         r_sms.cc \
159         r_task.cc \
160         r_timezone.cc \
161         packet.cc \
162         controller.cc \
163         m_mode_base.cc \
164         m_desktop.cc \
165         m_ipmodem.cc \
166         m_serial.cc \
167         m_javaloader.cc \
168         m_jvmdebug.cc \
169         version.cc \
170         pppfilter.cc \
171         sha1.cc \
172         iconv.cc
173 #libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(OPENSSL_LIBS)
174 libbarry_la_LIBADD = $(LTLIBOBJS) $(LIBUSB_LIBS) $(ZLIB_LIBS) @LTLIBICONV@
175 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
177 libbarrydp_la_SOURCES = \
178         dp_parser.cc \
179         dp_codinfo.cc
180 libbarrydp_la_LIBADD = libbarry.la
181 libbarrydp_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
183 ##if DO_TEST
184 ##      bin_PROGRAMS += test-base64 test-data test-time
186 ##      test_base64_SOURCES = base64.h base64.cc
187 ##      test_data_SOURCES = data.h data.cc
188 ##      test_time_SOURCES = time.h time.cc
189 ##endif