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 kademlia/utils/UInt128.cpp
78 libmuleappcommon_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
81 # Common to core/monolithic
83 libmuleappcore_a_SOURCES = \
88 PlatformSpecific.cpp \
89 kademlia/kademlia/Entry.cpp \
90 kademlia/kademlia/SearchManager.cpp \
91 kademlia/routing/RoutingBin.cpp \
95 libmuleappcore_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
98 # Common to gui/monolithic
100 libmuleappgui_a_SOURCES = \
105 CommentDialogLst.cpp \
106 DirectoryTreeCtrl.cpp \
107 EditServerListDlg.cpp \
108 extern/wxWidgets/listctrl.cpp \
109 FileDetailListCtrl.cpp \
117 libmuleappgui_a_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(LIBUPNP_CPPFLAGS)
124 ClientCreditsList.cpp \
125 ClientTCPSocket.cpp \
126 ClientUDPSocket.cpp \
129 ECSpecialCoreTags.cpp \
131 EncryptedStreamSocket.cpp \
132 EncryptedDatagramSocket.cpp \
146 ServerUDPSocket.cpp \
149 UploadBandwidthThrottler.cpp \
152 kademlia/kademlia/Indexed.cpp \
153 kademlia/kademlia/Kademlia.cpp \
154 kademlia/kademlia/Prefs.cpp \
155 kademlia/kademlia/Search.cpp \
156 kademlia/kademlia/UDPFirewallTester.cpp \
157 kademlia/net/KademliaUDPListener.cpp \
158 kademlia/net/PacketTracking.cpp \
159 kademlia/routing/Contact.cpp \
160 kademlia/routing/RoutingZone.cpp
173 ClientDetailDialog.cpp \
174 FileDetailDialog.cpp \
177 PartFileConvert.cpp \
178 PrefsUnifiedDlg.cpp \
184 DownloadListCtrl.cpp \
188 SharedFilesCtrl.cpp \
199 remote_common_sources = \
205 ECSpecialMuleTags.cpp \
219 TerminationProcess.cpp \
220 TerminationProcessAmuleweb.cpp \
222 $(remote_common_sources)
226 core_libs = -L. -lmuleappcore $(LIBUPNP_LDFLAGS) $(LIBUPNP_LIBS)
227 gui_libs = -L. -lmuleappgui $(X11LIBS) $(WX_LIBS) $(GEOIP_LDFLAGS) $(GEOIP_LIBS)
228 remote_common_libs = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
229 common_libs = -L. -lmuleappcommon $(remote_common_libs) $(CRYPTOPP_LDFLAGS) $(CRYPTOPP_LIBS)
231 core_deps = libmuleappcore.a
232 gui_deps = libmuleappgui.a
233 remote_common_deps = libs/common/libmulecommon.a libs/ec/cpp/libec.a
234 common_deps = libmuleappcommon.a $(remote_common_deps)
237 core_libs += -lshlwapi
243 core_flags = $(LIBUPNP_CPPFLAGS) $(LIBUPNP_CFLAGS)
244 gui_flags = $(WX_CPPFLAGS) $(GEOIP_CPPFLAGS)
245 common_flags = -I$(srcdir)/libs -Ilibs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS)
247 # --------- Apps ---------
250 amule-remote-gui.cpp \
256 amulegui_SOURCES += \
273 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
274 amule_CPPFLAGS = $(AM_CPPFLAGS) $(core_flags) $(gui_flags) $(common_flags)
275 amule_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CPPFLAGS_ONLY)
276 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
278 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
279 amulegui_CPPFLAGS = $(AM_CPPFLAGS) $(gui_flags) $(common_flags) -DCLIENT_GUI -DEC_REMOTE
280 amulegui_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
281 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
283 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
284 amuled_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
285 amuled_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
286 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
293 ed2k_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_STD_STRING
297 ed2k_LDADD = -lshlwapi
301 ed2k_LDFLAGS = $(AM_LDFLAGS) -framework CoreServices
306 ExternalConnector.cpp \
307 $(remote_common_sources)
309 amulecmd_DEPENDENCIES = $(remote_common_deps)
310 amulecmd_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(common_flags) -DEC_REMOTE -DECSOCKET_USE_EVENTS=0
311 amulecmd_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
312 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
313 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
314 $(WXBASE_LIBS) $(READLINE_LIBS) $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
330 ClientCreditsList.h \
331 ClientDetailDialog.h \
343 DirectoryTreeCtrl.h \
347 EditServerListDlg.h \
349 EncryptedDatagramSocket.h \
350 EncryptedStreamSocket.h \
351 ExternalConnector.h \
355 FileDetailListCtrl.h \
429 TerminationProcess.h \
430 TerminationProcessAmuleweb.h \
439 UploadBandwidthThrottler.h \
442 UPnPCompatibility.h \
444 extern/wxWidgets/listctrl.h
446 MAINTAINERCLEANFILES = Makefile.in
448 $(srcdir)/Parser.cpp: Parser.y
449 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
451 if GENERATE_FLEX_HEADER
452 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
453 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
455 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
456 $(LEX) -o$@ $(srcdir)/Scanner.l; \
457 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
467 $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@"
469 nodist_amuled_SOURCES = amuled-version.rc
470 nodist_amulecmd_SOURCES = amulecmd-version.rc
471 nodist_ed2k_SOURCES = ed2k-version.rc
472 amule_LDADD += amulerc.$(OBJEXT)
473 amule_DEPENDENCIES += amulerc.$(OBJEXT)
474 amulegui_LDADD += amuleguirc.$(OBJEXT)
475 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
477 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
480 abs_builddir=`pwd` ; \
481 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
483 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
486 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
489 abs_builddir=`pwd` ; \
490 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
492 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
495 amule-version.rc: $(top_builddir)/version.rc
496 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
497 -e 's/VER_INTERNALNAME_STR/"amule"/' \
498 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
500 amuled-version.rc: $(top_builddir)/version.rc
501 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
502 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
503 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
505 amulecmd-version.rc: $(top_builddir)/version.rc
506 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
507 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
508 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
510 amulegui-version.rc: $(top_builddir)/version.rc
511 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
512 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
513 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
515 ed2k-version.rc: $(top_builddir)/version.rc
516 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
517 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
518 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
520 CLEANFILES = *-version.rc
525 EXTRA__DIST__SUBDIRS = include kademlia remote-gui.net
526 include $(top_srcdir)/automake/dist-hook.am