Makefile revision 1.4
1# $NetBSD: Makefile,v 1.4 2002/01/21 23:35:14 lukem 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 \ 7 vis.c 8HOST_CPPFLAGS+= -I. -I${.CURDIR} -DHAVE_CONFIG_H 9 10.PATH: ${.CURDIR}/../../lib/libc/gen \ 11 ${.CURDIR}/../../lib/libc/string \ 12 ${.CURDIR}/../../lib/libutil \ 13 14DPSRCS= config.h 15CLEANFILES= config.cache config.log config.status config.stamp confdefs.h defs.mk 16 17# Get components of Berkeley DB. 18_CURDIR:= ${.CURDIR} 19.CURDIR:= ${_CURDIR}/../../lib/libc 20.include "${.CURDIR}/db/Makefile.inc" 21.CURDIR:= ${_CURDIR} 22 23HOST_CPPFLAGS+= ${CPPFLAGS} 24SRCS:= ${SRCS:Nndbm.c} 25 26config.h defs.mk: config.stamp 27config.stamp: configure config.h.in defs.mk.in 28 CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 29 sh ${.CURDIR}/configure --cache-file=config.cache 30 @touch $@ 31 32# Run by hand, then "configure" script committed: 33regen: 34 cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 35 36.include <bsd.hostlib.mk> 37