Makefile revision 1.17
11.17Slukem#	$NetBSD: Makefile,v 1.17 2002/10/08 00:28:36 lukem Exp $
21.1Stv
31.1StvHOSTLIB=	nbcompat
41.1Stv
51.6StvSRCS=		basename.c dirname.c fgetln.c flock.c fparseln.c \
61.17Slukem		getmode.c getopt_long.c gettemp.c issetugid.c \
71.17Slukem		lchflags.c lchmod.c lchown.c libyywrap.c \
81.15Sthorpej		md2c.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c mkdtemp.c \
91.15Sthorpej		mkstemp.c pread.c pwcache.c pwrite.c pw_scan.c rmd160.c \
101.15Sthorpej		rmd160hl.c setenv.c setgroupent.c setpassent.c setprogname.c \
111.15Sthorpej		sha1.c sha1hl.c snprintf.c strlcat.c strlcpy.c strmode.c \
121.16Slukem		strsep.c strtoll.c unvis.c vis.c \
131.6Stv		_err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \
141.14Sthorpej		_warn.c _warnx.c __fts13.c __glob13.c
151.6Stv
161.6Stv# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
171.6Stv# other file ops, on many systems, without changing function names.
181.6Stv
191.7StvCPPFLAGS+=	-I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \
201.6Stv		-D_FILE_OFFSET_BITS=64
211.3Stv
221.3Stv.PATH:		${.CURDIR}/../../lib/libc/gen \
231.9Sbjh21		${.CURDIR}/../../lib/libc/hash \
241.9Sbjh21		${.CURDIR}/../../lib/libc/md \
251.15Sthorpej		${.CURDIR}/../../lib/libc/stdio \
261.6Stv		${.CURDIR}/../../lib/libc/stdlib \
271.4Slukem		${.CURDIR}/../../lib/libc/string \
281.4Slukem		${.CURDIR}/../../lib/libutil \
291.7Stv		${.CURDIR}/../../usr.bin/lex
301.1Stv
311.6StvDPSRCS+=	defs.mk
321.7StvCLEANFILES=	config.log config.status confdefs.h *.stamp
331.3Stv
341.3Stv# Get components of Berkeley DB.
351.3Stv_CURDIR:=	${.CURDIR}
361.3Stv.CURDIR:=	${_CURDIR}/../../lib/libc
371.3Stv.include "${.CURDIR}/db/Makefile.inc"
381.3Stv.CURDIR:=	${_CURDIR}
391.3Stv
401.3StvSRCS:=		${SRCS:Nndbm.c}
411.1Stv
421.13Stvdefs.mk: include/.stamp configure config.h.in defs.mk.in
431.3Stv	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
441.3Stv		sh ${.CURDIR}/configure --cache-file=config.cache
451.3Stv	@touch $@
461.1Stv
471.1Stv# Run by hand, then "configure" script committed:
481.1Stvregen:
491.1Stv	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
501.6Stv
511.13Stvinclude/.stamp:
521.8Stv	mkdir -p include/sys include/machine include/rpc
531.6Stv	@touch $@
541.6Stv
551.6Stvcleandir: compat.clean
561.6Stvcompat.clean:
571.6Stv	-rm -r -f include
581.6Stv	-rm -f config.cache config.h
591.6Stv
601.6StvHOST_CPPFLAGS:=	${CPPFLAGS}
611.6StvCPPFLAGS:=	# empty
621.1Stv
631.1Stv.include <bsd.hostlib.mk>
64