Makefile revision 1.9
11.9Sbjh21# $NetBSD: Makefile,v 1.9 2002/03/31 12:58:54 bjh21 Exp $ 21.1Stv 31.1StvHOSTLIB= nbcompat 41.1Stv 51.6StvSRCS= basename.c dirname.c fgetln.c flock.c fparseln.c \ 61.9Sbjh21 getmode.c getopt_long.c libyywrap.c \ 71.9Sbjh21 md2c.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c pread.c \ 81.9Sbjh21 pwcache.c pwrite.c pw_scan.c rmd160.c rmd160hl.c setenv.c \ 91.9Sbjh21 setgroupent.c setpassent.c setprogname.c sha1.c sha1hl.c \ 101.9Sbjh21 snprintf.c strlcat.c strlcpy.c strmode.c strsep.c \ 111.9Sbjh21 unvis.c vis.c \ 121.6Stv _err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \ 131.6Stv _warn.c _warnx.c __fts13.c 141.6Stv 151.6Stv# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and 161.6Stv# other file ops, on many systems, without changing function names. 171.6Stv 181.7StvCPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \ 191.6Stv -D_FILE_OFFSET_BITS=64 201.3Stv 211.3Stv.PATH: ${.CURDIR}/../../lib/libc/gen \ 221.9Sbjh21 ${.CURDIR}/../../lib/libc/hash \ 231.9Sbjh21 ${.CURDIR}/../../lib/libc/md \ 241.6Stv ${.CURDIR}/../../lib/libc/stdlib \ 251.4Slukem ${.CURDIR}/../../lib/libc/string \ 261.4Slukem ${.CURDIR}/../../lib/libutil \ 271.7Stv ${.CURDIR}/../../usr.bin/lex 281.1Stv 291.6StvDPSRCS+= defs.mk 301.7StvCLEANFILES= config.log config.status confdefs.h *.stamp 311.3Stv 321.3Stv# Get components of Berkeley DB. 331.3Stv_CURDIR:= ${.CURDIR} 341.3Stv.CURDIR:= ${_CURDIR}/../../lib/libc 351.3Stv.include "${.CURDIR}/db/Makefile.inc" 361.3Stv.CURDIR:= ${_CURDIR} 371.3Stv 381.3StvSRCS:= ${SRCS:Nndbm.c} 391.1Stv 401.8Stvdefs.mk: includes.stamp configure config.h.in defs.mk.in 411.3Stv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 421.3Stv sh ${.CURDIR}/configure --cache-file=config.cache 431.3Stv @touch $@ 441.1Stv 451.1Stv# Run by hand, then "configure" script committed: 461.1Stvregen: 471.1Stv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 481.6Stv 491.8Stvincludes.stamp: 501.8Stv mkdir -p include/sys include/machine include/rpc 511.6Stv @touch $@ 521.6Stv 531.6Stvcleandir: compat.clean 541.6Stvcompat.clean: 551.6Stv -rm -r -f include 561.6Stv -rm -f config.cache config.h 571.6Stv 581.6StvHOST_CPPFLAGS:= ${CPPFLAGS} 591.6StvCPPFLAGS:= # empty 601.1Stv 611.1Stv.include <bsd.hostlib.mk> 62