1 AM_CPPFLAGS = $(MULECPPFLAGS)
2 AM_CFLAGS = $(MULECFLAGS)
3 AM_CXXFLAGS = $(MULECXXFLAGS)
4 AM_LDFLAGS = $(MULELDFLAGS)
6 SUBDIRS = libs utils pixmaps
30 bin_PROGRAMS += amulecmd
38 bin_PROGRAMS += amulegui
42 bin_PROGRAMS += amuled
48 noinst_LIBRARIES += libmuleappcore.a libmuleappgui.a libmuleappcommon.a
51 noinst_LIBRARIES += libmuleappcore.a libmuleappcommon.a
54 noinst_LIBRARIES += libmuleappgui.a libmuleappcommon.a
60 # Common to core/gui/monolithic
62 libmuleappcommon_a_SOURCES = \
68 NetworkFunctions.cpp \
76 libmuleappcommon_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
79 # Common to core/monolithic
81 libmuleappcore_a_SOURCES = \
88 PlatformSpecific.cpp \
89 kademlia/kademlia/Entry.cpp \
90 kademlia/kademlia/SearchManager.cpp \
91 kademlia/routing/RoutingBin.cpp \
95 kademlia/utils/UInt128.cpp
97 libmuleappcore_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
100 # Common to gui/monolithic
102 libmuleappgui_a_SOURCES = \
107 CommentDialogLst.cpp \
108 EditServerListDlg.cpp \
109 extern/wxWidgets/listctrl.cpp \
110 FileDetailListCtrl.cpp \
119 libmuleappgui_a_SOURCES += \
123 libmuleappgui_a_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(LIBUPNP_CPPFLAGS) $(GEOIP_CPPFLAGS)
129 CanceledFileList.cpp \
131 ClientCreditsList.cpp \
132 ClientTCPSocket.cpp \
133 ClientUDPSocket.cpp \
134 CorruptionBlackBox.cpp \
137 ECSpecialCoreTags.cpp \
139 EncryptedStreamSocket.cpp \
140 EncryptedDatagramSocket.cpp \
149 PartFileConvert.cpp \
155 ServerUDPSocket.cpp \
157 TerminationProcessAmuleweb.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
183 ClientDetailDialog.cpp \
184 DirectoryTreeCtrl.cpp \
185 FileDetailDialog.cpp \
188 PartFileConvertDlg.cpp \
189 PrefsUnifiedDlg.cpp \
195 DownloadListCtrl.cpp \
199 SharedFilesCtrl.cpp \
205 remote_common_sources = \
212 ECSpecialMuleTags.cpp \
225 TerminationProcess.cpp \
227 $(remote_common_sources)
231 core_libs = -L. -lmuleappcore $(LIBUPNP_LDFLAGS) $(LIBUPNP_LIBS)
232 gui_libs = -L. -lmuleappgui $(WX_LIBS) $(GEOIP_LDFLAGS) $(GEOIP_LIBS)
233 remote_common_libs = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
234 common_libs = -L. -lmuleappcommon $(remote_common_libs) $(CRYPTOPP_LDFLAGS) $(CRYPTOPP_LIBS)
236 core_deps = libmuleappcore.a
237 gui_deps = libmuleappgui.a
238 remote_common_deps = libs/common/libmulecommon.a libs/ec/cpp/libec.a
239 common_deps = libmuleappcommon.a $(remote_common_deps)
242 core_libs += -lshlwapi
248 core_flags = $(LIBUPNP_CPPFLAGS) $(LIBUPNP_CFLAGS)
249 gui_flags = $(WX_CPPFLAGS) $(GEOIP_CPPFLAGS)
250 common_flags = -I$(srcdir)/libs -Ilibs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS)
252 # --------- Apps ---------
255 amule-remote-gui.cpp \
261 amulegui_SOURCES += \
267 CaptchaGenerator.cpp \
280 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
281 amule_CPPFLAGS = $(AM_CPPFLAGS) $(core_flags) $(gui_flags) $(common_flags)
282 amule_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CPPFLAGS_ONLY)
283 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
285 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
286 amulegui_CPPFLAGS = $(AM_CPPFLAGS) $(gui_flags) $(common_flags) -DCLIENT_GUI
287 amulegui_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
288 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
290 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
291 amuled_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
292 amuled_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
293 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
300 ed2k_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_STD_STRING
304 ed2k_LDADD = -lshlwapi
308 ed2k_LDFLAGS = $(AM_LDFLAGS) -framework CoreServices
313 ExternalConnector.cpp \
315 $(remote_common_sources)
317 amulecmd_DEPENDENCIES = $(remote_common_deps)
318 amulecmd_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(common_flags)
319 amulecmd_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
320 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
321 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
322 $(WXBASE_LIBS) $(READLINE_LIBS) $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
341 ClientCreditsList.h \
342 ClientDetailDialog.h \
351 CorruptionBlackBox.h \
355 DirectoryTreeCtrl.h \
359 EditServerListDlg.h \
361 EncryptedDatagramSocket.h \
362 EncryptedStreamSocket.h \
363 ExternalConnector.h \
368 FileDetailListCtrl.h \
408 PartFileConvertDlg.h \
443 TerminationProcess.h \
444 TerminationProcessAmuleweb.h \
453 UploadBandwidthThrottler.h \
456 UPnPCompatibility.h \
458 extern/wxWidgets/listctrl.h
460 MAINTAINERCLEANFILES = Makefile.in
462 $(srcdir)/Parser.cpp: Parser.y
463 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
465 if GENERATE_FLEX_HEADER
466 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
467 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
469 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
470 $(LEX) -o $@ $(srcdir)/Scanner.l; \
471 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
481 $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@"
483 nodist_amuled_SOURCES = amuled-version.rc
484 nodist_amulecmd_SOURCES = amulecmd-version.rc
485 nodist_ed2k_SOURCES = ed2k-version.rc
486 amule_LDADD += amulerc.$(OBJEXT)
487 amule_DEPENDENCIES += amulerc.$(OBJEXT)
488 amulegui_LDADD += amuleguirc.$(OBJEXT)
489 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
491 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
494 abs_builddir=`pwd` ; \
495 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
497 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
500 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
503 abs_builddir=`pwd` ; \
504 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
506 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
509 amule-version.rc: $(top_builddir)/version.rc
510 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
511 -e 's/VER_INTERNALNAME_STR/"amule"/' \
512 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
514 amuled-version.rc: $(top_builddir)/version.rc
515 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
516 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
517 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
519 amulecmd-version.rc: $(top_builddir)/version.rc
520 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
521 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
522 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
524 amulegui-version.rc: $(top_builddir)/version.rc
525 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
526 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
527 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
529 ed2k-version.rc: $(top_builddir)/version.rc
530 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
531 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
532 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
534 CLEANFILES = *-version.rc
539 EXTRA__DIST__SUBDIRS = include kademlia remote-gui.net
540 include $(top_srcdir)/automake/dist-hook.am