maint: added make-redirect.sh script to generate htaccess redirects
[barry/progweb.git] / tools / Makefile.am
blobfaf71f888cb0fcf14b7dd8000907019b7836fc45
1 EXTRA_DIST = Makefile.plain
3 #DEFAULT_INCLUDES =
4 INCLUDES = $(USB_LIBRARY_CFLAGS)
5 #AM_CXXFLAGS = -ansi -Wall -fno-strict-aliasing -g
6 AM_CXXFLAGS = -Wall -g
8 # To use gettext
9 datadir = @datadir@
10 localedir = $(datadir)/locale
11 DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
13 noinst_HEADERS = \
14         i18n.h \
15         gettext.h \
16         mimedump.h \
17         brecsum.h \
18         platform.h
20 bin_PROGRAMS = \
21         btool \
22         bidentify \
23         bjavaloader \
24         brawchannel \
25         bjvmdebug \
26         bdptest \
27         bjdwp \
28         upldif \
29         btranslate \
30         bktrans \
31         brecsum \
32         brimtrans
33 if WITH_BOOST
34 bin_PROGRAMS += bs11nread
35 endif
36 if WITH_FUSE
37 bin_PROGRAMS += bfuse
38 endif
39 if WITH_SDL
40 bin_PROGRAMS += bwatch
41 endif
42 if WITH_BACKUP
43 bin_PROGRAMS += btardump
44 endif
45 if WITH_ALX
46 bin_PROGRAMS += balxparse
47 endif
48 if WITH_BACKUP
49 if WITH_SYNC
50 bin_PROGRAMS += bio
51 endif
52 endif
54 sbin_PROGRAMS = pppob
56 btool_SOURCES = btool.cc
57 btool_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread @BOOST_LDADD@ $(LTLIBINTL) $(LTLIBICONV)
58 if WITH_SYNC
59 btool_LDADD += ../src/libbarrysync.la $(GLIB2_LIBS)
60 endif
61 if WITH_BACKUP
62 btool_LDADD += ../src/libbarrybackup.la
63 endif
64 btool_CXXFLAGS = $(AM_CXXFLAGS)
65 if WITH_BOOST
66 btool_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
67 endif
68 if WITH_SYNC
69 btool_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS) 
70 endif
71 if WITH_BACKUP
72 btool_CXXFLAGS += -D__BARRY_BACKUP_MODE__
73 endif
74 btool_LDFLAGS = @BOOST_LIB_PATH@
76 if WITH_BOOST
77 bs11nread_SOURCES = bs11nread.cc
78 bs11nread_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread @BOOST_LDADD@ $(LTLIBINTL)
79 bs11nread_CXXFLAGS = -D_REENTRANT @BOOST_INC_PATH@ $(AM_CXXFLAGS)
80 bs11nread_LDFLAGS = @BOOST_LIB_PATH@
81 endif
83 bidentify_SOURCES = bidentify.cc
84 bidentify_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
86 bjavaloader_SOURCES = bjavaloader.cc
87 bjavaloader_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
89 brawchannel_SOURCES = brawchannel.cc
90 brawchannel_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
92 bjvmdebug_SOURCES = bjvmdebug.cc
93 bjvmdebug_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
95 bdptest_SOURCES = bdptest.cc
96 bdptest_LDADD = ../src/libbarry.la ../src/libbarrydp.la $(LTLIBINTL)
98 bjdwp_SOURCES = bjdwp.cc
99 bjdwp_LDADD = ../src/libbarry.la \
100         ../src/libbarrydp.la \
101         ../src/libbarryjdwp.la \
102         $(LTLIBINTL)
104 upldif_SOURCES = upldif.cc
105 upldif_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
107 btranslate_SOURCES = btranslate.cc
108 btranslate_LDADD = $(LTLIBINTL)
110 bktrans_SOURCES = bktrans.cc
111 bktrans_LDADD = ../src/libbarry.la -lpthread $(LTLIBINTL)
113 if USE_LIBUSB_0_1
114 sbin_PROGRAMS += bcharge breset
116 bcharge_SOURCES = bcharge.cc
117 bcharge_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
119 breset_SOURCES = breset.cc
120 breset_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
121 endif
123 if USE_LIBUSB_1_0
124 sbin_PROGRAMS += bcharge breset
126 bcharge_SOURCES = bcharge_libusb_1_0.cc
127 bcharge_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
129 breset_SOURCES = breset_libusb_1_0.cc
130 breset_LDADD = $(USB_LIBRARY_LIBS) $(LTLIBINTL)
131 endif
133 pppob_SOURCES = pppob.cc
134 pppob_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
136 brecsum_SOURCES = brecsum.cc
137 brecsum_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) -lpthread $(LTLIBINTL)
139 brimtrans_SOURCES = brimtrans.cc
140 brimtrans_LDADD = $(LTLIBINTL)
142 if WITH_FUSE
143 bfuse_SOURCES = bfuse.cc
144 bfuse_CXXFLAGS = $(FUSE_CFLAGS)
145 bfuse_LDADD = ../src/libbarry.la $(FUSE_LIBS) -lpthread $(LTLIBINTL)
146 endif
148 if WITH_SDL
149 bwatch_SOURCES = bwatch.cc
150 bwatch_CXXFLAGS = $(SDL_FLAGS)
151 bwatch_LDADD = ../src/libbarry.la $(SDL_LIBS) -lpthread $(LTLIBINTL)
152 endif
154 if WITH_BACKUP
155 btardump_SOURCES = btardump.cc
156 btardump_CXXFLAGS = $(AM_CXXFLAGS) -D__BARRY_BACKUP_MODE__
157 #if WITH_BOOST
158 #btardump_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
159 #endif
160 if WITH_SYNC
161 btardump_CXXFLAGS += -D__BARRY_SYNC_MODE__ $(GLIB2_CFLAGS) 
162 endif
163 btardump_LDADD = ../src/libbarry.la $(USB_LIBRARY_LIBS) \
164         ../src/libbarrybackup.la -lpthread $(LTLIBINTL)
165 if WITH_SYNC
166 btardump_LDADD += ../src/libbarrysync.la $(GLIB2_LIBS)
167 endif
168 endif
170 if WITH_ALX
171 balxparse_SOURCES = balxparse.cc
172 balxparse_CXXFLAGS = $(AM_CXXFLAGS) $(LIBXMLXX_CFLAGS)
173 balxparse_LDADD = ../src/libbarry.la ../src/libbarryalx.la $(LTLIBINTL)
174 endif
176 if WITH_BACKUP
177 if WITH_SYNC
178 bio_SOURCES = bio.cc
179 bio_CXXFLAGS = $(AM_CXXFLAGS) $(GLIB2_CFLAGS)
180 if WITH_BOOST
181 bio_CXXFLAGS += -D__BARRY_BOOST_MODE__ -D_REENTRANT @BOOST_INC_PATH@
182 endif
183 bio_LDADD = ../src/libbarry.la \
184         ../src/libbarrysync.la $(GLIB2_LIBS) \
185         ../src/libbarrybackup.la \
186         $(USB_LIBRARY_LIBS) -lpthread @BOOST_LDADD@ \
187         $(LTLIBINTL) $(LTLIBICONV)
188 bio_LDFLAGS = @BOOST_LIB_PATH@
189 endif
190 endif