1 AM_CPPFLAGS = $(MULECPPFLAGS)
2 AM_CFLAGS = $(MULECFLAGS)
3 AM_CXXFLAGS = $(MULECXXFLAGS)
4 AM_LDFLAGS = $(MULELDFLAGS)
6 SUBDIRS = libs utils pixmaps
31 bin_PROGRAMS += amulecmd
39 bin_PROGRAMS += amulegui
43 bin_PROGRAMS += amuled
49 noinst_LIBRARIES += libmuleappcore.a libmuleappgui.a libmuleappcommon.a
52 noinst_LIBRARIES += libmuleappcore.a libmuleappcommon.a
55 noinst_LIBRARIES += libmuleappgui.a libmuleappcommon.a
61 # Common to core/gui/monolithic
63 libmuleappcommon_a_SOURCES = \
71 NetworkFunctions.cpp \
78 TerminationProcess.cpp \
81 libmuleappcommon_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
84 # Common to core/monolithic
86 libmuleappcore_a_SOURCES = \
94 PlatformSpecific.cpp \
98 TerminationProcessAmuleweb.cpp \
101 kademlia/kademlia/Entry.cpp \
102 kademlia/kademlia/SearchManager.cpp \
103 kademlia/routing/RoutingBin.cpp \
104 kademlia/utils/UInt128.cpp
106 libmuleappcore_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
109 # Common to gui/monolithic
111 libmuleappgui_a_SOURCES = \
114 EditServerListDlg.cpp \
115 extern/wxWidgets/listctrl.cpp \
116 FileDetailListCtrl.cpp \
126 libmuleappgui_a_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(LIBUPNP_CPPFLAGS) $(GEOIP_CPPFLAGS)
131 CanceledFileList.cpp \
133 ClientCreditsList.cpp \
134 ClientTCPSocket.cpp \
135 ClientUDPSocket.cpp \
136 CorruptionBlackBox.cpp \
139 ECSpecialCoreTags.cpp \
141 EncryptedStreamSocket.cpp \
142 EncryptedDatagramSocket.cpp \
149 PartFileConvert.cpp \
155 ServerUDPSocket.cpp \
159 UploadBandwidthThrottler.cpp \
162 kademlia/kademlia/Indexed.cpp \
163 kademlia/kademlia/Kademlia.cpp \
164 kademlia/kademlia/Prefs.cpp \
165 kademlia/kademlia/Search.cpp \
166 kademlia/kademlia/UDPFirewallTester.cpp \
167 kademlia/net/KademliaUDPListener.cpp \
168 kademlia/net/PacketTracking.cpp \
169 kademlia/routing/Contact.cpp \
170 kademlia/routing/RoutingZone.cpp
181 CommentDialogLst.cpp \
182 GenericClientListCtrl.cpp \
183 ClientDetailDialog.cpp \
184 DirectoryTreeCtrl.cpp \
185 FileDetailDialog.cpp \
188 PartFileConvertDlg.cpp \
189 PrefsUnifiedDlg.cpp \
195 DownloadListCtrl.cpp \
197 SharedFilePeersListCtrl.cpp \
200 SharedFilesCtrl.cpp \
209 ECSpecialMuleTags.cpp \
225 core_libs = -L. -lmuleappcore $(LIBUPNP_LDFLAGS) $(LIBUPNP_LIBS)
226 gui_libs = -L. -lmuleappgui $(WX_LIBS) $(GEOIP_LDFLAGS) $(GEOIP_LIBS)
227 remote_common_libs = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
228 common_libs = -L. -lmuleappcommon $(remote_common_libs) $(CRYPTOPP_LDFLAGS) $(CRYPTOPP_LIBS)
230 core_deps = libmuleappcore.a
231 gui_deps = libmuleappgui.a
232 remote_common_deps = libs/common/libmulecommon.a libs/ec/cpp/libec.a
233 common_deps = libmuleappcommon.a $(remote_common_deps)
236 core_libs += -lshlwapi
242 core_flags = $(LIBUPNP_CPPFLAGS) $(LIBUPNP_CFLAGS)
243 gui_flags = $(WX_CPPFLAGS) $(GEOIP_CPPFLAGS)
244 common_flags = -I$(srcdir)/libs -Ilibs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS)
246 # --------- Apps ---------
249 amule-remote-gui.cpp \
256 CaptchaGenerator.cpp \
268 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
269 amule_CPPFLAGS = $(AM_CPPFLAGS) $(core_flags) $(gui_flags) $(common_flags)
270 amule_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CPPFLAGS_ONLY)
271 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
273 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
274 amulegui_CPPFLAGS = $(AM_CPPFLAGS) $(gui_flags) $(common_flags) -DCLIENT_GUI
275 amulegui_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
276 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
278 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
279 amuled_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
280 amuled_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
281 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
288 ed2k_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_STD_STRING
292 ed2k_LDADD = -lshlwapi
296 ed2k_LDFLAGS = $(AM_LDFLAGS) -framework CoreServices
301 ExternalConnector.cpp \
306 amulecmd_DEPENDENCIES = $(remote_common_deps)
307 amulecmd_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(common_flags)
308 amulecmd_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
309 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
310 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
311 $(WXBASE_LIBS) $(READLINE_LIBS) $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
331 ClientCreditsList.h \
332 ClientDetailDialog.h \
333 SharedFilePeersListCtrl.h \
342 CorruptionBlackBox.h \
346 DirectoryTreeCtrl.h \
350 EditServerListDlg.h \
352 EncryptedDatagramSocket.h \
353 EncryptedStreamSocket.h \
354 ExternalConnector.h \
359 FileDetailListCtrl.h \
366 GenericClientListCtrl.h \
401 PartFileConvertDlg.h \
437 TerminationProcess.h \
438 TerminationProcessAmuleweb.h \
448 UploadBandwidthThrottler.h \
451 UPnPCompatibility.h \
453 extern/wxWidgets/listctrl.h
455 MAINTAINERCLEANFILES = Makefile.in
457 $(srcdir)/Parser.cpp: Parser.y
458 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
460 if GENERATE_FLEX_HEADER
461 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
462 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
464 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
465 $(LEX) -o $@ $(srcdir)/Scanner.l; \
466 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
469 $(srcdir)/IPFilterScanner.cpp: IPFilterScanner.l
470 $(LEX) -Pyyip -o $@ $(srcdir)/IPFilterScanner.l;
479 $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@"
481 nodist_amuled_SOURCES = amuled-version.rc
482 nodist_amulecmd_SOURCES = amulecmd-version.rc
483 nodist_ed2k_SOURCES = ed2k-version.rc
484 amule_LDADD += amulerc.$(OBJEXT)
485 amule_DEPENDENCIES += amulerc.$(OBJEXT)
486 amulegui_LDADD += amuleguirc.$(OBJEXT)
487 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
489 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
492 abs_builddir=`pwd` ; \
493 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
495 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
498 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
501 abs_builddir=`pwd` ; \
502 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
504 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
507 amule-version.rc: $(top_builddir)/version.rc
508 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
509 -e 's/VER_INTERNALNAME_STR/"amule"/' \
510 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
512 amuled-version.rc: $(top_builddir)/version.rc
513 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
514 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
515 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
517 amulecmd-version.rc: $(top_builddir)/version.rc
518 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
519 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
520 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
522 amulegui-version.rc: $(top_builddir)/version.rc
523 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
524 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
525 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
527 ed2k-version.rc: $(top_builddir)/version.rc
528 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
529 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
530 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
532 CLEANFILES = *-version.rc
537 EXTRA__DIST__SUBDIRS = include kademlia
538 include $(top_srcdir)/automake/dist-hook.am