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 \
118 libmuleappgui_a_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(LIBUPNP_CPPFLAGS) $(GEOIP_CPPFLAGS)
125 ClientCreditsList.cpp \
126 ClientTCPSocket.cpp \
127 ClientUDPSocket.cpp \
128 CorruptionBlackBox.cpp \
131 ECSpecialCoreTags.cpp \
133 EncryptedStreamSocket.cpp \
134 EncryptedDatagramSocket.cpp \
143 PartFileConvert.cpp \
149 ServerUDPSocket.cpp \
152 UploadBandwidthThrottler.cpp \
155 kademlia/kademlia/Indexed.cpp \
156 kademlia/kademlia/Kademlia.cpp \
157 kademlia/kademlia/Prefs.cpp \
158 kademlia/kademlia/Search.cpp \
159 kademlia/kademlia/UDPFirewallTester.cpp \
160 kademlia/net/KademliaUDPListener.cpp \
161 kademlia/net/PacketTracking.cpp \
162 kademlia/routing/Contact.cpp \
163 kademlia/routing/RoutingZone.cpp
176 ClientDetailDialog.cpp \
177 DirectoryTreeCtrl.cpp \
178 FileDetailDialog.cpp \
181 PartFileConvertDlg.cpp \
182 PrefsUnifiedDlg.cpp \
188 DownloadListCtrl.cpp \
192 SharedFilesCtrl.cpp \
203 remote_common_sources = \
209 ECSpecialMuleTags.cpp \
222 TerminationProcess.cpp \
223 TerminationProcessAmuleweb.cpp \
225 $(remote_common_sources)
229 core_libs = -L. -lmuleappcore $(LIBUPNP_LDFLAGS) $(LIBUPNP_LIBS)
230 gui_libs = -L. -lmuleappgui $(X11LIBS) $(WX_LIBS) $(GEOIP_LDFLAGS) $(GEOIP_LIBS)
231 remote_common_libs = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
232 common_libs = -L. -lmuleappcommon $(remote_common_libs) $(CRYPTOPP_LDFLAGS) $(CRYPTOPP_LIBS)
234 core_deps = libmuleappcore.a
235 gui_deps = libmuleappgui.a
236 remote_common_deps = libs/common/libmulecommon.a libs/ec/cpp/libec.a
237 common_deps = libmuleappcommon.a $(remote_common_deps)
240 core_libs += -lshlwapi
246 core_flags = $(LIBUPNP_CPPFLAGS) $(LIBUPNP_CFLAGS)
247 gui_flags = $(WX_CPPFLAGS) $(GEOIP_CPPFLAGS)
248 common_flags = -I$(srcdir)/libs -Ilibs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS)
250 # --------- Apps ---------
253 amule-remote-gui.cpp \
259 amulegui_SOURCES += \
265 CaptchaGenerator.cpp \
278 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
279 amule_CPPFLAGS = $(AM_CPPFLAGS) $(core_flags) $(gui_flags) $(common_flags)
280 amule_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CPPFLAGS_ONLY)
281 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
283 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
284 amulegui_CPPFLAGS = $(AM_CPPFLAGS) $(gui_flags) $(common_flags) -DCLIENT_GUI -DEC_REMOTE
285 amulegui_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
286 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
288 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
289 amuled_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
290 amuled_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
291 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
298 ed2k_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_STD_STRING
302 ed2k_LDADD = -lshlwapi
306 ed2k_LDFLAGS = $(AM_LDFLAGS) -framework CoreServices
311 ExternalConnector.cpp \
312 $(remote_common_sources)
314 amulecmd_DEPENDENCIES = $(remote_common_deps)
315 amulecmd_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(common_flags) -DEC_REMOTE -DECSOCKET_USE_EVENTS=0
316 amulecmd_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
317 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
318 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
319 $(WXBASE_LIBS) $(READLINE_LIBS) $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
337 ClientCreditsList.h \
338 ClientDetailDialog.h \
347 CorruptionBlackBox.h \
351 DirectoryTreeCtrl.h \
355 EditServerListDlg.h \
357 EncryptedDatagramSocket.h \
358 EncryptedStreamSocket.h \
359 ExternalConnector.h \
364 FileDetailListCtrl.h \
404 PartFileConvertDlg.h \
439 TerminationProcess.h \
440 TerminationProcessAmuleweb.h \
449 UploadBandwidthThrottler.h \
452 UPnPCompatibility.h \
454 extern/wxWidgets/listctrl.h
456 MAINTAINERCLEANFILES = Makefile.in
458 $(srcdir)/Parser.cpp: Parser.y
459 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
461 if GENERATE_FLEX_HEADER
462 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
463 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
465 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
466 $(LEX) -o$@ $(srcdir)/Scanner.l; \
467 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
477 $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@"
479 nodist_amuled_SOURCES = amuled-version.rc
480 nodist_amulecmd_SOURCES = amulecmd-version.rc
481 nodist_ed2k_SOURCES = ed2k-version.rc
482 amule_LDADD += amulerc.$(OBJEXT)
483 amule_DEPENDENCIES += amulerc.$(OBJEXT)
484 amulegui_LDADD += amuleguirc.$(OBJEXT)
485 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
487 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
490 abs_builddir=`pwd` ; \
491 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
493 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
496 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
499 abs_builddir=`pwd` ; \
500 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
502 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
505 amule-version.rc: $(top_builddir)/version.rc
506 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
507 -e 's/VER_INTERNALNAME_STR/"amule"/' \
508 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
510 amuled-version.rc: $(top_builddir)/version.rc
511 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
512 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
513 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
515 amulecmd-version.rc: $(top_builddir)/version.rc
516 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
517 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
518 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
520 amulegui-version.rc: $(top_builddir)/version.rc
521 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
522 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
523 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
525 ed2k-version.rc: $(top_builddir)/version.rc
526 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
527 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
528 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
530 CLEANFILES = *-version.rc
535 EXTRA__DIST__SUBDIRS = include kademlia remote-gui.net
536 include $(top_srcdir)/automake/dist-hook.am