ELinks 0.12pre5.GIT
[elinks.git] / src / util / Makefile
blob17b032276279fb676fde661219998093a5d7e5c4
1 top_builddir=../..
2 include $(top_builddir)/Makefile.config
4 INCLUDES += $(GNUTLS_CFLAGS) $(OPENSSL_CFLAGS)
6 OBJS-$(call not,$(CONFIG_SMALL)) += fastfind.o
7 OBJS-$(CONFIG_CSS) += scanner.o
8 OBJS-$(CONFIG_DEBUG) += memdebug.o
9 OBJS-$(CONFIG_DOM) += scanner.o
11 # Use own MD5 implementation if testing libc or there's no OpenSSL
12 # (either the real thing or GNUTLS compat wrappers).
13 OBJS-$(CONFIG_OWN_LIBC) += md5.o
14 ifeq ($(CONFIG_GNUTLS_OPENSSL_COMPAT),no)
15 OBJS-$(call not,$(CONFIG_OPENSSL)) += md5.o
16 endif
18 ifeq ($(CONFIG_BITTORRENT),yes)
19 # BitTorrent is the only user. Compile in SHA1 if testing libc or
20 # there is no OpenSSL. The GNUTLS OpenSSL wrappers doesn't have it.
21 OBJS-$(CONFIG_OWN_LIBC) += sha1.o
22 OBJS-$(call not,$(CONFIG_OPENSSL)) += sha1.o
23 endif
25 OBJS = \
26 base64.o \
27 color.o \
28 conv.o \
29 env.o \
30 error.o \
31 file.o \
32 hash.o \
33 memlist.o \
34 memory.o \
35 secsave.o \
36 snprintf.o \
37 string.o \
38 time.o
40 include $(top_srcdir)/Makefile.lib