/
Makefile
67 lines (60 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# $Id: Makefile,v 1.1 2006/11/20 13:38:01 tho Exp $
include common.mk
include ../Makefile.conf
LIB = u
# toolbox sources
SRCS = toolbox/memory.c \
toolbox/misc.c \
toolbox/str.c \
toolbox/buf.c \
toolbox/log.c
ifndef NO_HMAP
SRCS += toolbox/hmap.c
endif
ifndef NO_CONFIG
SRCS += toolbox/config.c
endif
ifndef NO_ENV
SRCS += toolbox/env.c
endif
ifndef NO_NET
SRCS += toolbox/net.c toolbox/uri.c
endif
# missing sources
ifndef HAVE_SYSLOG
SRCS += missing/syslog.c
endif
ifndef HAVE_STRTOK_R
SRCS += missing/strtok_r.c
endif
ifndef HAVE_UNLINK
SRCS += missing/unlink.c
endif
ifndef HAVE_GETPID
SRCS += missing/getpid.c
endif
ifndef HAVE_FNMATCH
SRCS += missing/fnmatch.c
endif
ifndef HAVE_TIMEGM
SRCS += missing/timegm.c
endif
ifndef HAVE_STRSEP
SRCS += missing/strsep.c
endif
ifndef HAVE_STRLCPY
SRCS += missing/strlcpy.c
endif
ifndef HAVE_STRLCAT
SRCS += missing/strlcat.c
endif
ifndef HAVE_GETTIMEOFDAY
SRCS += missing/gettimeofday.c
endif
ifndef HAVE_DAEMON
SRCS += missing/daemon.c
endif
include lib.mk
# MacOSX ld(1) bug workaround
install-hook-post:
$(RANLIB) $(LIBDIR)/libu.a