- fixed compile error on g++ 3.3 systems (missing stdint.h in probe.h)
[barry.git] / src / Makefile.am
blob2d0fe73d94df716261bb60acfbe02b7fca447c6a
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:5: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 = -I@LIBUSB_INC_PATH@
33 AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
34 include_barrydir = ${includedir}/barry
37 ## Boost library usage - required for serialization support, but optional
39 #BOOSTFLAG = -D__BARRY_BOOST_MODE__ -I../../../../boost/rootdir/include/boost-1_33_1
40 #LDBOOST = ../../../../boost/rootdir/lib/libboost_serialization-gcc-mt-1_33_1.a
41 ##BOOSTFLAG =
42 ##LDBOOST =
44 # Heavy duty C++ warnings
45 #WARNFLAGS = -ansi -pedantic -Wall -W -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long
46 #WARNFLAGS = -ansi -pedantic -Wall -W -Weffc++ -Woverloaded-virtual -Wold-style-cast -Wfloat-equal -Wwrite-strings -Wno-long-long -Werror
48 #LDFLAGS = ../../external/rootdir/libusb/lib/libusb.a $(LDBOOST) -lpthread $(LDDEBUG)
50 lib_LTLIBRARIES = libbarry.la
52 include_barry_HEADERS = barry.h \
53         builder.h \
54         common.h \
55         controller.h \
56         controllertmpl.h \
57         data.h \
58         error.h \
59         parser.h \
60         probe.h \
61         protocol.h \
62         record.h \
63         socket.h \
64         usbwrap.h \
65         time.h \
66         s11n-boost.h
69 libbarry_la_SOURCES = time.cc \
70         base64.cc base64.h \
71         parser.cc \
72         data.cc \
73         usbwrap.cc \
74         probe.cc \
75         common.cc \
76         error.cc \
77         socket.cc \
78         protocol.cc \
79         record.cc \
80         packet.cc packet.h \
81         controller.cc \
82         protostructs.h \
83         debug.h \
84         endian.h
85 libbarry_la_LIBADD = @LIBUSB_LIB_PATH@/libusb.la
86 libbarry_la_LDFLAGS = -version-info ${LIB_BARRY_VERSION}
88 ##if DO_TEST
89 ##      bin_PROGRAMS += test-base64 test-data test-time
91 ##      test_base64_SOURCES = base64.h base64.cc
92 ##      test_data_SOURCES = data.h data.cc
93 ##      test_time_SOURCES = time.h time.cc
94 ##endif