5 SUBDIRS = libs utils pixmaps skins $(OPT_WEB)
21 bin_PROGRAMS += amulecmd
29 bin_PROGRAMS += amulegui
33 bin_PROGRAMS += amuled
41 noinst_LIBRARIES += libmuleappcore.a
44 noinst_LIBRARIES += libmuleappcore.a
49 noinst_LIBRARIES += libmuleappgui.a
50 noinst_LIBRARIES += libmuleappcommon.a
53 noinst_LIBRARIES += libmuleappgui.a
54 noinst_LIBRARIES += libmuleappcommon.a
57 noinst_LIBRARIES += libmuleappcommon.a
63 # Common to core/gui/monolithic
65 libmuleappcommon_a_SOURCES = \
71 NetworkFunctions.cpp \
79 kademlia/utils/UInt128.cpp
81 libmuleappcommon_a_CFLAGS = $(WXBASE_CFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
82 libmuleappcommon_a_CXXFLAGS = $(WXBASE_CXXFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
84 libmuleappcommon_a_CFLAGS += -DENABLE_UPNP=1
85 libmuleappcommon_a_CXXFLAGS += -DENABLE_UPNP=1
89 # Common to core/monolithic
91 libmuleappcore_a_SOURCES = \
96 PlatformSpecific.cpp \
97 kademlia/kademlia/Entry.cpp \
98 kademlia/kademlia/SearchManager.cpp \
99 kademlia/routing/RoutingBin.cpp \
103 libmuleappcore_a_CFLAGS = $(WXBASE_CFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
104 libmuleappcore_a_CXXFLAGS = $(WXBASE_CXXFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
106 libmuleappcore_a_CFLAGS += -DENABLE_UPNP=1
107 libmuleappcore_a_CXXFLAGS += -DENABLE_UPNP=1
111 # Common to gui/monolithic
113 libmuleappgui_a_SOURCES = \
118 CommentDialogLst.cpp \
119 DirectoryTreeCtrl.cpp \
120 EditServerListDlg.cpp \
121 extern/wxWidgets/listctrl.cpp \
122 FileDetailListCtrl.cpp \
130 libmuleappgui_a_CFLAGS = $(WX_CXXFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
131 libmuleappgui_a_CXXFLAGS = $(WX_CXXFLAGS) -I$(srcdir)/libs -I$(srcdir)/include
133 libmuleappgui_a_CFLAGS += -DENABLE_UPNP=1
134 libmuleappgui_a_CXXFLAGS += -DENABLE_UPNP=1
142 ClientCreditsList.cpp \
143 ClientTCPSocket.cpp \
144 ClientUDPSocket.cpp \
147 ECSpecialCoreTags.cpp \
149 EncryptedStreamSocket.cpp \
150 EncryptedDatagramSocket.cpp \
164 ServerUDPSocket.cpp \
167 UploadBandwidthThrottler.cpp \
170 kademlia/kademlia/Indexed.cpp \
171 kademlia/kademlia/Kademlia.cpp \
172 kademlia/kademlia/Prefs.cpp \
173 kademlia/kademlia/Search.cpp \
174 kademlia/kademlia/UDPFirewallTester.cpp \
175 kademlia/net/KademliaUDPListener.cpp \
176 kademlia/net/PacketTracking.cpp \
177 kademlia/routing/Contact.cpp \
178 kademlia/routing/RoutingZone.cpp
183 UPnPCompatibility.cpp
192 ClientDetailDialog.cpp \
193 FileDetailDialog.cpp \
196 PartFileConvert.cpp \
197 PrefsUnifiedDlg.cpp \
203 DownloadListCtrl.cpp \
207 SharedFilesCtrl.cpp \
217 remote_common_sources = \
223 ECSpecialMuleTags.cpp \
235 TerminationProcess.cpp \
236 TerminationProcessAmuleweb.cpp \
238 $(remote_common_sources)
242 core_libs = -L. -lmuleappcore
243 gui_libs = -L. -lmuleappgui $(X11LIBS) $(WX_LIBS)
244 remote_common_libs = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec $(ZLIB_LIBS) $(RESOLV_LIB) $(BFD_LIB)
245 common_libs = -L. -lmuleappcommon $(remote_common_libs) $(CRYPTOLIBS)
247 core_deps = libmuleappcore.a
248 gui_deps = libmuleappgui.a
249 remote_common_deps = libs/common/libmulecommon.a libs/ec/cpp/libec.a
250 common_deps = libmuleappcommon.a $(remote_common_deps)
257 core_flags += -DENABLE_UPNP=1
260 gui_flags = $(WX_CXXFLAGS) $(XRCFLAGS)
262 gui_flags += -DENABLE_IP2COUNTRY=1
265 common_flags = -I$(srcdir)/libs -Ilibs -I$(srcdir)/include
267 # --------- Apps ---------
270 amule-remote-gui.cpp \
288 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
289 amule_CFLAGS = $(core_flags) $(gui_flags) $(common_flags)
290 amule_CXXFLAGS = $(core_flags) $(gui_flags) $(common_flags)
291 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
293 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
294 amulegui_CFLAGS = $(gui_flags) $(common_flags) -DCLIENT_GUI -DEC_REMOTE
295 amulegui_CXXFLAGS = $(gui_flags) $(common_flags) -DCLIENT_GUI -DEC_REMOTE
296 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
298 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
299 amuled_CFLAGS = $(WXBASE_CFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
300 amuled_CXXFLAGS = $(WXBASE_CXXFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
301 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
308 ed2k_CPPFLAGS = -DUSE_STD_STRING
312 ed2k_LDADD = -lshlwapi
316 ed2k_LDFLAGS = -framework CoreServices
321 ExternalConnector.cpp \
322 $(remote_common_sources)
324 amulecmd_DEPENDENCIES = $(remote_common_deps)
325 amulecmd_CFLAGS = $(WXBASE_CFLAGS) $(common_flags) -DEC_REMOTE -DECSOCKET_USE_EVENTS=0
326 amulecmd_CXXFLAGS = $(WXBASE_CXXFLAGS) $(common_flags) -DEC_REMOTE -DECSOCKET_USE_EVENTS=0
327 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
328 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
329 $(WXBASE_LIBS) $(READLINE_LIBS) $(ZLIB_LIBS) \
330 $(RESOLV_LIB) $(BFD_LIB)
346 ClientCreditsList.h \
347 ClientDetailDialog.h \
360 DirectoryTreeCtrl.h \
364 EditServerListDlg.h \
366 EncryptedDatagramSocket.h \
367 EncryptedStreamSocket.h \
368 ExternalConnector.h \
371 FileDetailListCtrl.h \
443 TerminationProcess.h \
444 TerminationProcessAmuleweb.h \
453 UploadBandwidthThrottler.h \
456 UPnPCompatibility.h \
458 extern/wxWidgets/listctrl.h \
462 MAINTAINERCLEANFILES = Makefile.in
464 $(srcdir)/Parser.cpp: Parser.y
465 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
467 if GENERATE_FLEX_HEADER
468 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
469 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
471 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
472 $(LEX) -o$@ $(srcdir)/Scanner.l; \
473 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
483 $(RC) $(RCFLAGS) -I$(top_srcdir) -D__WIN95__ -D__WIN32__ -D__GNUWIN32__ -O COFF -i "$<" -o "$@"
485 nodist_amuled_SOURCES = amuled-version.rc
486 nodist_amulecmd_SOURCES = amulecmd-version.rc
487 nodist_ed2k_SOURCES = ed2k-version.rc
488 amule_LDADD += amulerc.$(OBJEXT)
489 amule_DEPENDENCIES += amulerc.$(OBJEXT)
490 amulegui_LDADD += amuleguirc.$(OBJEXT)
491 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
493 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
496 abs_builddir=`pwd` ; \
497 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
499 $(RC) $(RCFLAGS) -I$${abs_top_srcdir} -D__WIN95__ -D__WIN32__ -D__GNUWIN32__ -O COFF -o "$${abs_builddir}/$@" ; \
502 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
505 abs_builddir=`pwd` ; \
506 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
508 $(RC) $(RCFLAGS) -I$${abs_top_srcdir} -D__WIN95__ -D__WIN32__ -D__GNUWIN32__ -O COFF -o "$${abs_builddir}/$@" ; \
511 amule-version.rc: $(top_builddir)/version.rc
512 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
513 -e 's/VER_INTERNALNAME_STR/"amule"/' \
514 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
516 amuled-version.rc: $(top_builddir)/version.rc
517 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
518 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
519 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
521 amulecmd-version.rc: $(top_builddir)/version.rc
522 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
523 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
524 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
526 amulegui-version.rc: $(top_builddir)/version.rc
527 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
528 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
529 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
531 ed2k-version.rc: $(top_builddir)/version.rc
532 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
533 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
534 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
536 CLEANFILES = *-version.rc
541 EXTRA__DIST__SUBDIRS = include kademlia remote-gui.net
542 include $(top_srcdir)/automake/dist-hook.am