1 1.13 tv # $NetBSD: Makefile,v 1.13 2002/04/18 21:15:08 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.12 bjh21 getmode.c getopt_long.c issetugid.c libyywrap.c \ 7 1.11 bjh21 md2c.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c pread.c \ 8 1.9 bjh21 pwcache.c pwrite.c pw_scan.c rmd160.c rmd160hl.c setenv.c \ 9 1.9 bjh21 setgroupent.c setpassent.c setprogname.c sha1.c sha1hl.c \ 10 1.9 bjh21 snprintf.c strlcat.c strlcpy.c strmode.c strsep.c \ 11 1.9 bjh21 unvis.c vis.c \ 12 1.6 tv _err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \ 13 1.6 tv _warn.c _warnx.c __fts13.c 14 1.6 tv 15 1.6 tv # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and 16 1.6 tv # other file ops, on many systems, without changing function names. 17 1.6 tv 18 1.7 tv CPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \ 19 1.6 tv -D_FILE_OFFSET_BITS=64 20 1.3 tv 21 1.3 tv .PATH: ${.CURDIR}/../../lib/libc/gen \ 22 1.9 bjh21 ${.CURDIR}/../../lib/libc/hash \ 23 1.9 bjh21 ${.CURDIR}/../../lib/libc/md \ 24 1.6 tv ${.CURDIR}/../../lib/libc/stdlib \ 25 1.4 lukem ${.CURDIR}/../../lib/libc/string \ 26 1.4 lukem ${.CURDIR}/../../lib/libutil \ 27 1.7 tv ${.CURDIR}/../../usr.bin/lex 28 1.1 tv 29 1.6 tv DPSRCS+= defs.mk 30 1.7 tv CLEANFILES= config.log config.status confdefs.h *.stamp 31 1.3 tv 32 1.3 tv # Get components of Berkeley DB. 33 1.3 tv _CURDIR:= ${.CURDIR} 34 1.3 tv .CURDIR:= ${_CURDIR}/../../lib/libc 35 1.3 tv .include "${.CURDIR}/db/Makefile.inc" 36 1.3 tv .CURDIR:= ${_CURDIR} 37 1.3 tv 38 1.3 tv SRCS:= ${SRCS:Nndbm.c} 39 1.1 tv 40 1.13 tv defs.mk: include/.stamp configure config.h.in defs.mk.in 41 1.3 tv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 42 1.3 tv sh ${.CURDIR}/configure --cache-file=config.cache 43 1.3 tv @touch $@ 44 1.1 tv 45 1.1 tv # Run by hand, then "configure" script committed: 46 1.1 tv regen: 47 1.1 tv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 48 1.6 tv 49 1.13 tv include/.stamp: 50 1.8 tv mkdir -p include/sys include/machine include/rpc 51 1.6 tv @touch $@ 52 1.6 tv 53 1.6 tv cleandir: compat.clean 54 1.6 tv compat.clean: 55 1.6 tv -rm -r -f include 56 1.6 tv -rm -f config.cache config.h 57 1.6 tv 58 1.6 tv HOST_CPPFLAGS:= ${CPPFLAGS} 59 1.6 tv CPPFLAGS:= # empty 60 1.1 tv 61 1.1 tv .include <bsd.hostlib.mk> 62