1 # $NetBSD: Makefile,v 1.3 2002/01/21 20:04:36 tv Exp $ 2 3 HOSTLIB= nbcompat 4 5 SRCS= basename.c dirname.c err.c fgetln.c flock.c fparseln.c \ 6 getmode.c pread.c pwrite.c setprogname.c strlcat.c strlcpy.c vis.c 7 HOST_CPPFLAGS+= -I. -I${.CURDIR} -DHAVE_CONFIG_H 8 9 .PATH: ${.CURDIR}/../../lib/libc/gen \ 10 ${.CURDIR}/../../lib/libc/string 11 12 DPSRCS= config.h 13 CLEANFILES= config.cache config.log config.status config.stamp confdefs.h defs.mk 14 15 # Get components of Berkeley DB. 16 _CURDIR:= ${.CURDIR} 17 .CURDIR:= ${_CURDIR}/../../lib/libc 18 .include "${.CURDIR}/db/Makefile.inc" 19 .CURDIR:= ${_CURDIR} 20 21 HOST_CPPFLAGS+= ${CPPFLAGS} 22 SRCS:= ${SRCS:Nndbm.c} 23 24 config.h defs.mk: config.stamp 25 config.stamp: configure config.h.in defs.mk.in 26 CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 27 sh ${.CURDIR}/configure --cache-file=config.cache 28 @touch $@ 29 30 # Run by hand, then "configure" script committed: 31 regen: 32 cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 33 34 .include <bsd.hostlib.mk> 35