Makefile revision 1.3
1# $NetBSD: Makefile,v 1.3 2002/01/21 20:04:36 tv Exp $ 2 3HOSTLIB= nbcompat 4 5SRCS= 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 7HOST_CPPFLAGS+= -I. -I${.CURDIR} -DHAVE_CONFIG_H 8 9.PATH: ${.CURDIR}/../../lib/libc/gen \ 10 ${.CURDIR}/../../lib/libc/string 11 12DPSRCS= config.h 13CLEANFILES= 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 21HOST_CPPFLAGS+= ${CPPFLAGS} 22SRCS:= ${SRCS:Nndbm.c} 23 24config.h defs.mk: config.stamp 25config.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: 31regen: 32 cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 33 34.include <bsd.hostlib.mk> 35