1 1.6 tv # $NetBSD: Makefile,v 1.6 2002/01/29 10:20:31 tv Exp $ 2 1.1 tv 3 1.1 tv HOSTLIB= nbcompat 4 1.1 tv 5 1.6 tv SRCS= basename.c dirname.c fgetln.c flock.c fparseln.c \ 6 1.6 tv getmode.c getopt_long.c pread.c pwcache.c pwrite.c \ 7 1.6 tv pw_scan.c setenv.c setgroupent.c setpassent.c \ 8 1.6 tv setprogname.c snprintf.c \ 9 1.6 tv strlcat.c strlcpy.c strmode.c strsep.c unvis.c vis.c \ 10 1.6 tv _err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \ 11 1.6 tv _warn.c _warnx.c __fts13.c 12 1.6 tv 13 1.6 tv # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and 14 1.6 tv # other file ops, on many systems, without changing function names. 15 1.6 tv 16 1.6 tv CPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H -Dlint \ 17 1.6 tv -D_FILE_OFFSET_BITS=64 18 1.3 tv 19 1.3 tv .PATH: ${.CURDIR}/../../lib/libc/gen \ 20 1.6 tv ${.CURDIR}/../../lib/libc/stdlib \ 21 1.4 lukem ${.CURDIR}/../../lib/libc/string \ 22 1.4 lukem ${.CURDIR}/../../lib/libutil \ 23 1.1 tv 24 1.6 tv DPSRCS+= defs.mk 25 1.6 tv CLEANFILES= config.log config.status confdefs.h includedir.stamp 26 1.3 tv 27 1.3 tv # Get components of Berkeley DB. 28 1.3 tv _CURDIR:= ${.CURDIR} 29 1.3 tv .CURDIR:= ${_CURDIR}/../../lib/libc 30 1.3 tv .include "${.CURDIR}/db/Makefile.inc" 31 1.3 tv .CURDIR:= ${_CURDIR} 32 1.3 tv 33 1.3 tv SRCS:= ${SRCS:Nndbm.c} 34 1.1 tv 35 1.6 tv defs.mk: includedir.stamp configure config.h.in defs.mk.in 36 1.3 tv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 37 1.3 tv sh ${.CURDIR}/configure --cache-file=config.cache 38 1.3 tv @touch $@ 39 1.1 tv 40 1.1 tv # Run by hand, then "configure" script committed: 41 1.1 tv regen: 42 1.1 tv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 43 1.6 tv 44 1.6 tv includedir.stamp: 45 1.6 tv mkdir -p include/sys 46 1.6 tv @touch $@ 47 1.6 tv 48 1.6 tv cleandir: compat.clean 49 1.6 tv compat.clean: 50 1.6 tv -rm -r -f include 51 1.6 tv -rm -f config.cache config.h 52 1.6 tv 53 1.6 tv HOST_CPPFLAGS:= ${CPPFLAGS} 54 1.6 tv CPPFLAGS:= # empty 55 1.1 tv 56 1.1 tv .include <bsd.hostlib.mk> 57