2002-01-21 23:04:36 +03:00
|
|
|
# $NetBSD: Makefile,v 1.3 2002/01/21 20:04:36 tv Exp $
|
2001-12-12 00:17:56 +03:00
|
|
|
|
|
|
|
HOSTLIB= nbcompat
|
|
|
|
|
2002-01-21 23:04:36 +03:00
|
|
|
SRCS= basename.c dirname.c err.c fgetln.c flock.c fparseln.c \
|
|
|
|
getmode.c pread.c pwrite.c setprogname.c strlcat.c strlcpy.c vis.c
|
|
|
|
HOST_CPPFLAGS+= -I. -I${.CURDIR} -DHAVE_CONFIG_H
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}/../../lib/libc/gen \
|
|
|
|
${.CURDIR}/../../lib/libc/string
|
2001-12-12 00:17:56 +03:00
|
|
|
|
|
|
|
DPSRCS= config.h
|
2002-01-21 23:04:36 +03:00
|
|
|
CLEANFILES= config.cache config.log config.status config.stamp confdefs.h defs.mk
|
|
|
|
|
|
|
|
# Get components of Berkeley DB.
|
|
|
|
_CURDIR:= ${.CURDIR}
|
|
|
|
.CURDIR:= ${_CURDIR}/../../lib/libc
|
|
|
|
.include "${.CURDIR}/db/Makefile.inc"
|
|
|
|
.CURDIR:= ${_CURDIR}
|
|
|
|
|
|
|
|
HOST_CPPFLAGS+= ${CPPFLAGS}
|
|
|
|
SRCS:= ${SRCS:Nndbm.c}
|
2001-12-12 00:17:56 +03:00
|
|
|
|
2002-01-21 23:04:36 +03:00
|
|
|
config.h defs.mk: config.stamp
|
|
|
|
config.stamp: configure config.h.in defs.mk.in
|
|
|
|
CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
|
|
|
|
sh ${.CURDIR}/configure --cache-file=config.cache
|
|
|
|
@touch $@
|
2001-12-12 00:17:56 +03:00
|
|
|
|
|
|
|
# Run by hand, then "configure" script committed:
|
|
|
|
regen:
|
|
|
|
cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
|
|
|
|
|
|
|
|
.include <bsd.hostlib.mk>
|