5 # Do not edit Makefile, edit config/Makefile.in instead
14 include config
/Makefile.config
16 ifneq ("$(GLIBC_VERSION)" , "")
17 GLIBC_VERSION_ARCH
= "_glibc-"$(GLIBC_VERSION
)
20 ##################################################################
22 ## Bytecode or Native ?
24 ##################################################################
31 LIBS_byte
=-custom bigarray.cma unix.cma str.cma nums.cma
32 LIBS_opt
= bigarray.cmxa unix.cmxa str.cmxa nums.cmxa
34 BIGARRAY_LIBS_opt
=bigarray.cmxa
35 BIGARRAY_LIBS_byte
=bigarray.cma
37 CRYPT_LIBS_opt
=-cclib
-lcrypt
38 CRYPT_LIBS_byte
=-cclib
-lcrypt
41 #######################################################################
45 #######################################################################
47 ifeq ("$(GUI)", "newgui2")
48 ICONS_CHOICE
=icons
/rsvg
53 CONFIGWIN
=src
/gtk
/configwin
54 GPATTERN
=src
/gtk
/gpattern
57 ifeq ("$(GUI)", "newgui1")
58 SRC_PROGRESS
=src
/gtk
/progress
59 ICONS_CHOICE
=icons
/tux
61 SRC_GUI
=src
/gtk
/newgui
64 ICONS_CHOICE
=icons
/kde
70 EXTLIB
=src
/utils
/extlib
72 BITSTRING
=src
/utils
/bitstring
75 RSS
=src
/utils
/ocamlrss
76 XML
=src
/utils
/xml-light
78 COMMON
=src
/daemon
/common
79 DRIVER
=src
/daemon
/driver
80 MP3
=src
/utils
/mp3tagui
82 SRC_DONKEY
=src
/networks
/donkey
83 SRC_BITTORRENT
=src
/networks
/bittorrent
84 SRC_OPENNAP
=src
/networks
/opennap
85 SRC_GNUTELLA
=src
/networks
/gnutella
86 SRC_GNUTELLA2
=src
/networks
/gnutella2
87 SRC_OPENFT
=src
/networks
/openFT
88 SRC_FASTTRACK
=src
/networks
/fasttrack
89 SRC_SOULSEEK
=src
/networks
/soulseek
90 SRC_DIRECTCONNECT
=src
/networks
/direct_connect
91 SRC_FILETP
=src
/networks
/fileTP
93 SUBDIRS
=$(EXTLIB
) $(CDK
) $(BITSTRING
) $(LIB
) $(RSS
) $(XML
) $(NET
) tools \
94 $(COMMON
) $(DRIVER
) $(MP3
) src
/config
/$(OS_FILES
)
96 INCLUDES
+= $(foreach file
, $(SUBDIRS
), -I
$(file
)) -I
+camlp4
98 CFLAGS
:=$(CFLAGS
) $(CONFIG_INCLUDES
) $(GTKCFLAGS
) $(GD_CFLAGS
)
102 ifeq ("$(OS_FILES2)", "mingw")
108 ifeq ("$(OS_FILES2)", "cygwin")
114 ifeq ("$(DEVEL)", "yes")
116 TARGETS
+= mldonkey_installer
$(EXE
)
121 #######################################################################
123 ## Objects files for "mldonkey"
125 #######################################################################
127 LIBS_flags
+= -ccopt
"$(LDFLAGS) $(CPPFLAGS)" -cclib
"$(LIBS)"
129 ifeq ("$(OS_FILES2)", "mingw")
130 LIBS_flags
+= -cclib
"-lws2_32 -lgdi32 -luser32 -ladvapi32 -lwsock32 -limm32 -lshell32 -lole32 resfile.o"
133 ifeq ("$(OS_FILES2)", "cygwin")
134 LIBS_flags
+= -cclib
"resfile.o"
138 $(BITSTRING
)/bitstring.ml \
139 $(BITSTRING
)/bitstring_c.c
141 ifeq ("$(BZIP2)", "yes")
142 LIBS_flags
+= -cclib
-lbz2
143 CDK_SRCS
+= $(CDK
)/bzlib.ml
$(CDK
)/bzip2.ml
146 CDK_SRCS
+= $(CDK
)/zlib.ml
$(CDK
)/zip.ml
$(CDK
)/gzip.ml
$(CDK
)/zlibstubs.c
$(CDK
)/tar.mlcpp
148 CDK_SRCS
+= $(LIB
)/autoconf.ml
151 CDK_SRCS
+= $(LIB
)/fifo.ml
$(CDK
)/arg2.ml
$(LIB
)/syslog.ml
$(CDK
)/printf2.ml \
153 $(CDK
)/printexc2.ml
$(CDK
)/genlex2.ml \
154 $(CDK
)/filepath.ml
$(CDK
)/string2.ml \
155 $(CDK
)/filename2.ml
$(CDK
)/array2.ml
$(CDK
)/hashtbl2.ml \
156 $(CDK
)/unix2.ml
$(CDK
)/file.ml \
157 $(CDK
)/heap_c.c
$(CDK
)/list2.ml
159 EXTLIB_SRCS
+= $(EXTLIB
)/IO.ml
161 ifneq ("$(PTHREAD_CFLAGS)" , "")
162 CFLAGS
+= $(PTHREAD_CFLAGS
)
163 LIBS_flags
+= -ccopt
"$(PTHREAD_CFLAGS)"
164 # LIBS_byte += -ccopt "$(PTHREAD_CFLAGS)"
167 ifneq ("$(PTHREAD_MINGW_CFLAGS)" , "")
168 CFLAGS
+= $(PTHREAD_MINGW_CFLAGS
)
171 ifneq ("$(PTHREAD_LIBS)" , "")
172 LIBS_flags
+= -cclib
"$(PTHREAD_LIBS)"
173 # LIBS_byte += -cclib "$(PTHREAD_LIBS)"
176 MP3TAG_SRCS
= $(MP3
)/mp3_info.ml
$(MP3
)/mp3_genres.ml \
178 $(MP3
)/mp3_tag.ml
$(MP3
)/mp3tag.ml
182 src
/config
/$(OS_FILES
)/mlUnix.ml \
183 src
/config
/$(OS_FILES
)/os_stubs_c.c \
185 $(LIB
)/intmap.ml
$(LIB
)/stringMap.ml \
186 $(LIB
)/int64ops.ml
$(LIB
)/options.ml4 \
187 $(LIB
)/levenshtein.ml \
190 $(LIB
)/indexer.ml
$(LIB
)/indexer1.ml
$(LIB
)/indexer2.ml \
191 $(LIB
)/misc2.mlcpp
$(LIB
)/misc.ml
$(LIB
)/unix32.ml
$(LIB
)/md4.ml \
192 $(LIB
)/http_lexer.mll
$(LIB
)/url.ml \
194 $(LIB
)/date.ml
$(LIB
)/fst_hash.c \
195 $(LIB
)/md4_comp.c
$(LIB
)/md4_c.c \
196 $(LIB
)/charsetstubs.c
$(LIB
)/charset.ml \
197 $(LIB
)/gettext.ml4
$(LIB
)/md5_c.c
$(LIB
)/sha1_c.c \
199 $(LIB
)/stubs_c.c
$(LIB
)/set2.ml
$(LIB
)/queues.ml \
200 $(LIB
)/verificationBitmap.ml
202 ifeq ("$(MAGIC)", "yes")
203 MAGIC_LIBS_flags
+= -cclib
-lmagic
204 MAGIC_SRCS
= $(LIB
)/magiclib.ml
$(LIB
)/magic_magic.ml
$(LIB
)/magiclib_stub.c
206 MAGIC_SRCS
= $(LIB
)/magic_nomagic.ml
208 MAGIC_SRCS
+= $(LIB
)/magic.ml
211 $(NET
)/basicSocket.ml \
212 $(NET
)/ip.ml
$(NET
)/ip_set.ml
$(NET
)/geoip.ml
$(NET
)/base64.ml
$(NET
)/mailer.ml \
213 $(NET
)/anyEndian.ml
$(NET
)/bigEndian.ml
$(NET
)/littleEndian.ml \
214 $(NET
)/tcpBufferedSocket.ml \
215 $(NET
)/tcpServerSocket.ml \
216 $(NET
)/udpSocket.ml
$(NET
)/http_server.ml
$(NET
)/http_client.ml \
221 $(XML
)/xml_types.ml
$(XML
)/xml_parser.mly
$(XML
)/xml_lexer.mll \
222 $(XML
)/xml_dtd.ml
$(XML
)/xmlParser.ml
$(XML
)/xml.ml
225 $(RSS
)/rss_messages.ml
$(RSS
)/rss_types.ml
$(RSS
)/rss_io.ml
$(RSS
)/rss.ml
228 $(XML_SRCS
) $(RSS_SRCS
) \
229 $(COMMON
)/commonTypes.ml \
230 $(COMMON
)/guiTypes.ml \
231 $(COMMON
)/guiProto.ml \
232 $(COMMON
)/commonEvent.ml \
233 $(COMMON
)/commonOptions.ml \
234 $(COMMON
)/commonPictures.ml \
235 $(COMMON
)/commonUserDb.ml \
236 $(COMMON
)/commonMessages.ml \
237 $(COMMON
)/commonGlobals.ml \
238 $(COMMON
)/commonBitzi.ml \
239 $(COMMON
)/guiDecoding.ml \
240 $(COMMON
)/guiEncoding.ml \
241 $(COMMON
)/giftLexer.mll \
242 $(COMMON
)/giftParser.mly \
243 $(COMMON
)/giftEncoding.ml \
244 $(COMMON
)/giftDecoding.ml \
245 $(COMMON
)/commonHasher.ml \
246 $(COMMON
)/commonHosts.ml \
247 $(COMMON
)/commonIndexing.ml \
248 $(COMMON
)/commonHasher_c.c
250 COMMON_CLIENT_SRCS
= \
251 $(NET
)/upnpClient.ml \
252 $(NET
)/upnp_stubs.c \
253 $(COMMON
)/commonUser.ml \
254 $(COMMON
)/commonNetwork.ml \
255 $(COMMON
)/commonServer.ml \
256 $(COMMON
)/commonClient.ml \
257 $(COMMON
)/commonFile.ml \
258 $(COMMON
)/commonResult.ml \
259 $(COMMON
)/commonWeb.ml \
260 $(COMMON
)/commonBlocking.ml \
261 $(COMMON
)/commonComplexOptions.ml \
262 $(COMMON
)/commonShared.ml \
263 $(COMMON
)/commonRoom.ml \
264 $(COMMON
)/commonSearch.ml \
265 $(COMMON
)/commonMultimedia.ml \
266 $(COMMON
)/commonSwarming.ml \
267 $(COMMON
)/commonInteractive.ml \
268 $(COMMON
)/commonChunks.ml \
269 $(COMMON
)/commonDownloads.ml \
270 $(COMMON
)/commonUploads.ml \
271 $(COMMON
)/commonSources.ml \
272 $(COMMON
)/commonStats.ml
274 all: Makefile config
/Makefile.config
$(TARGET_TYPE
)
276 config
/configure
: config
/configure.in
279 ifeq ("$(CONFIGURE_RUN)" , "yes")
281 config
/Makefile.config
: config
/configure config
/Makefile.config.in
$(LIB
)/autoconf.ml.new.in packages
/rpm
/Makefile.in
282 .
/configure
$(CONFIGURE_ARGUMENTS
)
286 config
/Makefile.config
: Makefile config
/configure config
/Makefile.config.in
287 @echo
'******************************************'
290 @echo
' You should rerun ./configure now '
293 @echo
'******************************************'
296 Makefile
: config
/Makefile.in
297 (cd config
; m4 Makefile.in
> ..
/Makefile
)
299 #######################################################################
303 #######################################################################
305 MAIN_SRCS
=$(COMMON
)/commonMain.ml
307 ifeq ("$(DONKEY_SUI)", "yes")
308 CRYPTOPP_LIBS_flags
+= -cc '$(CXX) $(CXXFLAGS)' -ccopt
'$(CRYPTOPPFLAGS)'
309 DONKEY_SRCS
+= $(LIB
)/CryptoPP.
cc $(LIB
)/CryptoPP_stubs.c
$(SRC_DONKEY
)/donkeySui1.ml
$(SRC_DONKEY
)/donkeySui.ml
311 DONKEY_SRCS
+= $(SRC_DONKEY
)/donkeySui2.ml
$(SRC_DONKEY
)/donkeySui.ml
316 $(SRC_DONKEY
)/donkeyTypes.ml \
317 $(SRC_DONKEY
)/donkeyOptions.ml \
318 $(SRC_DONKEY
)/donkeyMftp.ml \
319 $(SRC_DONKEY
)/donkeyImport.ml \
320 $(SRC_DONKEY
)/donkeyOpenProtocol.ml \
321 $(SRC_DONKEY
)/donkeyProtoClient.ml \
322 $(SRC_DONKEY
)/donkeyProtoServer.ml \
323 $(SRC_DONKEY
)/donkeyProtoUdp.ml \
324 $(SRC_DONKEY
)/donkeyPandora.ml \
326 $(SRC_DONKEY
)/donkeyGlobals.ml \
327 $(SRC_DONKEY
)/donkeyProtoCom.ml \
329 $(SRC_DONKEY
)/donkeyComplexOptions.ml \
330 $(SRC_DONKEY
)/donkeySupernode.ml \
331 $(SRC_DONKEY
)/donkeyShare.ml \
332 $(SRC_DONKEY
)/donkeyReliability.ml \
333 $(SRC_DONKEY
)/donkeyThieves.ml \
334 $(SRC_DONKEY
)/donkeyStats.ml \
335 $(SRC_DONKEY
)/donkeyOneFile.ml \
337 $(SRC_DONKEY
)/donkeyOvernetImport.ml \
338 $(SRC_DONKEY
)/donkeyNodesDat.ml \
339 $(SRC_DONKEY
)/donkeyOvernet.ml \
340 $(SRC_DONKEY
)/donkeyProtoKademlia.ml \
341 $(SRC_DONKEY
)/donkeyClient.ml \
342 $(SRC_DONKEY
)/donkeyProtoOvernet.ml \
343 $(SRC_DONKEY
)/donkeyUdp.ml \
344 $(SRC_DONKEY
)/donkeyFiles.ml \
345 $(SRC_DONKEY
)/donkeyServers.ml \
346 $(SRC_DONKEY
)/donkeySearch.ml \
347 $(SRC_DONKEY
)/donkeyInteractive.ml \
348 $(SRC_DONKEY
)/donkeyMain.ml
352 $(SRC_OPENNAP
)/napigator.mll \
353 $(SRC_OPENNAP
)/winmx_xor_c.c \
354 $(SRC_OPENNAP
)/opennapTypes.ml \
355 $(SRC_OPENNAP
)/opennapProtocol.ml \
356 $(SRC_OPENNAP
)/opennapOptions.ml \
357 $(SRC_OPENNAP
)/opennapGlobals.ml \
358 $(SRC_OPENNAP
)/opennapComplexOptions.ml \
359 $(SRC_OPENNAP
)/opennapClients.ml \
360 $(SRC_OPENNAP
)/opennapServers.ml \
361 $(SRC_OPENNAP
)/opennapInteractive.ml \
362 $(SRC_OPENNAP
)/opennapMain.ml
365 $(SRC_GNUTELLA
)/gnutellaNetwork.ml \
366 $(SRC_GNUTELLA
)/gnutellaTypes.ml \
367 $(SRC_GNUTELLA
)/gnutellaOptions.ml \
368 $(SRC_GNUTELLA
)/gnutellaGlobals.ml \
369 $(SRC_GNUTELLA
)/gnutellaComplexOptions.ml \
370 $(SRC_GNUTELLA
)/gnutellaFunctions.ml \
371 $(SRC_GNUTELLA
)/gnutellaProtocol.ml \
372 $(SRC_GNUTELLA
)/gnutellaProto.ml \
373 $(SRC_GNUTELLA
)/gnutellaClients.ml \
374 $(SRC_GNUTELLA
)/gnutellaPandora.ml \
375 $(SRC_GNUTELLA
)/gnutellaHandler.ml \
376 $(SRC_GNUTELLA
)/gnutellaRedirector.ml \
377 $(SRC_GNUTELLA
)/gnutellaServers.ml \
378 $(SRC_GNUTELLA
)/gnutellaSupernode.ml \
379 $(SRC_GNUTELLA
)/gnutellaInteractive.ml \
380 $(SRC_GNUTELLA
)/gnutellaMain.ml
382 # The only files specific to Gnutella2 are:
383 # $(SRC_GNUTELLA2)/g2Network.ml
384 # $(SRC_GNUTELLA2)/g2Proto.ml
385 # $(SRC_GNUTELLA2)/g2Handler.ml
386 # $(SRC_GNUTELLA2)/g2Redirector.ml
389 $(SRC_GNUTELLA2
)/g2Network.ml \
390 $(SRC_GNUTELLA2
)/g2Types.mlt \
391 $(SRC_GNUTELLA2
)/g2Options.mlt \
392 $(SRC_GNUTELLA2
)/g2Globals.mlt \
393 $(SRC_GNUTELLA2
)/g2ComplexOptions.mlt \
394 $(SRC_GNUTELLA2
)/g2Functions.mlt \
395 $(SRC_GNUTELLA2
)/g2Protocol.mlt \
396 $(SRC_GNUTELLA2
)/g2Proto.ml \
397 $(SRC_GNUTELLA2
)/g2Clients.mlt \
398 $(SRC_GNUTELLA2
)/g2Pandora.ml \
399 $(SRC_GNUTELLA2
)/g2Handler.ml \
400 $(SRC_GNUTELLA2
)/g2Redirector.ml \
401 $(SRC_GNUTELLA2
)/g2Servers.mlt \
402 $(SRC_GNUTELLA2
)/g2Supernode.ml \
403 $(SRC_GNUTELLA2
)/g2Interactive.mlt \
404 $(SRC_GNUTELLA2
)/g2Main.mlt
407 # The only files specific to Fasttrack are:
408 # $(SRC_FASTTRACK)/fasttrackNetwork.ml
409 # $(SRC_FASTTRACK)/fasttrackGlobals.ml
410 # $(SRC_FASTTRACK)/fasttrackProtocol.ml
411 # $(SRC_FASTTRACK)/fasttrackProto.ml
412 # $(SRC_FASTTRACK)/fasttrackHandler.ml
413 # $(SRC_FASTTRACK)/fasttrackServers.ml
414 # $(SRC_FASTTRACK)/fasttrackPandora.ml
418 $(SRC_FASTTRACK
)/enc_type_1.c \
419 $(SRC_FASTTRACK
)/enc_type_2.c \
420 $(SRC_FASTTRACK
)/enc_type_20.c \
421 $(SRC_FASTTRACK
)/enc_type_80.c \
422 $(SRC_FASTTRACK
)/fst_crypt.c \
423 $(SRC_FASTTRACK
)/fst_crypt_ml.c \
424 $(SRC_FASTTRACK
)/fasttrackNetwork.ml \
425 $(SRC_FASTTRACK
)/fasttrackTypes.mlt \
426 $(SRC_FASTTRACK
)/fasttrackOptions.mlt \
427 $(SRC_FASTTRACK
)/fasttrackGlobals.ml \
428 $(SRC_FASTTRACK
)/fasttrackComplexOptions.mlt \
429 $(SRC_FASTTRACK
)/fasttrackFunctions.mlt \
430 $(SRC_FASTTRACK
)/fasttrackProtocol.ml \
431 $(SRC_FASTTRACK
)/fasttrackProto.ml \
432 $(SRC_FASTTRACK
)/fasttrackClients.mlt \
433 $(SRC_FASTTRACK
)/fasttrackHandler.ml \
434 $(SRC_FASTTRACK
)/fasttrackServers.ml \
435 $(SRC_FASTTRACK
)/fasttrackPandora.ml \
436 $(SRC_FASTTRACK
)/fasttrackInteractive.mlt \
437 $(SRC_FASTTRACK
)/fasttrackMain.mlt
439 $(BITSTRING
)/bitstring_persistent.cmo
: $(BITSTRING
)/bitstring_persistent.ml
$(BITSTRING
)/bitstring_persistent.cmi build
/bitstring.cma
440 $(OCAMLC
) -I
$(BITSTRING
) -I
+camlp4 camlp4lib.cma
-c
$<
442 $(BITSTRING
)/pa_bitstring.cmo
: $(BITSTRING
)/pa_bitstring.mlt
$(BITSTRING
)/bitstring_persistent.cmo build
/bitstring.cma
443 $(OCAMLC
) -I
$(BITSTRING
) -I
+camlp4 camlp4lib.cma
-pp
'$(CAMLP4OF) -impl' -c
$^
446 $(SRC_BITTORRENT
)/bencode.ml \
447 $(SRC_BITTORRENT
)/bTRate.ml \
448 $(SRC_BITTORRENT
)/bTTypes.ml \
449 $(SRC_BITTORRENT
)/bTOptions.ml \
450 $(SRC_BITTORRENT
)/bTUdpTracker.ml \
451 $(SRC_BITTORRENT
)/bTProtocol.ml \
452 $(SRC_BITTORRENT
)/bTTorrent.ml \
453 $(SRC_BITTORRENT
)/kademlia.ml \
454 $(SRC_BITTORRENT
)/bT_DHT.ml \
455 $(SRC_BITTORRENT
)/bTGlobals.ml \
456 $(SRC_BITTORRENT
)/bTComplexOptions.ml \
457 $(SRC_BITTORRENT
)/bTStats.ml \
458 $(SRC_BITTORRENT
)/bTTracker.ml \
459 $(SRC_BITTORRENT
)/bTChooser.ml \
460 $(SRC_BITTORRENT
)/bTClients.ml \
461 $(SRC_BITTORRENT
)/bTInteractive.ml \
462 $(SRC_BITTORRENT
)/bTMain.ml
465 $(SRC_OPENFT
)/openFTTypes.ml \
466 $(SRC_OPENFT
)/openFTOptions.ml \
467 $(SRC_OPENFT
)/openFTGlobals.ml \
468 $(SRC_OPENFT
)/openFTComplexOptions.ml \
469 $(SRC_OPENFT
)/openFTProtocol.ml \
470 $(SRC_OPENFT
)/openFTClients.ml \
471 $(SRC_OPENFT
)/openFTServers.ml \
472 $(SRC_OPENFT
)/openFTInteractive.ml \
473 $(SRC_OPENFT
)/openFTMain.ml
476 $(SRC_FILETP
)/fileTPTypes.ml \
477 $(SRC_FILETP
)/fileTPOptions.ml \
478 $(SRC_FILETP
)/fileTPGlobals.ml \
479 $(SRC_FILETP
)/fileTPComplexOptions.ml \
480 $(SRC_FILETP
)/fileTPProtocol.ml \
481 $(SRC_FILETP
)/fileTPClients.ml \
482 $(SRC_FILETP
)/fileTPHTTP.ml \
483 $(SRC_FILETP
)/fileTPFTP.ml \
484 $(SRC_FILETP
)/fileTPSSH.ml \
485 $(SRC_FILETP
)/fileTPInteractive.ml \
486 $(SRC_FILETP
)/fileTPMain.ml
489 $(SRC_SOULSEEK
)/slskTypes.ml \
490 $(SRC_SOULSEEK
)/slskOptions.ml \
491 $(SRC_SOULSEEK
)/slskGlobals.ml \
492 $(SRC_SOULSEEK
)/slskComplexOptions.ml \
493 $(SRC_SOULSEEK
)/slskProtocol.ml \
494 $(SRC_SOULSEEK
)/slskClients.ml \
495 $(SRC_SOULSEEK
)/slskServers.ml \
496 $(SRC_SOULSEEK
)/slskInteractive.ml \
497 $(SRC_SOULSEEK
)/slskMain.ml
499 DIRECT_CONNECT_SRCS
= \
500 $(SRC_DIRECTCONNECT
)/dcTypes.ml \
501 $(SRC_DIRECTCONNECT
)/dcOptions.ml \
502 $(SRC_DIRECTCONNECT
)/che3_c.c \
503 $(SRC_DIRECTCONNECT
)/che3.ml \
504 $(SRC_DIRECTCONNECT
)/dcGlobals.ml \
505 $(SRC_DIRECTCONNECT
)/dcComplexOptions.ml \
506 $(SRC_DIRECTCONNECT
)/dcProtocol.ml \
507 $(SRC_DIRECTCONNECT
)/dcShared.ml \
508 $(SRC_DIRECTCONNECT
)/dcKey.ml \
509 $(SRC_DIRECTCONNECT
)/dcClients.ml \
510 $(SRC_DIRECTCONNECT
)/dcServers.ml \
511 $(SRC_DIRECTCONNECT
)/dcInteractive.ml \
512 $(SRC_DIRECTCONNECT
)/dcMain.ml
516 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) $(MP3TAG_SRCS
) \
517 $(COMMON_SRCS
) $(COMMON_CLIENT_SRCS
) $(DONKEY_SRCS
) \
521 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) $(MP3TAG_SRCS
) \
528 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) tools
/copysources.ml
531 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) tools
/subconv.ml
534 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) tools
/mlsplit.ml
536 MAKE_TORRENT_SRCS
= \
537 $(MAGIC_SRCS
) $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) $(MP3TAG_SRCS
) \
538 $(COMMON_SRCS
) $(COMMON_CLIENT_SRCS
) $(BITSTRING_SRCS
) $(BITTORRENT_SRCS
) \
539 tools
/make_torrent.ml
542 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) \
543 $(SRC_BITTORRENT
)/bencode.ml
$(SRC_BITTORRENT
)/kademlia.ml
$(SRC_BITTORRENT
)/bT_DHT.ml \
547 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) $(MP3TAG_SRCS
) \
550 ifeq ("$(OPENFT)" , "yes")
551 SUBDIRS
+= $(SRC_OPENFT
)
553 CORE_SRCS
+= $(OPENFT_SRCS
)
556 ifeq ("$(GD)", "yes")
557 GD_LIBS_flags
=-cclib
"-lgd $(GD_LIBS)" -ccopt
"$(GD_LDFLAGS)"
558 ifneq ("$(GD_STATIC_LIBS)", "")
559 GD_STATIC_LIBS_opt
=-cclib
"-lgd $(GD_STATIC_LIBS)" -ccopt
"$(GD_LDFLAGS)"
564 $(DRIVER
)/driverGraphics_gd.ml
567 $(DRIVER
)/driverGraphics_nogd.ml
570 ifeq ("$(UPNP_NATPMP)", "yes")
571 UPNP_NATPMP_LIBS_flags
=-cclib
"$(UPNP_NATPMP_LIBS)" -ccopt
"$(UPNP_NATPMP_LDFLAGS)"
572 UPNP_NATPMP_STATIC_LIBS_flags
=-cclib
"$(UPNP_NATPMP_STATIC_LIBS)" -ccopt
"$(UPNP_NATPMP_LDFLAGS)"
576 $(DRIVER
)/driverGraphics.ml \
577 $(DRIVER
)/driverInteractive.ml \
578 $(DRIVER
)/driverCommands.ml \
579 $(DRIVER
)/driverControlers.ml \
580 $(DRIVER
)/driverInterface.ml \
581 $(DRIVER
)/driverMain.ml
583 ICONS_CMXA
=icons.cmxa
589 ifeq ("$(DONKEY)", "yes")
590 BITSTRING_CMXA
=bitstring.cmxa
591 BITSTRING_CMA
=bitstring.cma
593 ifeq ("$(BITTORRENT)", "yes")
594 BITSTRING_CMXA
=bitstring.cmxa
595 BITSTRING_CMA
=bitstring.cma
597 MLNET_SRCS
+= $(MAIN_SRCS
)
598 MLNET_CMXA
=extlib.cmxa
$(CDK_CMXA
) $(BITSTRING_CMXA
) magic.cmxa common.cmxa client.cmxa core.cmxa driver.cmxa
600 TESTS_CMXA
=extlib.cmxa
$(CDK_CMXA
) $(BITSTRING_CMXA
) magic.cmxa common.cmxa client.cmxa core.cmxa
601 TESTS_SRCS
=tools
/tests.ml
603 ifeq ("$(GUI)", "newgui2")
605 $(BITSTRING_CMXA
) magic.cmxa extlib.cmxa cdk.cmxa common.cmxa client.cmxa core.cmxa driver.cmxa \
606 icons.cmxa guibase.cmxa gui.cmxa
609 $(BITSTRING_CMXA
) magic.cmxa extlib.cmxa cdk.cmxa common.cmxa client.cmxa core.cmxa driver.cmxa \
610 gmisc.cmxa icons.cmxa guibase.cmxa gui.cmxa
613 mlnet
+gui_SRCS
=$(MAIN_SRCS
)
616 #######################################################################
618 # Sources for other development tools
620 #######################################################################
623 TESTRSS_SRCS
= $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) tools
/testrss.ml
626 #######################################################################
628 # Objects files for "mlgui"
630 #######################################################################
633 rm -f
$(BINDIR
)/mlnet
634 rm -f
$(BINDIR
)/mlgui
637 mkdir
-p
$(DESTDIR
)$(prefix)/bin
638 if
test -f mlnet
; then \
639 rm -f
$(DESTDIR
)$(prefix)/bin
/mlnet
; cp
-f mlnet
$(DESTDIR
)$(prefix)/bin
/mlnet
; \
640 for link in mlslsk mldonkey mlgnut mldc mlbt
; do \
641 rm -f
$(DESTDIR
)$(prefix)/bin
/$$link; ln
-s mlnet
$(DESTDIR
)$(prefix)/bin
/$$link; \
644 if
test -f mlgui
; then \
645 rm -f
$(DESTDIR
)$(prefix)/bin
/mlgui
; cp
-f mlgui
$(DESTDIR
)$(prefix)/bin
/mlgui
; \
646 rm -f
$(DESTDIR
)$(prefix)/bin
/mldonkey_gui
; ln
-s mlgui
$(DESTDIR
)$(prefix)/bin
/mldonkey_gui
; \
648 if
test -f mlnet
+gui
; then \
649 rm -f
$(DESTDIR
)$(prefix)/bin
/mlnet
+gui
; cp
-f mlnet
+gui
$(DESTDIR
)$(prefix)/bin
/mlnet
+gui
; \
650 for link in mlslsk
+gui mldonkey
+gui mlgnut
+gui mldc
+gui mlbt
+gui
; do \
651 rm -f
$(DESTDIR
)$(prefix)/bin
/$$link; ln
-s mlnet
+gui
$(DESTDIR
)$(prefix)/bin
/$$link; \
656 ifneq ("$(GUI)" , "no")
657 ifeq ("$(GUI)", "newgui2")
658 SUBDIRS
+= $(SRC_GUI
) $(SRC_GUI
)/x11
$(SRC_GUI
)/win32
$(ICONS_CHOICE
) +lablgtk2
659 GTK_LIBS_byte
=-ccopt
"$(GTKLLIBS)" -cclib
"$(GTKLFLAGS)" -I
+lablgtk2
$(LABLGL_CMA
) lablgtk.cma gtkInit.cmo lablrsvg.cma
660 GTK_LIBS_opt
=-ccopt
"$(GTKLLIBS)" -cclib
"$(GTKLFLAGS)" -I
+lablgtk2
$(LABLGL_CMXA
) lablgtk.cmxa gtkInit.cmx lablrsvg.cmxa
661 GTK_STATIC_LIBS_opt
=-ccopt
"$(GTKLLIBS)" -cclib
"$(GTKLFLAGS)" -I
+lablgtk2 lablgtk.cmxa gtkInit.cmx lablrsvg.cmxa
663 SUBDIRS
+= $(SRC_GUI
) $(CONFIGWIN
) $(OKEY
) $(GPATTERN
) $(ICONS_CHOICE
) +lablgtk
$(SRC_PROGRESS
)
664 GTK_LIBS_byte
=-I
+lablgtk
$(LABLGL_CMA
) lablgtk.cma
665 GTK_LIBS_opt
=-I
+lablgtk
$(LABLGL_CMXA
) lablgtk.cmxa
666 GTK_STATIC_LIBS_opt
=-I
+lablgtk lablgtk.cmxa
669 SVG_CONVERTER_SRCS
= \
670 $(EXTLIB_SRCS
) $(CDK_SRCS
) $(LIB_SRCS
) tools
/svg_converter.ml
672 CURSES_LIBS_byte
=-cclib
-lncurses
673 CURSES_LIBS_opt
=-cclib
-lncurses
677 $(CONFIGWIN
)/configwin_types.ml \
678 $(CONFIGWIN
)/configwin_messages.ml \
679 $(CONFIGWIN
)/configwin_ihm.ml \
680 $(CONFIGWIN
)/configwin.ml
682 MP3TAGUI_SRCS
= $(MP3
)/mp3_messages.ml
$(MP3
)/mp3_ui.ml
684 GPATTERN_SRCS
= $(LIB
)/gAutoconf.ml
$(GPATTERN
)/gpattern.ml
686 OKEY_SRCS
= $(OKEY
)/okey.ml
689 $(ICONS_CHOICE
)/splash_screen.svg \
690 $(ICONS_CHOICE
)/menu_networks.svg \
691 $(ICONS_CHOICE
)/menu_servers.svg \
692 $(ICONS_CHOICE
)/menu_downloads.svg \
693 $(ICONS_CHOICE
)/menu_friends.svg \
694 $(ICONS_CHOICE
)/menu_searches.svg \
695 $(ICONS_CHOICE
)/menu_rooms.svg \
696 $(ICONS_CHOICE
)/menu_uploads.svg \
697 $(ICONS_CHOICE
)/menu_console.svg \
698 $(ICONS_CHOICE
)/menu_graph.svg \
699 $(ICONS_CHOICE
)/menu_settings.svg \
700 $(ICONS_CHOICE
)/menu_quit.svg \
701 $(ICONS_CHOICE
)/menu_help.svg \
702 $(ICONS_CHOICE
)/menu_core.svg \
703 $(ICONS_CHOICE
)/menu_core_reconnect.svg \
704 $(ICONS_CHOICE
)/menu_core_connectto.svg \
705 $(ICONS_CHOICE
)/menu_core_scanports.svg \
706 $(ICONS_CHOICE
)/menu_core_disconnect.svg \
707 $(ICONS_CHOICE
)/menu_core_kill.svg \
708 $(ICONS_CHOICE
)/menu_search_album.svg \
709 $(ICONS_CHOICE
)/menu_search_movie.svg \
710 $(ICONS_CHOICE
)/menu_search_mp3.svg \
711 $(ICONS_CHOICE
)/menu_search_complex.svg \
712 $(ICONS_CHOICE
)/menu_search_freedb.svg \
713 $(ICONS_CHOICE
)/menu_search_imdb.svg \
714 $(ICONS_CHOICE
)/menu_interfaces.svg \
715 $(ICONS_CHOICE
)/menu_tools.svg \
716 $(ICONS_CHOICE
)/menu_others.svg \
717 $(ICONS_CHOICE
)/net_bittorrent.svg \
718 $(ICONS_CHOICE
)/net_dc.svg \
719 $(ICONS_CHOICE
)/net_ed2k.svg \
720 $(ICONS_CHOICE
)/net_fasttrack.svg \
721 $(ICONS_CHOICE
)/net_filetp.svg \
722 $(ICONS_CHOICE
)/net_gnutella1.svg \
723 $(ICONS_CHOICE
)/net_gnutella2.svg \
724 $(ICONS_CHOICE
)/net_napster.svg \
725 $(ICONS_CHOICE
)/net_soulseek.svg \
726 $(ICONS_CHOICE
)/net_multinet.svg \
727 $(ICONS_CHOICE
)/net_globalshare.svg \
728 $(ICONS_CHOICE
)/net_supernode.svg \
729 $(ICONS_CHOICE
)/stock_shared_directory.svg \
730 $(ICONS_CHOICE
)/stock_directory.svg \
731 $(ICONS_CHOICE
)/stock_directory_open.svg \
732 $(ICONS_CHOICE
)/stock_color.svg \
733 $(ICONS_CHOICE
)/stock_font.svg \
734 $(ICONS_CHOICE
)/stock_password.svg \
735 $(ICONS_CHOICE
)/stock_download_directory.svg \
736 $(ICONS_CHOICE
)/stock_pending_slots.svg \
737 $(ICONS_CHOICE
)/stock_close.svg \
738 $(ICONS_CHOICE
)/stock_close_overlay.svg \
739 $(ICONS_CHOICE
)/stock_stop.svg \
740 $(ICONS_CHOICE
)/stock_ok.svg \
741 $(ICONS_CHOICE
)/stock_all_servers.svg \
742 $(ICONS_CHOICE
)/stock_add_server.svg \
743 $(ICONS_CHOICE
)/stock_subscribe_search.svg \
744 $(ICONS_CHOICE
)/stock_submit_search.svg \
745 $(ICONS_CHOICE
)/stock_extend_search.svg \
746 $(ICONS_CHOICE
)/stock_info.svg \
747 $(ICONS_CHOICE
)/stock_local_search.svg \
748 $(ICONS_CHOICE
)/stock_warning.svg \
749 $(ICONS_CHOICE
)/type_source_contact.svg \
750 $(ICONS_CHOICE
)/type_source_friend.svg \
751 $(ICONS_CHOICE
)/type_source_normal.svg \
752 $(ICONS_CHOICE
)/state_server_conh.svg \
753 $(ICONS_CHOICE
)/state_server_conl.svg \
754 $(ICONS_CHOICE
)/state_server_init.svg \
755 $(ICONS_CHOICE
)/state_server_notcon.svg \
756 $(ICONS_CHOICE
)/state_server_unknown.svg \
757 $(ICONS_CHOICE
)/state_source_fileslisted.svg \
758 $(ICONS_CHOICE
)/state_down.svg \
759 $(ICONS_CHOICE
)/state_up.svg \
760 $(ICONS_CHOICE
)/state_updown.svg \
761 $(ICONS_CHOICE
)/state_notupdown.svg \
762 $(ICONS_CHOICE
)/mime_unknown.svg \
763 $(ICONS_CHOICE
)/mime_images.svg \
764 $(ICONS_CHOICE
)/mime_binary.svg \
765 $(ICONS_CHOICE
)/mime_cdimage.svg \
766 $(ICONS_CHOICE
)/mime_debian.svg \
767 $(ICONS_CHOICE
)/mime_html.svg \
768 $(ICONS_CHOICE
)/mime_java.svg \
769 $(ICONS_CHOICE
)/mime_pdf.svg \
770 $(ICONS_CHOICE
)/mime_postscript.svg \
771 $(ICONS_CHOICE
)/mime_real.svg \
772 $(ICONS_CHOICE
)/mime_recycled.svg \
773 $(ICONS_CHOICE
)/mime_rpm.svg \
774 $(ICONS_CHOICE
)/mime_shellscript.svg \
775 $(ICONS_CHOICE
)/mime_soffice.svg \
776 $(ICONS_CHOICE
)/mime_sound.svg \
777 $(ICONS_CHOICE
)/mime_source.svg \
778 $(ICONS_CHOICE
)/mime_spreadsheet.svg \
779 $(ICONS_CHOICE
)/mime_tex.svg \
780 $(ICONS_CHOICE
)/mime_text.svg \
781 $(ICONS_CHOICE
)/mime_tgz.svg \
782 $(ICONS_CHOICE
)/mime_video.svg \
783 $(ICONS_CHOICE
)/mime_wordprocessing.svg \
784 $(ICONS_CHOICE
)/emoticon_storm.svg \
785 $(ICONS_CHOICE
)/emoticon_airplane.svg \
786 $(ICONS_CHOICE
)/emoticon_angel.svg \
787 $(ICONS_CHOICE
)/emoticon_arrogant.svg \
788 $(ICONS_CHOICE
)/emoticon_asl.svg \
789 $(ICONS_CHOICE
)/emoticon_bad.svg \
790 $(ICONS_CHOICE
)/emoticon_baringteeth.svg \
791 $(ICONS_CHOICE
)/emoticon_bat.svg \
792 $(ICONS_CHOICE
)/emoticon_beer.svg \
793 $(ICONS_CHOICE
)/emoticon_bowl.svg \
794 $(ICONS_CHOICE
)/emoticon_boy.svg \
795 $(ICONS_CHOICE
)/emoticon_cake.svg \
796 $(ICONS_CHOICE
)/emoticon_cat.svg \
797 $(ICONS_CHOICE
)/emoticon_cigaret.svg \
798 $(ICONS_CHOICE
)/emoticon_clock.svg \
799 $(ICONS_CHOICE
)/emoticon_confused.svg \
800 $(ICONS_CHOICE
)/emoticon_cry.svg \
801 $(ICONS_CHOICE
)/emoticon_cup.svg \
802 $(ICONS_CHOICE
)/emoticon_devil.svg \
803 $(ICONS_CHOICE
)/emoticon_dog.svg \
804 $(ICONS_CHOICE
)/emoticon_dude_hug.svg \
805 $(ICONS_CHOICE
)/emoticon_dunno.svg \
806 $(ICONS_CHOICE
)/emoticon_embarrassed.svg \
807 $(ICONS_CHOICE
)/emoticon_envelope.svg \
808 $(ICONS_CHOICE
)/emoticon_eyeroll.svg \
809 $(ICONS_CHOICE
)/emoticon_film.svg \
810 $(ICONS_CHOICE
)/emoticon_girl.svg \
811 $(ICONS_CHOICE
)/emoticon_girl_hug.svg \
812 $(ICONS_CHOICE
)/emoticon_ip.svg \
813 $(ICONS_CHOICE
)/emoticon_kiss.svg \
814 $(ICONS_CHOICE
)/emoticon_lightning.svg \
815 $(ICONS_CHOICE
)/emoticon_love.svg \
816 $(ICONS_CHOICE
)/emoticon_megasmile.svg \
817 $(ICONS_CHOICE
)/emoticon_moon.svg \
818 $(ICONS_CHOICE
)/emoticon_nerd.svg \
819 $(ICONS_CHOICE
)/emoticon_omg.svg \
820 $(ICONS_CHOICE
)/emoticon_party.svg \
821 $(ICONS_CHOICE
)/emoticon_pizza.svg \
822 $(ICONS_CHOICE
)/emoticon_plate.svg \
823 $(ICONS_CHOICE
)/emoticon_present.svg \
824 $(ICONS_CHOICE
)/emoticon_rainbow.svg \
825 $(ICONS_CHOICE
)/emoticon_sad.svg \
826 $(ICONS_CHOICE
)/emoticon_sarcastic.svg \
827 $(ICONS_CHOICE
)/emoticon_secret.svg \
828 $(ICONS_CHOICE
)/emoticon_shade.svg \
829 $(ICONS_CHOICE
)/emoticon_sick.svg \
830 $(ICONS_CHOICE
)/emoticon_sleepy.svg \
831 $(ICONS_CHOICE
)/emoticon_sorry.svg \
832 $(ICONS_CHOICE
)/emoticon_sshh.svg \
833 $(ICONS_CHOICE
)/emoticon_sun.svg \
834 $(ICONS_CHOICE
)/emoticon_teeth.svg \
835 $(ICONS_CHOICE
)/emoticon_thumbs_down.svg \
836 $(ICONS_CHOICE
)/emoticon_thumbs_up.svg \
837 $(ICONS_CHOICE
)/emoticon_tongue.svg \
838 $(ICONS_CHOICE
)/emoticon_ugly.svg \
839 $(ICONS_CHOICE
)/emoticon_ulove.svg \
840 $(ICONS_CHOICE
)/emoticon_wink.svg
843 $(ICONS_CHOICE
)/extend_search.xpm \
844 $(ICONS_CHOICE
)/local_search.xpm \
845 $(ICONS_CHOICE
)/trash.xpm \
846 $(ICONS_CHOICE
)/subscribe_search.xpm \
847 $(ICONS_CHOICE
)/submit_search.xpm \
848 $(ICONS_CHOICE
)/close_search.xpm \
849 $(ICONS_CHOICE
)/stop_search.xpm \
850 $(ICONS_CHOICE
)/nbk_networks_on.xpm \
851 $(ICONS_CHOICE
)/nbk_networks_menu.xpm \
852 $(ICONS_CHOICE
)/nbk_servers_on.xpm \
853 $(ICONS_CHOICE
)/nbk_servers_menu.xpm \
854 $(ICONS_CHOICE
)/nbk_downloads_on.xpm \
855 $(ICONS_CHOICE
)/nbk_downloads_menu.xpm \
856 $(ICONS_CHOICE
)/nbk_friends_on.xpm \
857 $(ICONS_CHOICE
)/nbk_friends_menu.xpm \
858 $(ICONS_CHOICE
)/nbk_search_on.xpm \
859 $(ICONS_CHOICE
)/nbk_search_menu.xpm \
860 $(ICONS_CHOICE
)/nbk_rooms_on.xpm \
861 $(ICONS_CHOICE
)/nbk_rooms_menu.xpm \
862 $(ICONS_CHOICE
)/nbk_uploads_on.xpm \
863 $(ICONS_CHOICE
)/nbk_uploads_menu.xpm \
864 $(ICONS_CHOICE
)/nbk_console_on.xpm \
865 $(ICONS_CHOICE
)/nbk_console_menu.xpm \
866 $(ICONS_CHOICE
)/nbk_graphs_on.xpm \
867 $(ICONS_CHOICE
)/nbk_graphs_menu.xpm \
868 $(ICONS_CHOICE
)/about.xpm \
869 $(ICONS_CHOICE
)/settings.xpm \
870 $(ICONS_CHOICE
)/exit.xpm \
871 $(ICONS_CHOICE
)/gui.xpm \
872 $(ICONS_CHOICE
)/kill_core.xpm \
873 $(ICONS_CHOICE
)/splash_screen.xpm \
874 $(ICONS_CHOICE
)/album_search.xpm \
875 $(ICONS_CHOICE
)/movie_search.xpm \
876 $(ICONS_CHOICE
)/mp3_search.xpm \
877 $(ICONS_CHOICE
)/complex_search.xpm \
878 $(ICONS_CHOICE
)/sharereactor_search.xpm \
879 $(ICONS_CHOICE
)/jigle_search.xpm \
880 $(ICONS_CHOICE
)/freedb_search.xpm \
881 $(ICONS_CHOICE
)/imdb_search.xpm \
882 $(ICONS_CHOICE
)/bt.xpm \
883 $(ICONS_CHOICE
)/dc.xpm \
884 $(ICONS_CHOICE
)/ed2k.xpm \
885 $(ICONS_CHOICE
)/fasttrack.xpm \
886 $(ICONS_CHOICE
)/gnutella.xpm \
887 $(ICONS_CHOICE
)/napster.xpm \
888 $(ICONS_CHOICE
)/slsk.xpm \
889 $(ICONS_CHOICE
)/unknown.xpm \
890 $(ICONS_CHOICE
)/downloading.xpm \
891 $(ICONS_CHOICE
)/connect_y.xpm \
892 $(ICONS_CHOICE
)/connect_m.xpm \
893 $(ICONS_CHOICE
)/connect_n.xpm \
894 $(ICONS_CHOICE
)/removedhost.xpm \
895 $(ICONS_CHOICE
)/blacklistedhost.xpm \
896 $(ICONS_CHOICE
)/files_listed.xpm \
897 $(ICONS_CHOICE
)/server_c_high.xpm \
898 $(ICONS_CHOICE
)/server_c_low.xpm \
899 $(ICONS_CHOICE
)/server_ci.xpm \
900 $(ICONS_CHOICE
)/server_nc.xpm \
901 $(ICONS_CHOICE
)/toggle_display_all_servers.xpm \
902 $(ICONS_CHOICE
)/view_pending_slots.xpm \
903 $(ICONS_CHOICE
)/add_server.xpm \
904 $(ICONS_CHOICE
)/add_shared_directory.xpm \
905 $(ICONS_CHOICE
)/download_directory.xpm \
906 $(ICONS_CHOICE
)/friend_user.xpm \
907 $(ICONS_CHOICE
)/contact_user.xpm \
908 $(ICONS_CHOICE
)/normal_user.xpm \
909 $(ICONS_CHOICE
)/priority_0.xpm \
910 $(ICONS_CHOICE
)/priority_1.xpm \
911 $(ICONS_CHOICE
)/priority_2.xpm \
912 $(ICONS_CHOICE
)/mimetype_binary.xpm \
913 $(ICONS_CHOICE
)/mimetype_cdimage.xpm \
914 $(ICONS_CHOICE
)/mimetype_debian.xpm \
915 $(ICONS_CHOICE
)/mimetype_html.xpm \
916 $(ICONS_CHOICE
)/mimetype_images.xpm \
917 $(ICONS_CHOICE
)/mimetype_java.xpm \
918 $(ICONS_CHOICE
)/mimetype_pdf.xpm \
919 $(ICONS_CHOICE
)/mimetype_postscript.xpm \
920 $(ICONS_CHOICE
)/mimetype_real.xpm \
921 $(ICONS_CHOICE
)/mimetype_recycled.xpm \
922 $(ICONS_CHOICE
)/mimetype_rpm.xpm \
923 $(ICONS_CHOICE
)/mimetype_shellscript.xpm \
924 $(ICONS_CHOICE
)/mimetype_soffice.xpm \
925 $(ICONS_CHOICE
)/mimetype_sound.xpm \
926 $(ICONS_CHOICE
)/mimetype_source.xpm \
927 $(ICONS_CHOICE
)/mimetype_spreadsheet.xpm \
928 $(ICONS_CHOICE
)/mimetype_tex.xpm \
929 $(ICONS_CHOICE
)/mimetype_text.xpm \
930 $(ICONS_CHOICE
)/mimetype_tgz.xpm \
931 $(ICONS_CHOICE
)/mimetype_video.xpm \
932 $(ICONS_CHOICE
)/mimetype_wordprocessing.xpm \
933 $(ICONS_CHOICE
)/mimetype_unknown.xpm \
934 $(ICONS_CHOICE
)/tree_closed.xpm \
935 $(ICONS_CHOICE
)/tree_opened.xpm \
936 $(ICONS_CHOICE
)/bt_net_on.xpm \
937 $(ICONS_CHOICE
)/dc_net_on.xpm \
938 $(ICONS_CHOICE
)/ed2k_net_on.xpm \
939 $(ICONS_CHOICE
)/ftt_net_on.xpm \
940 $(ICONS_CHOICE
)/gnut_net_on.xpm \
941 $(ICONS_CHOICE
)/nap_net_on.xpm \
942 $(ICONS_CHOICE
)/slsk_net_on.xpm \
943 $(ICONS_CHOICE
)/mld_tux_on.xpm
945 NEWGUI_SMALL_ICONS
= \
946 icons
/small
/add_to_friends_small.xpm icons
/small
/cancel_small.xpm \
947 icons
/small
/connect_more_small.xpm icons
/small
/connect_small.xpm \
948 icons
/small
/disconnect_small.xpm icons
/small
/download_small.xpm \
949 icons
/small
/edit_mp3_small.xpm icons
/small
/extend_search_small.xpm \
950 icons
/small
/get_format_small.xpm icons
/small
/local_search_small.xpm \
951 icons
/small
/preview_small.xpm icons
/small
/refres_small.xpm \
952 icons
/small
/save_all_small.xpm icons
/small
/save_as_small.xpm icons
/small
/save_small.xpm \
953 icons
/small
/trash_small.xpm icons
/small
/verify_chunks_small.xpm \
954 icons
/small
/view_users_small.xpm
957 $(ICONS_CHOICE
)/add_to_friends.xpm \
958 $(ICONS_CHOICE
)/cancel.xpm
$(ICONS_CHOICE
)/connect_more.xpm \
959 $(ICONS_CHOICE
)/connect.xpm
$(ICONS_CHOICE
)/disconnect.xpm \
960 $(ICONS_CHOICE
)/download.xpm \
961 $(ICONS_CHOICE
)/edit_mp3.xpm
$(ICONS_CHOICE
)/extend_search.xpm \
962 $(ICONS_CHOICE
)/get_format.xpm \
963 $(ICONS_CHOICE
)/local_search.xpm
$(ICONS_CHOICE
)/preview.xpm \
964 $(ICONS_CHOICE
)/refres.xpm \
965 $(ICONS_CHOICE
)/save_all.xpm
$(ICONS_CHOICE
)/save_as.xpm \
966 $(ICONS_CHOICE
)/save.xpm \
967 $(ICONS_CHOICE
)/trash.xpm
$(ICONS_CHOICE
)/verify_chunks.xpm \
968 $(ICONS_CHOICE
)/view_users.xpm \
969 $(ICONS_CHOICE
)/pause_resume.xpm \
970 $(ICONS_CHOICE
)/remove_all_friends.xpm
972 OLDGUI_SMALL_ICONS
= \
973 icons
/small
/add_to_friends_small.xpm icons
/small
/cancel_small.xpm \
974 icons
/small
/connect_more_small.xpm icons
/small
/connect_small.xpm \
975 icons
/small
/disconnect_small.xpm icons
/small
/download_small.xpm \
976 icons
/small
/edit_mp3_small.xpm icons
/small
/extend_search_small.xpm \
977 icons
/small
/get_format_small.xpm icons
/small
/local_search_small.xpm \
978 icons
/small
/preview_small.xpm icons
/small
/refres_small.xpm \
979 icons
/small
/save_all_small.xpm icons
/small
/save_as_small.xpm icons
/small
/save_small.xpm \
980 icons
/small
/trash_small.xpm icons
/small
/verify_chunks_small.xpm \
981 icons
/small
/view_users_small.xpm
983 ICONS
= $($(GUI_CODE
)_ICONS
)
984 SMALL_ICONS
= $($(GUI_CODE
)_SMALL_ICONS
)
986 ifeq ("$(GUI)", "newgui2")
987 ALL_ICONS
=$(foreach file
, $(ICONS
), $(basename $(file
)).ml_icons
)
988 ALL_ICONS_SRCS
=$(foreach file
, $(ICONS
), $(basename $(file
))_svg.ml
)
990 ALL_ICONS
=$(foreach file
, $(ICONS
), $(basename $(file
)).ml_icons
)
991 ALL_ICONS_SRCS
=$(foreach file
, $(ICONS
), $(basename $(file
))_xpm.ml
)
994 $(ALL_ICONS_SRCS
): $(ALL_ICONS
)
996 ifeq ("$(GUI)", "newgui2")
998 $(SRC_GUI
)/guiUtf8.ml
$(SRC_GUI
)/guiMessages.ml \
999 $(SRC_GUI
)/guiColumns.ml
$(SRC_GUI
)/graphTypes.ml \
1000 $(SRC_GUI
)/guiOptions.ml
$(SRC_GUI
)/guiArt.ml \
1001 $(SRC_GUI
)/guiTools.ml
$(SRC_GUI
)/guiTypes2.ml \
1002 $(SRC_GUI
)/guiTemplates.ml
$(SRC_GUI
)/configWindow.ml
1005 $(SRC_GUI
)/gui_messages.ml
$(SRC_GUI
)/gui_global.ml \
1006 $(SRC_GUI
)/gui_columns.ml
$(SRC_GUI
)/gui_keys.ml \
1007 $(SRC_GUI
)/gui_options.ml
1011 $(SRC_GUI
)/guiNetHtmlScanner.mll \
1012 $(SRC_GUI
)/guiNetHtml.ml \
1013 $(SRC_GUI
)/guiGlobal.ml \
1014 $(SRC_GUI
)/guiMisc.ml \
1015 $(SRC_GUI
)/guiHtml.ml \
1016 $(SRC_GUI
)/guiCom.ml \
1017 $(SRC_GUI
)/guiStatusBar.ml \
1018 $(SRC_GUI
)/guiUsers.ml \
1019 $(SRC_GUI
)/guiResults.ml \
1020 $(SRC_GUI
)/guiInfoWindow.ml \
1021 $(SRC_GUI
)/guiGraphBase.ml \
1022 $(SRC_GUI
)/guiGraph.ml \
1023 $(SRC_GUI
)/guiDownloads.ml \
1024 $(SRC_GUI
)/guiServers.ml \
1025 $(SRC_GUI
)/guiQueries.ml \
1026 $(SRC_GUI
)/guiRooms.ml \
1027 $(SRC_GUI
)/guiConsole.ml \
1028 $(SRC_GUI
)/guiFriends.ml \
1029 $(SRC_GUI
)/guiUploads.ml \
1030 $(SRC_GUI
)/guiNetworks.ml \
1031 $(SRC_GUI
)/guiConfig.ml \
1032 $(SRC_GUI
)/guiWindow.ml
1034 ifeq ("$(OS_FILES2)", "mingw")
1035 GTK2GUI_SRCS
+= $(SRC_GUI
)/win32
/systraystubs.c
1037 GTK2GUI_SRCS
+= $(SRC_GUI
)/x11
/eggtrayicon.c
$(SRC_GUI
)/x11
/eggtrayicon.h
$(SRC_GUI
)/x11
/systraystubs.c
1041 $(SRC_GUI
)/guiSystray.ml \
1042 $(SRC_GUI
)/guiMain.ml
1045 $(SRC_PROGRESS
)/gui_progress.ml \
1046 $(SRC_GUI
)/gui_misc.ml \
1047 $(SRC_GUI
)/gui_com.ml \
1048 $(SRC_GUI
)/gui_types.ml \
1049 $(SRC_GUI
)/gui_graph_base.ml
$(SRC_GUI
)/gui_graph.ml \
1050 $(SRC_GUI
)/gui_console_base.ml
$(SRC_GUI
)/gui_console.ml \
1051 $(SRC_GUI
)/gui_users_base.ml
$(SRC_GUI
)/gui_users.ml \
1052 $(SRC_GUI
)/gui_results_base.ml
$(SRC_GUI
)/gui_results.ml \
1053 $(SRC_GUI
)/gui_rooms_base.ml
$(SRC_GUI
)/gui_rooms.ml \
1054 $(SRC_GUI
)/gui_friends_base.ml
$(SRC_GUI
)/gui_friends.ml \
1055 $(SRC_GUI
)/gui_cdget_base.ml
$(SRC_GUI
)/gui_cdget.ml \
1056 $(SRC_GUI
)/gui_queries_base.ml
$(SRC_GUI
)/gui_queries.ml \
1057 $(SRC_GUI
)/gui_servers_base.ml
$(SRC_GUI
)/gui_servers.ml \
1058 $(SRC_GUI
)/gui_uploads_base.ml
$(SRC_GUI
)/gui_uploads.ml \
1059 $(SRC_GUI
)/gui_downloads_base.ml
$(SRC_GUI
)/gui_downloads.ml \
1060 $(SRC_GUI
)/gui_networks.ml \
1061 $(SRC_GUI
)/gui_window_base.ml
$(SRC_GUI
)/gui_window.ml \
1062 $(SRC_GUI
)/gui_config.ml \
1063 $(SRC_GUI
)/gui_main.ml
1066 $(SRC_PROGRESS
)/gui_progress.ml \
1067 $(SRC_GUI
)/gui_misc.ml \
1068 $(SRC_GUI
)/gui_com.ml \
1069 $(SRC_PROGRESS
)/gui_progress_main.ml
1072 $(SRC_GUI
)/gui_misc.ml \
1073 $(SRC_GUI
)/gui_com.ml \
1074 $(SRC_GUI
)/gui_help_base.zog
$(SRC_GUI
)/gui_help.ml \
1075 $(SRC_GUI
)/gui_console_base.zog
$(SRC_GUI
)/gui_console.ml \
1076 $(SRC_GUI
)/gui_uploads_base.zog
$(SRC_GUI
)/gui_uploads.ml \
1077 $(SRC_GUI
)/gui_users_base.zog
$(SRC_GUI
)/gui_users.ml \
1078 $(SRC_GUI
)/gui_results_base.zog
$(SRC_GUI
)/gui_results.ml \
1079 $(SRC_GUI
)/gui_rooms_base.zog
$(SRC_GUI
)/gui_rooms.ml \
1080 $(SRC_GUI
)/gui_friends_base.zog
$(SRC_GUI
)/gui_friends.ml \
1081 $(SRC_GUI
)/gui_cdget_base.zog
$(SRC_GUI
)/gui_cdget.ml \
1082 $(SRC_GUI
)/gui_queries_base.ml
$(SRC_GUI
)/gui_queries.ml \
1083 $(SRC_GUI
)/gui_servers_base.zog
$(SRC_GUI
)/gui_servers.ml \
1084 $(SRC_GUI
)/gui_downloads_base.zog
$(SRC_GUI
)/gui_downloads.ml \
1085 $(SRC_GUI
)/gui_window_base.zog
$(SRC_GUI
)/gui_window.ml \
1086 $(SRC_GUI
)/gui_config.ml \
1087 $(SRC_GUI
)/gui_main.ml
1089 GUI_SRCS
= $($(GUI_CODE
)_SRCS
)
1091 ifeq ("$(GUI)", "newgui2")
1092 MLDONKEYGUI_CMXA
= extlib.cmxa cdk.cmxa common.cmxa icons.cmxa guibase.cmxa gui.cmxa
1094 MLDONKEYGUI_CMXA
= extlib.cmxa cdk.cmxa gmisc.cmxa common.cmxa icons.cmxa guibase.cmxa gui.cmxa
1097 MLDONKEYGUI_SRCS
= $(MAIN_SRCS
)
1099 ifeq ("$(GUI)", "newgui2")
1100 STARTER_CMXA
=extlib.cmxa cdk.cmxa common.cmxa icons.cmxa guibase.cmxa
1101 STARTER_SRCS
= $(SRC_GUI
)/guiStarter.ml
1103 STARTER_CMXA
=extlib.cmxa cdk.cmxa
1104 STARTER_SRCS
= $(SRC_GUI
)/gui_starter.ml
1107 ifeq ("$(GUI)", "newgui2")
1108 INSTALLER_CMXA
= extlib.cmxa cdk.cmxa common.cmxa icons.cmxa guibase.cmxa
1110 INSTALLER_CMXA
= extlib.cmxa cdk.cmxa gmisc.cmxa common.cmxa icons.cmxa guibase.cmxa
1113 ifeq ("$(GUI)", "newgui2")
1115 $(SRC_GUI
)/gui_installer_base.ml
$(SRC_GUI
)/gui_installer.ml
1118 $(SRC_GUI
)/gui_installer_base.zog
$(SRC_GUI
)/gui_installer.ml
1121 MLPROGRESS_CMXA
= extlib.cmxa cdk.cmxa gmisc.cmxa common.cmxa icons.cmxa guibase.cmxa
1124 $(PROGRESS_SRCS
) $(MAIN_SRCS
)
1126 TARGETS
+= mlgui
$(EXE
) mlguistarter
$(EXE
)
1127 ifeq ("$(GUI)", "newgui1")
1128 TARGETS
+= mlprogress
$(EXE
)
1131 TARGETS
+= mlnet
+gui
$(EXE
)
1137 .
/mldonkeytop
$(INCLUDES
)
1139 TOP_CMXA
+=$(BITSTRING_CMA
) extlib.cmxa cdk.cmxa magic.cmxa common.cmxa client.cmxa core.cmxa
1142 define([[EXPAND_LIB
]],[[
1143 $1_ZOG := $(filter %.zog
, $($1_SRCS))
1144 $1_MLL := $(filter %.mll
, $($1_SRCS))
1145 $1_MLY := $(filter %.mly
, $($1_SRCS))
1146 $1_ML4 := $(filter %.ml4
, $($1_SRCS))
1147 $1_MLC4 := $(filter %.mlc4
, $($1_SRCS))
1148 $1_MLT := $(filter %.mlt
, $($1_SRCS))
1149 $1_MLP := $(filter %.mlcpp
, $($1_SRCS))
1150 $1_ML := $(filter %.ml
%.mll
%.zog
%.mly
%.ml4
%.mlc4
%.mlt
%.mlcpp
, $($1_SRCS))
1151 $1_DOC := $(filter %.ml
%.mll
%.zog
%.mly
%.ml4
%.mlc4
%.mlcpp
, $($1_SRCS))
1152 $1_C := $(filter %.c
%.
cc, $($1_SRCS))
1153 $1_CMOS=$(foreach file
, $($1_ML), $(basename $(file
)).cmo
)
1154 $1_CMXS=$(foreach file
, $($1_ML), $(basename $(file
)).cmx
)
1155 $1_OBJS=$(foreach file
, $($1_C), $(basename $(file
)).o
)
1157 TMPSOURCES
+= $($1_ML4:.ml4
=.ml
) $($1_MLC4:.mlc4
=.ml
) $($1_MLT:.mlt
=.ml
) $($1_MLP:.mlcpp
=.ml
) $($1_MLL:.mll
=.ml
) $($1_MLY:.mly
=.ml
) $($1_MLY:.mly
=.mli
) $($1_ZOG:.zog
=.ml
)
1159 ZOGSOURCES
+= $($1_ZOG:.zog
=.ml
)
1160 MLTSOURCES
+= $($1_MLT:.mlt
=.ml
)
1161 MLPSOURCES
+= $($1_MLP:.mlcpp
=.ml
)
1163 build
/$2.cmxa
: $($1_OBJS) $($1_CMXS)
1164 $(OCAMLOPT
) -a
-o
$[[@
]] $($1_OBJS) $(LIBS_flags
) $($3_LIBS_flags) $($1_CMXS)
1166 build
/$2.cma
: $($1_OBJS) $($1_CMOS)
1167 $(OCAMLC
) -a
-o
$[[@
]] $($1_OBJS) $(LIBS_flags
) $($3_LIBS_flags) $($1_CMOS)
1172 define(EXPAND_DRIVER
,[[
1174 ifeq ("$($2)" , "yes")
1175 SUBDIRS
+= src
/networks
/$3
1177 CORE_SRCS
+= $($2_SRCS)
1181 ifeq ("$2", "DONKEY")
1182 $1_SRCS+= $(CRYPTOPP_SRCS
)
1183 $1_CMXA+= $(BITSTRING_CMXA
)
1184 $1+gui_CMXA
+= $(BITSTRING_CMXA
)
1186 ifeq ("$2", "BITTORRENT")
1187 $1_CMXA+= $(BITSTRING_CMXA
)
1188 $1+gui_CMXA
+= $(BITSTRING_CMXA
)
1192 $1_CMXA+= extlib.cmxa cdk.cmxa magic.cmxa common.cmxa client.cmxa
$1.cmxa driver.cmxa
1194 $1_SRCS+= $(MAIN_SRCS
)
1198 ifeq ("$(GUI)", "newgui2")
1199 $1+gui_CMXA
+=extlib.cmxa cdk.cmxa \
1200 magic.cmxa common.cmxa client.cmxa
$1.cmxa driver.cmxa \
1201 icons.cmxa guibase.cmxa gui.cmxa
1203 $1+gui_CMXA
+=extlib.cmxa cdk.cmxa \
1204 magic.cmxa common.cmxa client.cmxa
$1.cmxa driver.cmxa \
1205 gmisc.cmxa icons.cmxa guibase.cmxa gui.cmxa
1208 $1+gui_SRCS
= $(MAIN_SRCS
)
1212 EXPAND_DRIVER
(mldc
,DIRECT_CONNECT
,direct_connect
)
1213 EXPAND_DRIVER
(mlnap
,OPENNAP
,opennap
)
1214 EXPAND_DRIVER
(mlgnut
,GNUTELLA
,gnutella
)
1215 EXPAND_DRIVER
(mlg2
,GNUTELLA2
,gnutella2
)
1216 EXPAND_DRIVER
(mlfasttrack
,FASTTRACK
,fasttrack
)
1217 EXPAND_DRIVER
(mlfileTP
,FILETP
,fileTP
)
1218 EXPAND_DRIVER
(mlbt
,BITTORRENT
,bittorrent
)
1219 EXPAND_DRIVER
(mldonkey
,DONKEY
,donkey
)
1220 EXPAND_DRIVER
(mlslsk
,SOULSEEK
,soulseek
)
1222 libextlib_SRCS
= $(EXTLIB_SRCS
)
1223 libcdk_SRCS
= $(CDK_SRCS
) $(LIB_SRCS
) $(NET_SRCS
) $(MP3TAG_SRCS
)
1224 libmagic_SRCS
= $(MAGIC_SRCS
)
1225 libbitstring_SRCS
= $(BITSTRING_SRCS
)
1226 libcommon_SRCS
= $(COMMON_SRCS
)
1227 libclient_SRCS
= $(COMMON_CLIENT_SRCS
)
1228 ifeq ("$(GUI)", "newgui2")
1231 libgmisc_SRCS
= $(CONFIGWIN_SRCS
) $(MP3TAGUI_SRCS
) $(OKEY_SRCS
) $(GPATTERN_SRCS
)
1233 libguibase_SRCS
= $(GUI_BASE_SRCS
)
1234 libgui_SRCS
= $(GUI_SRCS
)
1235 libgui3_SRCS
= $(GUI3_SRCS
)
1236 libicons_SRCS
= $(ALL_ICONS_SRCS
)
1238 EXPAND_LIB
(libextlib
,extlib
)
1239 EXPAND_LIB
(libicons
,icons
)
1240 EXPAND_LIB
(libcdk
,cdk
)
1241 EXPAND_LIB
(libmagic
,magic
)
1242 EXPAND_LIB
(libbitstring
,bitstring
)
1243 EXPAND_LIB
(libupnp_natpmp
,upnp_natpmp
)
1244 EXPAND_LIB
(libcommon
,common
)
1245 EXPAND_LIB
(libclient
,client
)
1246 EXPAND_LIB
(DRIVER
,driver
)
1247 EXPAND_LIB
(CORE
,core
)
1249 ifneq ("$(GUI)", "newgui2")
1250 EXPAND_LIB
(libgmisc
,gmisc
)
1253 EXPAND_LIB
(libgui
,gui
)
1254 EXPAND_LIB
(libguibase
,guibase
)
1257 ######################################################################
1259 # From sources to objects files
1261 ######################################################################
1263 define([[EXPAND
]],[[
1264 $1_ZOG := $(filter %.zog
, $($1_SRCS))
1265 $1_MLL := $(filter %.mll
, $($1_SRCS))
1266 $1_MLY := $(filter %.mly
, $($1_SRCS))
1267 $1_ML4 := $(filter %.ml4
, $($1_SRCS))
1268 $1_MLC4 := $(filter %.mlc4
, $($1_SRCS))
1269 $1_MLT := $(filter %.mlt
, $($1_SRCS))
1270 $1_MLP := $(filter %.mlcpp
, $($1_SRCS))
1271 $1_ML := $(filter %.ml
%.mll
%.zog
%.mly
%.ml4
%.mlc4
%.mlt
%.mlcpp
, $($1_SRCS))
1272 $1_C := $(filter %.c
%.
cc, $($1_SRCS))
1273 $1_CMOS=$(foreach file
, $($1_ML), $(basename $(file
)).cmo
)
1274 $1_CMXS=$(foreach file
, $($1_ML), $(basename $(file
)).cmx
)
1275 $1_OBJS=$(foreach file
, $($1_C), $(basename $(file
)).o
)
1277 $1_CMXAS := $(foreach file
, $($1_CMXA), build
/$(basename $(file
)).cmxa
)
1278 $1_CMAS=$(foreach file
, $($1_CMXA), build
/$(basename $(file
)).cma
)
1280 TMPSOURCES
+= $($1_ML4:.ml4
=.ml
) $($1_MLC4:.mlc4
=.ml
) $($1_MLT:.mlt
=.ml
) $($1_MLP:.mlcpp
=.ml
) $($1_MLL:.mll
=.ml
) $($1_MLY:.mly
=.ml
) $($1_MLY:.mly
=.mli
) $($1_ZOG:.zog
=.ml
)
1282 $2: $($1_OBJS) $($1_CMXS) $($1_CMXAS)
1283 $(OCAMLOPT
) -linkall
-o
$[[@
]] \
1284 $($1_OBJS) $(LIBS_opt
) $(LIBS_flags
) \
1285 $($3_LIBS_opt) $($3_LIBS_flags) \
1286 $($5_LIBS_opt) $($5_LIBS_flags) \
1287 $($6_LIBS_opt) $($6_LIBS_flags) \
1288 $($7_LIBS_opt) $($7_LIBS_flags) \
1289 $($8_LIBS_opt) $($8_LIBS_flags) \
1290 $($9_LIBS_opt) $($9_LIBS_flags) \
1291 -I build
$($1_CMXAS) $($1_CMXS)
1293 $2.byte
: $($1_OBJS) $($1_CMOS) $($1_CMAS)
1294 $(OCAMLC
) -linkall
-o
$[[@
]] \
1295 $($1_OBJS) $(LIBS_byte
) $(LIBS_flags
) \
1296 $($3_LIBS_byte) $($3_LIBS_flags) \
1297 $($5_LIBS_byte) $($5_LIBS_flags) \
1298 $($6_LIBS_byte) $($6_LIBS_flags) \
1299 $($7_LIBS_byte) $($7_LIBS_flags) \
1300 $($8_LIBS_byte) $($8_LIBS_flags) \
1301 $($9_LIBS_byte) $($9_LIBS_flags) \
1302 -I build
$($1_CMAS) $($1_CMOS)
1304 $2.static
: $($1_OBJS) $($1_CMXS) $($1_CMXAS)
1305 $(OCAMLOPT
) -linkall
-ccopt
-static
-o
$[[@
]] \
1306 $($1_OBJS) $(LIBS_opt
) $(LIBS_flags
) \
1307 $($3_LIBS_flags) $($3_STATIC_LIBS_opt) \
1308 $($5_LIBS_flags) $($5_STATIC_LIBS_opt) \
1309 $($6_LIBS_flags) $($6_STATIC_LIBS_opt) \
1310 $($7_LIBS_flags) $($7_STATIC_LIBS_opt) \
1311 $($8_LIBS_flags) $($8_STATIC_LIBS_opt) \
1312 $($9_LIBS_flags) $($9_STATIC_LIBS_opt) \
1313 -I build
$($1_CMXAS) $($1_CMXS)
1315 $2.byte.static
: $($1_OBJS) $($1_CMOS) $($1_CMAS)
1316 $(OCAMLC
) -linkall
-ccopt
-static
-o
$[[@
]] \
1317 $($1_OBJS) $(LIBS_byte
) $(LIBS_flags
) \
1318 $($3_LIBS_flags) $($3_STATIC_LIBS_opt) \
1319 $($5_LIBS_flags) $($5_STATIC_LIBS_opt) \
1320 $($6_LIBS_flags) $($6_STATIC_LIBS_opt) \
1321 $($7_LIBS_flags) $($7_STATIC_LIBS_opt) \
1322 $($8_LIBS_flags) $($8_STATIC_LIBS_opt) \
1323 $($9_LIBS_flags) $($9_STATIC_LIBS_opt) \
1324 -I build
$($1_CMAS) $($1_CMOS)
1327 # $1 = source-code collection
1329 # $3 = GUI type (NO/GTK)
1331 # $5 = if set link GD code
1332 # $6 = if set link CryptoPP code (only for targets mlnet, mldonkey)
1333 # $7 = if set link libmagic code (only for p2p core, not for GUIs, tools etc.)
1334 # $8 = if set link libbitstring code (only for Bittorrent p2p core)
1335 # $9 = if set link libminiupnpc & libnatpmp code
1337 EXPAND
(mldonkey
,mldonkey
,NO
,mldonkey
,GD
,CRYPTOPP
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1338 EXPAND
(mldonkey
+gui
,mldonkey
+gui
,GTK
,mldonkey
+gui
,GD
,CRYPTOPP
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1339 EXPAND
(MLPROGRESS
, mlprogress
,GTK
, MLPROGRESS
)
1340 EXPAND
(MLDONKEYGUI
,mlgui
,GTK
,MLDONKEYGUI
)
1342 ifeq ("$(GUI)", "oldgui")
1343 EXPAND
(MLDONKEYGUI2
,mlgui2
,GTK
,MLDONKEYGUI2
)
1346 EXPAND
(mldc
,mldc
,NO
,mldc
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1347 EXPAND
(mldc
+gui
,mldc
+gui
,GTK
,mldc
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1348 EXPAND
(mlnap
,mlnap
,NO
,mlnap
,GD
,NO
,MAGIC
,UPNP_NATPMP
)
1349 EXPAND
(mlnap
+gui
,mlnap
+gui
,GTK
,mlnap
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1350 EXPAND
(MLNET
,mlnet
,NO
,MLNET
,GD
,CRYPTOPP
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1351 EXPAND
(mlnet
+gui
,mlnet
+gui
,GTK
,mlnet
+gui
,GD
,CRYPTOPP
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1352 EXPAND
(mlgnut
,mlgnut
,NO
,mlgnut
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1353 EXPAND
(mlgnut
+gui
,mlgnut
+gui
,GTK
,mlgnut
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1354 EXPAND
(mlg2
,mlg2
,NO
,mlg2
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1355 EXPAND
(mlg2
+gui
,mlg2
+gui
,GTK
,mlg2
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1356 EXPAND
(mlbt
,mlbt
,NO
,mlbt
,GD
,NO
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1357 EXPAND
(mlbt
+gui
,mlbt
+gui
,GTK
,mlbt
+gui
,GD
,NO
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1358 EXPAND
(mlfasttrack
,mlfasttrack
,NO
,mlfasttrack
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1359 EXPAND
(mlfasttrack
+gui
,mlfasttrack
+gui
,GTK
,mlfasttrack
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1360 EXPAND
(mlfileTP
,mlfiletp
,NO
,mlfileTP
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1361 EXPAND
(mlfileTP
+gui
,mlfiletp
+gui
,GTK
,mlfileTP
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1362 EXPAND
(mlslsk
,mlslsk
,NO
,mlslsk
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1363 EXPAND
(mlslsk
+gui
,mlslsk
+gui
,GTK
,mlslsk
+gui
,GD
,NO
,MAGIC
,NO
,UPNP_NATPMP
)
1364 EXPAND
(STARTER
,mlguistarter
,GTK
)
1365 EXPAND
(OBSERVER
,observer
)
1366 EXPAND
(MLD_HASH
,mld_hash
)
1367 EXPAND
(OCAMLPP
,ocamlpp
)
1368 EXPAND
(MAKE_TORRENT
,make_torrent
,NO
,NO
,NO
,NO
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1369 EXPAND
(BT_DHT_NODE
,bt_dht_node
,NO
,NO
,NO
,NO
,NO
,BITSTRING
,UPNP_NATPMP
)
1370 EXPAND
(SUBCONV
,subconv
)
1371 EXPAND
(MLSPLIT
,mlsplit
)
1372 EXPAND
(CONTESTER
,contester
,CRYPT
)
1373 EXPAND
(SAFEEXEC
,safeexec
,CRYPT
)
1374 EXPAND
(GET_RANGE
,get_range
)
1375 EXPAND
(COPYSOURCES
,copysources
)
1376 EXPAND
(INSTALLER
,mldonkey_installer
,GTK
,INSTALLER
)
1378 EXPAND
(SPIDER
,mlspider
)
1379 EXPAND
(DISASM
,disasm
,CURSES
)
1380 EXPAND
(ANALYSER1
,analyser1
,BIGARRAY
)
1381 EXPAND
(BTVIEW
,btview
)
1382 EXPAND
(CLUSTER
,cluster
)
1383 EXPAND
(TESTRSS
,testrss
)
1384 EXPAND
(SVG_CONVERTER
,svg_converter
)
1385 EXPAND
(TESTS
,tests
,NO
,MLNET
,GD
,CRYPTOPP
,MAGIC
,BITSTRING
,UPNP_NATPMP
)
1387 #######################################################################
1391 #######################################################################
1393 TOP_ZOG
:= $(filter %.zog
, $(TOP_SRCS
))
1394 TOP_MLL
:= $(filter %.mll
, $(TOP_SRCS
))
1395 TOP_MLY
:= $(filter %.mly
, $(TOP_SRCS
))
1396 TOP_ML4
:= $(filter %.ml4
, $(TOP_SRCS
))
1397 TOP_ML
:= $(filter %.ml
%.mll
%.zog
%.mly
%.ml4
, $(TOP_SRCS
))
1398 TOP_C
:= $(filter %.c
, $(TOP_SRCS
))
1399 TOP_CMOS
=$(foreach file
, $(TOP_ML
), $(basename $(file
)).cmo
)
1400 TOP_CMXS
=$(foreach file
, $(TOP_ML
), $(basename $(file
)).cmx
)
1401 TOP_OBJS
=$(foreach file
, $(TOP_C
), $(basename $(file
)).o
)
1403 TOP_CMXAS
:=$(foreach file
, $(TOP_CMXA
), build
/$(basename $(file
)).cmxa
)
1404 TOP_CMAS
=$(foreach file
, $(TOP_CMXA
), build
/$(basename $(file
)).cma
)
1406 TMPSOURCES
+= $(TOP_ML4
:.ml4
=.ml
) $(TOP_MLL
:.mll
=.ml
) $(TOP_MLY
:.mly
=.ml
) $(TOP_MLY
:.mly
=.mli
) $(TOP_ZOG
:.zog
=.ml
)
1408 mldonkeytop
: $(TOP_OBJS
) $(TOP_CMOS
) $(TOP_CMAS
)
1409 $(OCAMLMKTOP
) -linkall
-o
$@ \
1411 $(LIBS_byte
) $(LIBS_flags
) $(_LIBS_byte
) $(_LIBS_flags
) \
1412 $(CRYPTOPP_LIBS_byte
) $(CRYPTOPP_LIBS_flags
) \
1413 $(MAGIC_LIBS_byte
) $(MAGIC_LIBS_flags
) \
1414 -I build
$(TOP_CMAS
) $(TOP_CMOS
)
1417 #######################################################################
1421 #######################################################################
1424 opt
: $(RESFILE
) $(TMPSOURCES
) $(TARGETS
)
1426 byte
: $(TMPSOURCES
) $(foreach target
, $(TARGETS
), $(target
).byte
)
1428 static
: $(foreach target
, $(TARGETS
), $(target
).static
)
1430 ocamldoc
: ocamldoc_html
1432 ocamldoc_html
: $(CORE_DOC
) $(libclient_DOC
)
1434 $(OCAMLDOC
) -sort -dump ocamldoc
/ocamldocdump
-html
-d ocamldoc
$(INCLUDES
) $(libclient_DOC
) $(CORE_DOC
)
1436 $(LIB
)/md4_cc.o
: $(LIB
)/md4.c
1437 $(OCAMLC
) -ccopt
"$(CFLAGS) -O6 -o $(LIB)/md4_cc.o" -ccopt
"" -c
$(LIB
)/md4.c
1439 $(CDK
)/heap_c.o
: $(CDK
)/heap_c.c
1440 $(OCAMLC
) -ccopt
"$(CFLAGS) $(MORECFLAGS) -o $(CDK)/heap_c.o" -ccopt
"" -c
$(CDK
)/heap_c.c
1442 $(LIB
)/md4_as.o
: $(LIB
)/md4_
$(MD4ARCH
).s
1443 as -o
$(LIB
)/md4_as.o
$(LIB
)/md4_
$(MD4ARCH
).s
1445 $(LIB
)/md4_comp.o
: $(LIB
)/md4_
$(MD4COMP
).o
1446 cp
-f
$(LIB
)/md4_
$(MD4COMP
).o
$(LIB
)/md4_comp.o
1450 (for i in
$(GUI_CODE
)/gui
*_base.zog
; do \
1451 $(CAMLP4
) pa_o.cmo pa_zog.cma pr_o.cmo
-impl
$$i > $(GUI_CODE
)/`basename $$i zog`ml
;\
1454 #######################################################################
1458 #######################################################################
1462 etags
-a
`find . -name "*.[chs]" -o -name "*.cc"`
1465 rm -f
*.cm? donkey_
* *.byte
*.cm??
$(TARGETS
) *~ TAGS
*.o core
*.static
*.a
1466 rm -f build
/*.a build
/*.cma build
/*.cmxa
1468 rm -f mldonkey mlgui mlnet.exe mlgui.exe mldonkeytop mldonkeytop.exe
1469 rm -f mlbt mlbt
+gui mlbt.exe
1470 rm -f mlfiletp mlfiletp
+gui mlfiletp.exe
1471 rm -f mldc mldc
+gui mldc.exe
1472 rm -f mlfasttrack mlfasttrack
+gui mlfasttrack.exe
1473 rm -f svg_converter svg_converter.byte mld_hash make_torrent bt_dht_node copysources get_range subconv testrss
1474 rm -f svg_converter.exe mld_hash.exe make_torrent.exe bt_dht_node.exe copysources.exe get_range.exe subconv.exe testrss.exe
1475 rm -f tests tests.exe
1476 (for i in
$(SUBDIRS
); do \
1477 rm -f
$$i/*.cm?
$$i/*.o
$$i/*.annot
; \
1483 moreclean
: clean tmpclean
1485 releaseclean
: clean moreclean
1487 rm -rf patches
/build
1488 rm -f config
/Makefile.config
1489 rm -f config
/mldonkey.rc
1490 rm -f config
/config.cache config
/config.log config
/config.status
1491 rm -f config
/config.h
1492 rm -f config
/confdefs.h
1493 rm -rf config
/autom4te.cache
/
1494 rm -f packages
/rpm
/*.spec
1495 rm -f packages
/rpm
/Makefile
1496 rm -f packages
/slackware
/mldonkey.options
1497 rm -f packages
/windows
/mlnet.nsi
1498 rm -f src
/daemon
/driver
/driverGraphics.ml
1499 rm -f src
/networks
/bittorrent
/bTUdpTracker.ml
1500 rm -f src
/networks
/donkey
/donkeySui.ml
1501 rm -f src
/networks
/donkey
/donkeyNodesDat.ml
1502 rm -f src
/utils
/bitstring
/bitstring.ml
1503 rm -f src
/utils
/bitstring
/bitstring_persistent.ml
1504 rm -f src
/utils
/lib
/autoconf.ml
1505 rm -f src
/utils
/lib
/autoconf.ml.new
1506 rm -f src
/utils
/lib
/gAutoconf.ml
1507 rm -f src
/utils
/lib
/gAutoconf.ml.new
1508 rm -f src
/utils
/lib
/magic.ml
1509 rm -f src
/utils
/lib
/misc2.ml
1510 rm -f src
/utils
/cdk
/tar.ml
1511 rm -f icons
/tux
/*.ml_icons
1512 rm -f icons
/tux
/*.ml
1513 rm -f icons
/kde
/*.ml_icons
1514 rm -f icons
/kde
/*.ml
1515 rm -f icons
/mldonkey
/*.ml_icons
1516 rm -f icons
/mldonkey
/*.ml
1517 rm -f icons
/rsvg
/*.ml_icons
1518 rm -f icons
/rsvg
/*.ml
1519 rm -f tools
/zoggy
/*.cm?
1521 rm -rf mldonkey-distrib
*
1522 rm -f mldonkey-
$(CURRENT_VERSION
).
*
1524 distclean: releaseclean
1525 rm -rf patches
/local
1526 rm -rf mldonkey-distrib-
*
1529 maintainerclean
: distclean
1530 echo
rm -f
$(GUI_CODE
)/gui.ml
$(GUI_CODE
)/gui_zog.ml
1531 rm -f config
/configure
1534 .PHONY
: TAGS
clean tmpclean moreclean releaseclean
distclean maintainerclean ocamldoc_html
1538 PA_ZOG_FILES
=tools
/zoggy
/zog_types.ml tools
/zoggy
/zog_messages.ml tools
/zoggy
/zog_misc.ml tools
/zoggy
/pa_zog.ml
1540 pa_zog.cma
: $(PA_ZOG_FILES
)
1541 $(OCAMLC
) -I tools
/zoggy
-I
+camlp4
-pp
"$(CAMLP4OF) -loc loc" -a
-o pa_zog.cma
$(PA_ZOG_FILES
)
1544 OCAMLPP
=.
/ocamlpp.byte
1546 $(ZOGSOURCES
): pa_zog.cma
1547 $(MLTSOURCES
): $(OCAMLPP
)
1548 #$(TMPSOURCES): $(OCAMLPP)
1550 #ocamlpp.byte: tools/ocamlpp.ml
1551 # $(OCAMLC) str.cma -o ocamlpp.byte tools/ocamlpp.ml
1553 ifeq ("$(GUI_CODE)", "OLDGUI")
1560 windres
-o resfile.o config
/mldonkey.rc
1562 depend
: $(RESFILE
) \
1563 $(PA_ZOG
) $(LIB
)/http_lexer.ml
$(TMPSOURCES
)
1564 @
$(OCAMLDEP
) $(OCAMLDEP_OPTIONS
) $(patsubst -I
+labl
$(GTK
),,$(INCLUDES
)) *.ml
*.mli
> .depend
1565 @
(for i in
$(SUBDIRS
); do \
1566 $(OCAMLDEP
) $(OCAMLDEP_OPTIONS
) $(patsubst -I
+labl
$(GTK
),,$(INCLUDES
)) $$i/*.ml
$$i/*.mli
>> .depend
; \
1567 $(OCAMLPP
) $$i/*.mlt
>> .depend
; \
1569 @if
test "$(GUI)" = "newgui2"; then \
1570 $(MAKE
) svg_converter.byte
; \
1573 $(LOCAL
)/ocamlopt-
$(REQUIRED_OCAML
)/Makefile
: patches
/ocamlopt-
$(REQUIRED_OCAML
).
tar.gz
1574 rm -rf
$(LOCAL
)/ocamlopt-
$(REQUIRED_OCAML
)
1577 gzip
-cd ..
/ocamlopt-
$(REQUIRED_OCAML
).
tar.gz |
tar xf
-; \
1578 touch ocamlopt-
$(REQUIRED_OCAML
)/Makefile
1580 $(LOCAL
)/ocamlopt-
$(REQUIRED_OCAML
)/ocamlopt
: $(LOCAL
)/ocamlopt-
$(REQUIRED_OCAML
)/Makefile
1581 cd
$(LOCAL
)/ocamlopt-
$(REQUIRED_OCAML
); $(MAKE
)
1583 ifeq ("$(BITTORRENT)", "yes")
1584 BT_UTILS
=make_torrent bt_dht_node
1585 BT_UTILS_BYTE
=$(foreach x
, $(BT_UTILS
), $(x
).byte
)
1586 BT_UTILS_STATIC
=$(foreach x
, $(BT_UTILS
), $(x
).static
)
1587 BT_UTILS_BYTE_STATIC
=$(foreach x
, $(BT_UTILS
), $(x
).byte.static
)
1590 utils.byte
: mld_hash.byte
$(BT_UTILS_BYTE
) copysources.byte get_range.byte subconv.byte
1591 utils.opt
: svg_converter mld_hash
$(BT_UTILS
) copysources get_range subconv
1592 utils.opt.static
: svg_converter mld_hash.static
$(BT_UTILS_STATIC
) copysources.static get_range.static subconv.static
1593 utils.byte.static
: mld_hash.byte.static
$(BT_UTILS_BYTE_STATIC
) copysources.byte.static get_range.byte.static subconv.byte.static
1595 if
test "$(TARGET_TYPE)" = "byte"; then \
1596 $(MAKE
) utils.byte.static
; \
1598 $(MAKE
) utils.opt.static
; \
1601 if
test "$(TARGET_TYPE)" = "byte"; then \
1602 $(MAKE
) utils.byte
; \
1604 $(MAKE
) utils.opt
; \
1607 #######################################################################
1609 # Building binary distribs
1611 #######################################################################
1613 DISDIR
=mldonkey-distrib
1614 #distrib/Readme.txt: $(GUI_CODE)/gui_messages.ml
1615 # grep -A 1000 help_text $(GUI_CODE)/gui_messages.ml | grep -v '"' > distrib/Readme.txt
1619 rm -f
$(CDK
)/heap_c.o
1620 MORECFLAGS
="-I patches/ocaml-3.06/ -DHEAP_DUMP" $(MAKE
) $(CDK
)/heap_c.o
1623 RELEASE_TARGETS
=mlnet
1625 ifneq ("$(GUI)" , "no")
1626 RELEASE_TARGETS
+= mlgui mlnet
+gui mlguistarter
1631 cp
-R distrib
$(DISDIR
)
1632 for i in
$(RELEASE_TARGETS
); do \
1633 cp
-f
$$i $(DISDIR
)/$$i && \
1634 if
[ "$(SYSTEM)" != "macos" ]; then \
1635 strip $(DISDIR
)/$$i; \
1638 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1639 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1640 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1641 $(COMPRESS
) mldonkey-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s`$(GLIBC_VERSION_ARCH
).
tar
1643 release.static
: static opt
1645 cp
-R distrib
$(DISDIR
)
1646 for i in
$(RELEASE_TARGETS
); do \
1647 cp
$$i.static
$(DISDIR
)/$$i && strip $(DISDIR
)/$$i; \
1649 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1650 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1651 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1652 $(COMPRESS
) mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1654 release.mlnet.static
: mlnet.static
1656 cp
-R distrib
$(DISDIR
)
1657 cp mlnet.static
$(DISDIR
)/mlnet
&& strip $(DISDIR
)/mlnet
1658 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1659 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1660 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1661 $(COMPRESS
) mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1663 release.mlnet.byte.static
: mlnet.byte.static
1665 cp
-R distrib
$(DISDIR
)
1666 cp mlnet.byte.static
$(DISDIR
)/mlnet
1667 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1668 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1669 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).byte.static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1670 $(COMPRESS
) mldonkey-
$(CURRENT_VERSION
).byte.static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1672 release.mlnet.distri
: mlnet mlnet.static
1674 cp
-R distrib
$(DISDIR
)
1675 for i in
"mlnet mlnet.static"; do \
1676 cp
-f
$$i $(DISDIR
)/$$i && \
1677 if
[ "$(SYSTEM)" != "macos" ]; then \
1678 strip $(DISDIR
)/$$i; \
1681 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1682 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1683 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1684 $(COMPRESS
) mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1686 release.utils.shared
: mld_hash
$(BT_UTILS
)
1689 for i in
"mld_hash $(BT_UTILS)"; do \
1690 cp
-f
$$i $(DISDIR
)/$$i && \
1691 if
[ "$(SYSTEM)" != "macos" ]; then \
1692 strip $(DISDIR
)/$$i; \
1695 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1696 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1697 mv
$(DISDIR
).
tar mldonkey-tools-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1698 $(COMPRESS
) mldonkey-tools-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1700 release.utils.static
: mld_hash.static
$(BT_UTILS_STATIC
)
1703 cp
-f mld_hash.static
$(DISDIR
)/mld_hash
&& strip $(DISDIR
)/mld_hash
1704 ifeq ("$(BITTORRENT)", "yes")
1705 for i in
"$(BT_UTILS_STATIC)"; do cp
-f
$$i $(DISDIR
)/$$i && strip $(DISDIR
)/$$i; done
1707 mv
$(DISDIR
) $(DISDIR
)-$(CURRENT_VERSION
)
1708 tar cf
$(DISDIR
).
tar $(DISDIR
)-$(CURRENT_VERSION
)
1709 mv
$(DISDIR
).
tar mldonkey-tools-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1710 $(COMPRESS
) mldonkey-tools-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`$(GLIBC_VERSION_ARCH
).
tar
1714 rm -f config
/Makefile.config
1715 cd ..
; tar zcf mldonkey-
$(CURRENT_VERSION
).sources.
tar.gz mldonkey
1719 $(DISDIR
): static distrib
/Readme.txt
1721 cp
-R distrib
$(DISDIR
)
1722 rm -rf
$(DISDIR
)/CVS
1723 for i in
$(RELEASE_TARGETS
); do \
1724 cp
$$i.static
$(DISDIR
)/$$i && strip $(DISDIR
)/$$i; \
1726 tar cf
$(DISDIR
).
tar $(DISDIR
)
1727 mv
$(DISDIR
).
tar mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`.
tar
1728 bzip2 mldonkey-
$(CURRENT_VERSION
).static.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`.
tar
1730 SHADIR
=mldonkey-shared
1734 $(SHADIR
): static distrib
/Readme.txt
1736 cp
-R distrib
$(SHADIR
)
1737 rm -rf
$(SHADIR
)/CVS
1738 for i in
$(RELEASE_TARGETS
); do \
1739 cp
$$i.static
$(SHADIR
)/$$i && strip $(SHADIR
)/$$i; \
1741 tar cf
$(SHADIR
).
tar $(SHADIR
)
1742 mv
$(SHADIR
).
tar mldonkey-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`.
tar
1743 bzip2 mldonkey-
$(CURRENT_VERSION
).shared.
$(MD4ARCH
)-`uname -s | sed "s/\//_/"`.
tar
1747 mkdir
-p
$(HOME
)/release-
$(CURRENT_VERSION
)
1748 .
/configure
--host
=i386-pc-linux-gnu
1749 rm -f mlnet mlnet.static mlnet
+gui mlnet
+gui.static
$(LIB
)/md4_comp.
* $(LIB
)/md4_as.
*
1752 cp mldonkey-
$(CURRENT_VERSION
).static.i386-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1754 cp mldonkey-
$(CURRENT_VERSION
).shared.i386-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1756 mkdir
-p
$(HOME
)/release-
$(CURRENT_VERSION
)
1757 .
/configure
--host
=i686-pc-linux-gnu
1758 rm -f mlnet
+gui mlnet
+gui.static mlnet mlnet.static
$(LIB
)/md4_comp.
* $(LIB
)/md4_as.
*
1761 cp mldonkey-
$(CURRENT_VERSION
).static.i686-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1763 cp mldonkey-
$(CURRENT_VERSION
).shared.i686-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1765 mkdir
-p
$(HOME
)/release-
$(CURRENT_VERSION
)
1766 .
/configure
--host
=i586-pc-linux-gnu
1767 rm -f mlnet
+gui mlnet
+gui.static mlnet mlnet.static
$(LIB
)/md4_comp.
* $(LIB
)/md4_as.
*
1770 cp mldonkey-
$(CURRENT_VERSION
).static.i586-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1772 cp mldonkey-
$(CURRENT_VERSION
).shared.i586-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1774 mkdir
-p
$(HOME
)/release-
$(CURRENT_VERSION
)
1775 .
/configure
--host
=i486-pc-linux-gnu
1776 rm -f mlnet
+gui mlnet
+gui.static mlnet mlnet.static
$(LIB
)/md4_comp.
* $(LIB
)/md4_as.
*
1779 cp mldonkey-
$(CURRENT_VERSION
).static.i486-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1781 cp mldonkey-
$(CURRENT_VERSION
).shared.i486-Linux.
tar.bz2
$(HOME
)/release-
$(CURRENT_VERSION
)/
1784 .
/configure
--host
=i586-pc-linux-gnu
1787 rm -rf ..
/mldonkey-rpm rpm
/mldonkey
1788 rm -f rpm
/mldonkey.sources.
tar.bz2
1789 cp
-dpR . ..
/mldonkey-rpm
1790 mv ..
/mldonkey-rpm rpm
/mldonkey
1791 cd rpm
/mldonkey
; rm -rf
**/*.cm?
**/*.o
1792 cd rpm
; tar jcf mldonkey.sources.
tar.bz2 mldonkey
1797 sourcedist
: copysources
1799 cp packages
/rpm
/mldonkey.spec
/tmp
/mldonkey
/
1800 cp packages
/rpm
/mldonkey.init
/tmp
/mldonkey
/distrib
/
1801 cp packages
/rpm
/mldonkey.sysconfig
/tmp
/mldonkey
/distrib
/
1802 cd
/tmp
; tar jcf
/tmp
/mldonkey.sources.
tar.bz2 mldonkey
1803 cp
/tmp
/mldonkey.sources.
tar.bz2 .
1806 $(RPMBUILD
) -ta mldonkey.sources.
tar.bz2
1809 #######################################################################
1813 #######################################################################
1818 .SUFFIXES
: .mli .ml .cmx .cmo .o .c .cmi .mll .mly .zog .plugindep .xpm .ml .
cc .ml_icons .ml4 .mlc4 .mlt .mlii .mlcpp .svg
1821 $(OCAMLC
) $(INCLUDES
) -c
$<
1825 $(OCAMLC
) -i
$(INCLUDES
) -c
$< > $*.mlii
1829 $(OCAMLC
) $(INCLUDES
) -c
$<
1832 echo
"let t = [|" > $@
1833 grep
'"' $< | sed
's/",$$/";/' | sed
's/"};$$/"/' >> $@
1835 echo
"let mini = [|" >> $@
1836 grep
'"' $*_mini.xpm | sed
's/",$$/";/' | sed
's/"};$$/"/' >> $@
1842 .
/svg_converter.byte
$@
1845 $(OCAMLOPT
) $(DEVFLAGSOPT
) $(DEVFLAGS
) $(INCLUDES
) -c
$<
1848 $(OCAMLC
) $(DEVFLAGS
) $(INCLUDES
) -c
$<
1851 @
cpp -P
$< $(FIX_BROKEN_CPP
) > $@
1853 %.ml
: %.mlp
$(BITSTRING
)/pa_bitstring.cmo
1854 $(CAMLP4OF
) build
/bitstring.cma
$(BITSTRING
)/bitstring_persistent.cmo
$(BITSTRING
)/pa_bitstring.cmo
-impl
$< -o
$@
1866 @
$(CAMLP4
) pa_o.cmo .
/pa_zog.cma pr_o.cmo
-impl
$< > $@
1869 @echo
'# 1 "$<"' > $@
1870 @
$(CAMLP4
) pa_o.cmo pa_op.cmo pr_o.cmo
-impl
$< >> $@
1873 @
$(CAMLP4OF
) -I
+camlp4
-impl
$< -o
$@
1876 @
$(OCAMLPP
) -pp
$< > $@
1879 $(OCAMLC
) -verbose
-ccopt
"-I $(OCAML_SRC)/byterun -o $*.o" -ccopt
"$(CFLAGS)" $(LIBS_flags
) -c
$<
1882 $(CXX
) $(CXXFLAGS
) $(CRYPTOPPFLAGS
) -o
$*.o
"-I$(OCAMLLIB)" -c
$<
1885 $(OCAMLC
) -o
$*.byte
$(LIBS
) $<
1888 $(OCAMLOPT
) -o
$*.opt
$(OPTLIBS
) $<
1894 src
/utils
/lib
/sha1_c.o
: src
/utils
/lib
/sha1_c.h \
1895 src
/utils
/lib
/os_stubs.h
1897 src
/daemon
/common
/commonHasher_c.o
: src
/utils
/lib
/sha1_c.h
1898 src
/utils
/lib
/stubs_c.o
: src
/utils
/lib
/sha1_c.h