1 # $NetBSD: Makefile,v 1.59 2012/06/04 19:06:45 joerg Exp $
6 SRCS
= atoll.c
basename.c cdbr.c cdbw.c dirname.c \
7 fgetln.c flock.c fparseln.c fpurge.c \
8 getcap.c getline.c getmode.c getopt_long.c gettemp.c \
10 issetugid.c lchflags.c lchmod.c lchown.c libyywrap.c \
11 md2.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c \
12 mi_vector_hash.c mkdtemp.c \
13 mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \
15 raise_default_signal.c rmd160.c rmd160hl.c \
16 setenv.c setgroupent.c \
17 setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \
18 sha256hl.c sha384hl.c sha512hl.c snprintf.c stat_flags.c \
19 strlcat.c strlcpy.c strmode.c strndup.c strsep.c strsuftoll.c \
20 strtoll.c unvis.c vis.c err.c errx.c verr.c verrx.c \
21 vwarn.c vwarnx.c warn.c warnx.c fts.c glob.c efun.c
23 SRCS
= atoll.c
basename.c dirname.c fgetln.c flock.c fparseln.c \
24 fpurge.c getline.c getmode.c getopt_long.c gettemp.c \
26 issetugid.c lchflags.c lchmod.c lchown.c libyywrap.c \
27 md2.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c \
28 mi_vector_hash.c mkdtemp.c \
29 mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \
31 raise_default_signal.c rmd160.c rmd160hl.c \
32 setenv.c setgroupent.c \
33 setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \
34 sha256hl.c sha384hl.c sha512hl.c snprintf.c stat_flags.c \
35 strlcat.c strlcpy.c strmode.c strndup.c strsep.c strsuftoll.c \
36 strtoll.c unvis.c vis.c err.c errx.c verr.c verrx.c \
37 vwarn.c vwarnx.c warn.c warnx.c fts.c glob.c efun.c
40 BUILD_OSTYPE
!= uname
-s
42 # Disable use of pre-compiled headers on Darwin.
43 .if
${BUILD_OSTYPE} == "Darwin"
44 CPPFLAGS
+= -no-cpp-precomp
47 # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
48 # other file ops, on many systems, without changing function names.
50 CPPFLAGS
+= -I.
-I.
/include -I
${.CURDIR
} -I
${.CURDIR
}/sys \
51 -DHAVE_NBTOOL_CONFIG_H
=1 -D_FILE_OFFSET_BITS
=64
53 .PATH
: ${.CURDIR
}/..
/..
/lib
/libc
/cdb \
54 ${.CURDIR
}/..
/..
/lib
/libc
/gen \
55 ${.CURDIR
}/..
/..
/lib
/libc
/hash \
56 ${.CURDIR
}/..
/..
/lib
/libc
/hash
/md2 \
57 ${.CURDIR
}/..
/..
/lib
/libc
/hash
/md5 \
58 ${.CURDIR
}/..
/..
/lib
/libc
/hash
/rmd160 \
59 ${.CURDIR
}/..
/..
/lib
/libc
/hash
/sha1 \
60 ${.CURDIR
}/..
/..
/lib
/libc
/hash
/sha2 \
61 ${.CURDIR
}/..
/..
/lib
/libc
/md \
62 ${.CURDIR
}/..
/..
/lib
/libc
/stdio \
63 ${.CURDIR
}/..
/..
/lib
/libc
/stdlib \
64 ${.CURDIR
}/..
/..
/lib
/libc
/string \
65 ${.CURDIR
}/..
/..
/lib
/libutil \
66 ${.CURDIR
}/..
/..
/common
/lib
/libc
/string \
67 ${.CURDIR
}/..
/..
/common
/lib
/libc
/hash
/rmd160 \
68 ${.CURDIR
}/..
/..
/common
/lib
/libc
/hash
/sha1 \
69 ${.CURDIR
}/..
/..
/common
/lib
/libc
/hash
/sha2 \
70 ${.CURDIR
}/..
/..
/common
/lib
/libc
/md \
71 ${.CURDIR
}/..
/..
/common
/lib
/libc
/stdlib \
72 ${.CURDIR
}/..
/..
/external
/bsd
/flex
/dist
75 CLEANFILES
+= config.log config.status configure.lineno
*.stamp
77 # Get components of Berkeley DB.
79 .CURDIR
:= ${_CURDIR}/..
/..
/lib
/libc
80 .
include "${.CURDIR}/db/Makefile.inc"
85 config.cache
: include/.stamp configure nbtool_config.h.in defs.mk.in
87 CC
=${HOST_CC
:Q
} CFLAGS
=${HOST_CFLAGS
:Q
} LDFLAGS
=${HOST_LDFLAGS
:Q
} \
88 ${HOST_SH} ${.CURDIR
}/configure
--cache-file
=config.cache
93 # Run "${TOOLDIR}/bin/nbmake-${MACHINE} regen" by hand after editing
94 # configure.ac. See more detailed instructions in configure.ac.
96 cd
${.CURDIR
} && ${TOOLDIR}/bin
/${_TOOL_PREFIX}autoconf
97 cd
${.CURDIR
} && ${TOOLDIR}/bin
/${_TOOL_PREFIX}autoheader
100 mkdir
-p
include/sys
include/machine
include/rpc
include/arpa
104 -rm -f nbtool_config.h confdefs.h defs.mk
108 HOST_CPPFLAGS
:= ${CPPFLAGS}
111 .
include <bsd.hostlib.mk
>