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
26 DEFINES
+= -DUSE_PTHREADS
27 SRCS
:= $(SRCS
:hash.c
=hash_pthreads.c
)
32 DEFINES
+= -DUSE_OPENSSL
33 SRCS
:= $(SRCS
:sha1.c
=)
37 .
ifdef USE_LONG_OPTIONS
38 DEFINES
+= -DUSE_LONG_OPTIONS
41 .
ifdef USE_LARGE_FILES
42 DEFINES
+= -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS
=64
46 DEFINES
+= -DNO_HASH_CHECK
50 DEFINES
+= -DMAX_OPENFD
="$(MAX_OPENFD)"
63 $(CC
) $(CFLAGS
) $(DEFINES
) -DPRIoff
="\"`./prefix`d\"" -DVERSION
="\"$(version)\"" -c
$(.IMPSRC
)
65 $(OBJS
): $(HEADERS
) prefix