Applied bjavaloader patch from Nicolas Vivien
[barry/progweb.git] / tools / Makefile.am
blobce2262f96980a8c3c9ec464965081ee6b6617d1f
1 EXTRA_DIST = Makefile.plain
3 #DEFAULT_INCLUDES =
4 INCLUDES = $(LIBUSB_CFLAGS)
5 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
6 AM_CXXFLAGS = -ansi -Wall -g
8 bin_PROGRAMS = btool bidentify bjavaloader upldif btranslate bktrans brecsum
9 if WITH_BOOST
10 bin_PROGRAMS += bs11nread
11 endif
12 if WITH_FUSE
13 bin_PROGRAMS += bfuse
14 endif
15 sbin_PROGRAMS = bcharge breset pppob
17 btool_SOURCES = btool.cc
18 btool_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
19 if WITH_BOOST
20 if WITH_BOOST_PATHS
21 btool_CXXFLAGS = -D__BARRY_BOOST_MODE__ -D_REENTRANT -I@BOOST_INC_PATH@ $(AM_CXXFLAGS)
22 btool_LDFLAGS = -L@BOOST_LIB_PATH@
23 else
24 btool_CXXFLAGS = -D__BARRY_BOOST_MODE__ -D_REENTRANT $(AM_CXXFLAGS)
25 endif
26 btool_LDADD += -lboost_serialization
27 endif
29 if WITH_BOOST
30 bs11nread_SOURCES = bs11nread.cc
31 bs11nread_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
32 if WITH_BOOST_PATHS
33 bs11nread_CXXFLAGS = -D_REENTRANT -I@BOOST_INC_PATH@ $(AM_CXXFLAGS)
34 bs11nread_LDFLAGS = -L@BOOST_LIB_PATH@
35 else
36 bs11nread_CXXFLAGS = -D_REENTRANT $(AM_CXXFLAGS)
37 endif
38 bs11nread_LDADD += -lboost_serialization
39 endif
41 bidentify_SOURCES = bidentify.cc
42 bidentify_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
44 bjavaloader_SOURCES = bjavaloader.cc
45 bjavaloader_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
47 upldif_SOURCES = upldif.cc
48 upldif_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
50 btranslate_SOURCES = btranslate.cc
52 bktrans_SOURCES = bktrans.cc
53 bktrans_LDADD = ../src/libbarry.la -lpthread
55 bcharge_SOURCES = bcharge.cc
56 bcharge_LDADD = $(LIBUSB_LIBS)
58 breset_SOURCES = breset.cc
59 breset_LDADD = $(LIBUSB_LIBS)
61 pppob_SOURCES = pppob.cc
62 pppob_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
64 #brecsum_CXXFLAGS = $(OPENSSL_CFLAGS)
65 brecsum_SOURCES = brecsum.cc
66 #brecsum_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) $(OPENSSL_LIBS) -lpthread
67 brecsum_LDADD = ../src/libbarry.la $(LIBUSB_LIBS) -lpthread
69 if WITH_FUSE
70 bfuse_SOURCES = bfuse.cc
71 bfuse_CXXFLAGS = $(FUSE_CFLAGS)
72 bfuse_LDADD = ../src/libbarry.la $(FUSE_LIBS) -lpthread
73 endif