NetBSD/tools/compat/Makefile

83 lines
2.5 KiB
Makefile
Raw Normal View History

2006-08-26 22:26:14 +04:00
# $NetBSD: Makefile,v 1.44 2006/08/26 18:26:14 christos Exp $
HOSTLIB= nbcompat
SRCS= atoll.c basename.c dirname.c fgetln.c flock.c fparseln.c \
2005-09-25 00:52:22 +04:00
getmode.c getopt_long.c gettemp.c heapsort.c \
issetugid.c lchflags.c lchmod.c lchown.c libyywrap.c \
md2.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c mkdtemp.c \
2003-03-14 06:38:42 +03:00
mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \
pw_scan.c rmd160.c rmd160hl.c setenv.c setgroupent.c \
setpassent.c setprogname.c sha1.c sha1hl.c sha2.c \
sha256hl.c sha384hl.c sha512hl.c snprintf.c \
2003-03-14 06:38:42 +03:00
strlcat.c strlcpy.c strmode.c strsep.c strsuftoll.c \
strtoll.c unvis.c vis.c err.c errx.c verr.c verrx.c \
2006-08-26 22:26:14 +04:00
vwarn.c vwarnx.c warn.c warnx.c fts.c glob.c efun.c
BUILD_OSTYPE!= uname -s
# Disable use of pre-compiled headers on Darwin.
.if ${BUILD_OSTYPE} == "Darwin"
CPPFLAGS+= -no-cpp-precomp
.endif
# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
# other file ops, on many systems, without changing function names.
CPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_NBTOOL_CONFIG_H=1 \
-D_FILE_OFFSET_BITS=64
.PATH: ${.CURDIR}/../../lib/libc/gen \
${.CURDIR}/../../lib/libc/hash \
2005-09-25 00:52:22 +04:00
${.CURDIR}/../../lib/libc/hash/md2 \
2005-09-24 23:06:20 +04:00
${.CURDIR}/../../lib/libc/hash/md5 \
${.CURDIR}/../../lib/libc/hash/rmd160 \
${.CURDIR}/../../lib/libc/hash/sha1 \
${.CURDIR}/../../lib/libc/hash/sha2 \
${.CURDIR}/../../lib/libc/md \
${.CURDIR}/../../lib/libc/stdio \
${.CURDIR}/../../lib/libc/stdlib \
${.CURDIR}/../../lib/libc/string \
2006-08-26 22:26:14 +04:00
${.CURDIR}/../../lib/libutil \
2005-12-20 23:39:15 +03:00
${.CURDIR}/../../common/lib/libc/string \
${.CURDIR}/../../common/lib/libc/hash/sha1 \
${.CURDIR}/../../common/lib/libc/md \
2006-08-26 22:26:14 +04:00
${.CURDIR}/../../usr.bin/lex
DPSRCS+= defs.mk
CLEANFILES+= config.log config.status configure.lineno *.stamp
# Get components of Berkeley DB.
_CURDIR:= ${.CURDIR}
.CURDIR:= ${_CURDIR}/../../lib/libc
.include "${.CURDIR}/db/Makefile.inc"
.CURDIR:= ${_CURDIR}
2005-09-13 19:32:48 +04:00
SRCS:= ${SRCS:Nndbm*.c}
config.cache: include/.stamp configure nbtool_config.h.in defs.mk.in
rm -f ${.TARGET}
CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
defs.mk: config.cache
@touch ${.TARGET}
# Run by hand, then "configure" script committed:
regen:
2004-06-19 00:26:51 +04:00
cd ${.CURDIR} && ${TOOLDIR}/bin/${_TOOL_PREFIX}autoconf
include/.stamp:
mkdir -p include/sys include/machine include/rpc
@touch ${.TARGET}
cleandir:
-rm -f nbtool_config.h confdefs.h defs.mk
-rm -r -f include
-rm -f config.cache
HOST_CPPFLAGS:= ${CPPFLAGS}
CPPFLAGS:= # empty
.include <bsd.hostlib.mk>