1 # This file is part of mktorrent
2 # Copyright (C) 2007, 2009 Emil Renner Berthing
4 # mktorrent is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
9 # mktorrent is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
18 #-------------Interesting variables for you to override :)--------------------
20 # Default settings shown
28 # Use multiple POSIX threads for calculating hashes. This should be slightly
29 # faster. Much faster on systems with multiple CPUs and fast harddrives.
32 # Use the SHA1 implementation in the OpenSSL library instead of compiling our
36 # Enable long options, started with two dashes.
39 # This is needed on certain 32bit OSes (notably 32bit Linux) to support
40 # files and torrents > 2Gb.
43 # Disable a redundant check to see if the amount of bytes read from files while
44 # hashing matches the sum of reported file sizes. I've never seen this fail. It
45 # will fail if you change files yet to be hashed while mktorrent is running,
46 # but who'd want to do that?
49 # Set the number of microseconds mktorrent will wait between every progress
50 # report when hashing multithreaded. Default is 200000, that is 0.2 seconds
51 # between every update.
52 #PROGRESS_PERIOD = 200000
54 # Maximum number of file descriptors mktorrent will open when scanning the
55 # directory. Default is 100, but I have no idea what a sane default for this
56 # value is, so your number is probably better.
59 # Enable leftover debugging code. Usually just spams you with lots of useless
63 #-------------Nothing interesting below this line-----------------------------
65 program
= mktorrent_crc
69 SRCS
= crc32.c ftw.c init.c sha1.c hash.c output.c main.c