Makefile revision 1.15
11.15Sthorpej# $NetBSD: Makefile,v 1.15 2002/09/14 04:30:27 thorpej Exp $ 21.1Stv 31.1StvHOSTLIB= nbcompat 41.1Stv 51.6StvSRCS= basename.c dirname.c fgetln.c flock.c fparseln.c \ 61.15Sthorpej getmode.c getopt_long.c gettemp.c issetugid.c libyywrap.c \ 71.15Sthorpej md2c.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c mkdtemp.c \ 81.15Sthorpej mkstemp.c pread.c pwcache.c pwrite.c pw_scan.c rmd160.c \ 91.15Sthorpej rmd160hl.c setenv.c setgroupent.c setpassent.c setprogname.c \ 101.15Sthorpej sha1.c sha1hl.c snprintf.c strlcat.c strlcpy.c strmode.c \ 111.15Sthorpej strsep.c unvis.c vis.c \ 121.6Stv _err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \ 131.14Sthorpej _warn.c _warnx.c __fts13.c __glob13.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.15Sthorpej ${.CURDIR}/../../lib/libc/stdio \ 251.6Stv ${.CURDIR}/../../lib/libc/stdlib \ 261.4Slukem ${.CURDIR}/../../lib/libc/string \ 271.4Slukem ${.CURDIR}/../../lib/libutil \ 281.7Stv ${.CURDIR}/../../usr.bin/lex 291.1Stv 301.6StvDPSRCS+= defs.mk 311.7StvCLEANFILES= config.log config.status confdefs.h *.stamp 321.3Stv 331.3Stv# Get components of Berkeley DB. 341.3Stv_CURDIR:= ${.CURDIR} 351.3Stv.CURDIR:= ${_CURDIR}/../../lib/libc 361.3Stv.include "${.CURDIR}/db/Makefile.inc" 371.3Stv.CURDIR:= ${_CURDIR} 381.3Stv 391.3StvSRCS:= ${SRCS:Nndbm.c} 401.1Stv 411.13Stvdefs.mk: include/.stamp configure config.h.in defs.mk.in 421.3Stv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 431.3Stv sh ${.CURDIR}/configure --cache-file=config.cache 441.3Stv @touch $@ 451.1Stv 461.1Stv# Run by hand, then "configure" script committed: 471.1Stvregen: 481.1Stv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 491.6Stv 501.13Stvinclude/.stamp: 511.8Stv mkdir -p include/sys include/machine include/rpc 521.6Stv @touch $@ 531.6Stv 541.6Stvcleandir: compat.clean 551.6Stvcompat.clean: 561.6Stv -rm -r -f include 571.6Stv -rm -f config.cache config.h 581.6Stv 591.6StvHOST_CPPFLAGS:= ${CPPFLAGS} 601.6StvCPPFLAGS:= # empty 611.1Stv 621.1Stv.include <bsd.hostlib.mk> 63