Makefile revision 1.21
11.21Sthorpej# $NetBSD: Makefile,v 1.21 2003/03/13 05:00:28 thorpej 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.18Slukem strsep.c strsuftoll.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.21Sthorpej 161.21SthorpejBUILD_OSTYPE!= uname -s 171.21Sthorpej 181.21Sthorpej# Disable use of pre-compiled headers on Darwin. 191.21Sthorpej.if ${BUILD_OSTYPE} == "Darwin" 201.21SthorpejCPPFLAGS+= -no-cpp-precomp 211.21Sthorpej.endif 221.6Stv 231.6Stv# -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and 241.6Stv# other file ops, on many systems, without changing function names. 251.6Stv 261.7StvCPPFLAGS+= -I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \ 271.6Stv -D_FILE_OFFSET_BITS=64 281.3Stv 291.3Stv.PATH: ${.CURDIR}/../../lib/libc/gen \ 301.9Sbjh21 ${.CURDIR}/../../lib/libc/hash \ 311.9Sbjh21 ${.CURDIR}/../../lib/libc/md \ 321.15Sthorpej ${.CURDIR}/../../lib/libc/stdio \ 331.6Stv ${.CURDIR}/../../lib/libc/stdlib \ 341.4Slukem ${.CURDIR}/../../lib/libc/string \ 351.7Stv ${.CURDIR}/../../usr.bin/lex 361.1Stv 371.6StvDPSRCS+= defs.mk 381.7StvCLEANFILES= config.log config.status confdefs.h *.stamp 391.3Stv 401.3Stv# Get components of Berkeley DB. 411.3Stv_CURDIR:= ${.CURDIR} 421.3Stv.CURDIR:= ${_CURDIR}/../../lib/libc 431.3Stv.include "${.CURDIR}/db/Makefile.inc" 441.3Stv.CURDIR:= ${_CURDIR} 451.3Stv 461.3StvSRCS:= ${SRCS:Nndbm.c} 471.1Stv 481.20Slukemconfig.cache: include/.stamp configure config.h.in defs.mk.in 491.20Slukem rm -f ${.TARGET} 501.3Stv CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \ 511.3Stv sh ${.CURDIR}/configure --cache-file=config.cache 521.20Slukem 531.20Slukemdefs.mk: config.cache 541.20Slukem @touch ${.TARGET} 551.1Stv 561.1Stv# Run by hand, then "configure" script committed: 571.1Stvregen: 581.1Stv cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf 591.6Stv 601.13Stvinclude/.stamp: 611.8Stv mkdir -p include/sys include/machine include/rpc 621.20Slukem @touch ${.TARGET} 631.6Stv 641.6Stvcleandir: compat.clean 651.6Stvcompat.clean: 661.6Stv -rm -r -f include 671.6Stv -rm -f config.cache config.h 681.6Stv 691.6StvHOST_CPPFLAGS:= ${CPPFLAGS} 701.6StvCPPFLAGS:= # empty 711.1Stv 721.1Stv.include <bsd.hostlib.mk> 73