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 = \
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 = \
89 PlatformSpecific.cpp \
95 kademlia/kademlia/Entry.cpp \
96 kademlia/kademlia/SearchManager.cpp \
97 kademlia/routing/Contact.cpp \
98 kademlia/routing/RoutingBin.cpp \
99 kademlia/utils/UInt128.cpp
101 libmuleappcore_a_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(CRYPTOPP_CPPFLAGS) $(LIBUPNP_CPPFLAGS)
104 # Common to gui/monolithic
106 libmuleappgui_a_SOURCES = \
111 CommentDialogLst.cpp \
112 EditServerListDlg.cpp \
113 extern/wxWidgets/listctrl.cpp \
114 FileDetailListCtrl.cpp \
123 libmuleappgui_a_CPPFLAGS = $(AM_CPPFLAGS) $(WX_CPPFLAGS) -I$(srcdir)/libs -I$(srcdir)/include $(LIBUPNP_CPPFLAGS) $(GEOIP_CPPFLAGS)
128 CanceledFileList.cpp \
130 ClientCreditsList.cpp \
131 ClientTCPSocket.cpp \
132 ClientUDPSocket.cpp \
133 CorruptionBlackBox.cpp \
136 ECSpecialCoreTags.cpp \
138 EncryptedStreamSocket.cpp \
139 EncryptedDatagramSocket.cpp \
147 PartFileConvert.cpp \
153 ServerUDPSocket.cpp \
155 TerminationProcessAmuleweb.cpp \
157 UploadBandwidthThrottler.cpp \
160 kademlia/kademlia/Indexed.cpp \
161 kademlia/kademlia/Kademlia.cpp \
162 kademlia/kademlia/Prefs.cpp \
163 kademlia/kademlia/Search.cpp \
164 kademlia/kademlia/UDPFirewallTester.cpp \
165 kademlia/net/KademliaUDPListener.cpp \
166 kademlia/net/PacketTracking.cpp \
167 kademlia/routing/RoutingZone.cpp
176 GenericClientListCtrl.cpp \
177 ClientDetailDialog.cpp \
178 DirectoryTreeCtrl.cpp \
179 FileDetailDialog.cpp \
182 PartFileConvertDlg.cpp \
183 PrefsUnifiedDlg.cpp \
189 DownloadListCtrl.cpp \
191 SharedFilePeersListCtrl.cpp \
194 SharedFilesCtrl.cpp \
200 remote_common_sources = \
207 ECSpecialMuleTags.cpp \
219 TerminationProcess.cpp \
221 $(remote_common_sources)
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 \
257 CaptchaGenerator.cpp \
270 amule_DEPENDENCIES = $(common_deps) $(core_deps) $(gui_deps)
271 amule_CPPFLAGS = $(AM_CPPFLAGS) $(core_flags) $(gui_flags) $(common_flags)
272 amule_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CPPFLAGS_ONLY)
273 amule_LDADD = $(common_libs) $(core_libs) $(gui_libs)
275 amulegui_DEPENDENCIES = $(common_deps) $(gui_deps)
276 amulegui_CPPFLAGS = $(AM_CPPFLAGS) $(gui_flags) $(common_flags) -DCLIENT_GUI
277 amulegui_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
278 amulegui_LDADD = $(gui_libs) $(common_libs) $(WXBASE_LIBS)
280 amuled_DEPENDENCIES = $(core_deps) $(common_deps)
281 amuled_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(core_flags) $(common_flags) -DAMULE_DAEMON
282 amuled_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
283 amuled_LDADD = $(common_libs) $(core_libs) $(WXBASE_LIBS)
290 ed2k_CPPFLAGS = $(AM_CPPFLAGS) -DUSE_STD_STRING
294 ed2k_LDADD = -lshlwapi
298 ed2k_LDFLAGS = $(AM_LDFLAGS) -framework CoreServices
303 ExternalConnector.cpp \
305 $(remote_common_sources)
307 amulecmd_DEPENDENCIES = $(remote_common_deps)
308 amulecmd_CPPFLAGS = $(AM_CPPFLAGS) $(WXBASE_CPPFLAGS) $(common_flags)
309 amulecmd_CXXFLAGS = $(AM_CXXFLAGS) $(WX_CFLAGS_ONLY) $(WX_CXXFLAGS_ONLY)
310 #amulecmd_LDADD = $(WXBASE_LIBS) $(READLINE_LIBS) $(remote_common_libs)
311 amulecmd_LDADD = -Llibs/common -Llibs/ec/cpp -lmulecommon -lec \
312 $(WXBASE_LIBS) $(READLINE_LIBS) $(BFD_LIBS) $(ZLIB_LDFLAGS) $(ZLIB_LIBS) $(RESOLV_LIB)
331 ClientCreditsList.h \
332 ClientDetailDialog.h \
333 SharedFilePeersListCtrl.h \
341 CorruptionBlackBox.h \
345 DirectoryTreeCtrl.h \
349 EditServerListDlg.h \
351 EncryptedDatagramSocket.h \
352 EncryptedStreamSocket.h \
353 ExternalConnector.h \
358 FileDetailListCtrl.h \
365 GenericClientListCtrl.h \
399 PartFileConvertDlg.h \
435 TerminationProcess.h \
436 TerminationProcessAmuleweb.h \
445 UploadBandwidthThrottler.h \
448 UPnPCompatibility.h \
450 extern/wxWidgets/listctrl.h
452 MAINTAINERCLEANFILES = Makefile.in
454 $(srcdir)/Parser.cpp: Parser.y
455 bison --debug -t -d -v -o $@ $(srcdir)/Parser.y
457 if GENERATE_FLEX_HEADER
458 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
459 $(LEX) --header-file=$(srcdir)/Scanner.h -o $@ $(srcdir)/Scanner.l
461 $(srcdir)/Scanner.cpp: Scanner.l Parser.cpp
462 $(LEX) -o $@ $(srcdir)/Scanner.l; \
463 echo "// Empty file generated by a flex version unable to create headers" > $(srcdir)/Scanner.h
473 $(RC) $(MULERCFLAGS) -I$(top_srcdir) $(RCFLAGS) -O COFF -i "$<" -o "$@"
475 nodist_amuled_SOURCES = amuled-version.rc
476 nodist_amulecmd_SOURCES = amulecmd-version.rc
477 nodist_ed2k_SOURCES = ed2k-version.rc
478 amule_LDADD += amulerc.$(OBJEXT)
479 amule_DEPENDENCIES += amulerc.$(OBJEXT)
480 amulegui_LDADD += amuleguirc.$(OBJEXT)
481 amulegui_DEPENDENCIES += amuleguirc.$(OBJEXT)
483 amulerc.$(OBJEXT): $(srcdir)/../amule.rc amule-version.rc
486 abs_builddir=`pwd` ; \
487 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
489 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
492 amuleguirc.$(OBJEXT): $(srcdir)/../amule.rc amulegui-version.rc
495 abs_builddir=`pwd` ; \
496 abs_top_srcdir=`cd $(top_srcdir) ; pwd` ; \
498 $(RC) $(MULERCFLAGS) -I$${abs_top_srcdir} $(RCFLAGS) -O COFF -o "$${abs_builddir}/$@" ; \
501 amule-version.rc: $(top_builddir)/version.rc
502 @sed -e 's/VER_FILEDESCRIPTION_STR/"All-Platform P2P Client Based on eMule"/' \
503 -e 's/VER_INTERNALNAME_STR/"amule"/' \
504 -e 's/VER_ORIGINALFILENAME_STR/"amule$(EXEEXT)"/' "$<" > "$@"
506 amuled-version.rc: $(top_builddir)/version.rc
507 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Daemon"/' \
508 -e 's/VER_INTERNALNAME_STR/"amuled"/' \
509 -e 's/VER_ORIGINALFILENAME_STR/"amuled$(EXEEXT)"/' "$<" > "$@"
511 amulecmd-version.rc: $(top_builddir)/version.rc
512 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Text Client"/' \
513 -e 's/VER_INTERNALNAME_STR/"amulecmd"/' \
514 -e 's/VER_ORIGINALFILENAME_STR/"amulecmd$(EXEEXT)"/' "$<" > "$@"
516 amulegui-version.rc: $(top_builddir)/version.rc
517 @sed -e 's/VER_FILEDESCRIPTION_STR/"aMule Remote GUI (Experimental)"/' \
518 -e 's/VER_INTERNALNAME_STR/"amulegui"/' \
519 -e 's/VER_ORIGINALFILENAME_STR/"amulegui$(EXEEXT)"/' "$<" > "$@"
521 ed2k-version.rc: $(top_builddir)/version.rc
522 @sed -e 's/VER_FILEDESCRIPTION_STR/"ED2K Links Handler"/' \
523 -e 's/VER_INTERNALNAME_STR/"ed2k"/' \
524 -e 's/VER_ORIGINALFILENAME_STR/"ed2k$(EXEEXT)"/' "$<" > "$@"
526 CLEANFILES = *-version.rc
531 EXTRA__DIST__SUBDIRS = include kademlia
532 include $(top_srcdir)/automake/dist-hook.am