Home | History | Annotate | Line # | Download | only in compat
Makefile revision 1.29
      1  1.29      jmc #	$NetBSD: Makefile,v 1.29 2004/05/03 03:20:20 jmc Exp $
      2   1.1       tv 
      3   1.1       tv HOSTLIB=	nbcompat
      4   1.1       tv 
      5  1.24      uwe SRCS=		atoll.c basename.c dirname.c fgetln.c flock.c fparseln.c \
      6  1.17    lukem 		getmode.c getopt_long.c gettemp.c issetugid.c \
      7  1.17    lukem 		lchflags.c lchmod.c lchown.c libyywrap.c \
      8  1.15  thorpej 		md2c.c md2hl.c md4c.c md4hl.c md5c.c md5hl.c mkdtemp.c \
      9  1.22  thorpej 		mkstemp.c pread.c putc_unlocked.c pwcache.c pwrite.c \
     10  1.22  thorpej 		pw_scan.c rmd160.c rmd160hl.c setenv.c setgroupent.c \
     11  1.22  thorpej 		setpassent.c setprogname.c sha1.c sha1hl.c snprintf.c \
     12  1.22  thorpej 		strlcat.c strlcpy.c strmode.c strsep.c strsuftoll.c \
     13  1.22  thorpej 		strtoll.c unvis.c vis.c _err.c _errx.c _verr.c _verrx.c \
     14  1.22  thorpej 		_vwarn.c _vwarnx.c _warn.c _warnx.c __fts13.c __glob13.c
     15  1.21  thorpej 
     16  1.21  thorpej BUILD_OSTYPE!=  uname -s
     17  1.21  thorpej 
     18  1.21  thorpej # Disable use of pre-compiled headers on Darwin.
     19  1.21  thorpej .if ${BUILD_OSTYPE} == "Darwin"
     20  1.21  thorpej CPPFLAGS+=	-no-cpp-precomp
     21  1.21  thorpej .endif
     22   1.6       tv 
     23   1.6       tv # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
     24   1.6       tv # other file ops, on many systems, without changing function names.
     25   1.6       tv 
     26  1.23    bjh21 # -D_NETBSD_SOURCE is necessary for some of the NetBSD headers that we
     27  1.23    bjh21 # also use on the host system.
     28  1.23    bjh21 
     29  1.28    lukem CPPFLAGS+=	-I. -I./include -I${.CURDIR} -DHAVE_NBTOOL_CONFIG_H=1 \
     30  1.23    bjh21 		-D_FILE_OFFSET_BITS=64 -D_NETBSD_SOURCE
     31   1.3       tv 
     32   1.3       tv .PATH:		${.CURDIR}/../../lib/libc/gen \
     33   1.9    bjh21 		${.CURDIR}/../../lib/libc/hash \
     34   1.9    bjh21 		${.CURDIR}/../../lib/libc/md \
     35  1.15  thorpej 		${.CURDIR}/../../lib/libc/stdio \
     36   1.6       tv 		${.CURDIR}/../../lib/libc/stdlib \
     37   1.4    lukem 		${.CURDIR}/../../lib/libc/string \
     38   1.7       tv 		${.CURDIR}/../../usr.bin/lex
     39   1.1       tv 
     40   1.6       tv DPSRCS+=	defs.mk
     41  1.26    lukem CLEANFILES+=	defs.mk
     42  1.26    lukem CLEANFILES+=	config.log config.status configure.lineno confdefs.h *.stamp
     43   1.3       tv 
     44   1.3       tv # Get components of Berkeley DB.
     45   1.3       tv _CURDIR:=	${.CURDIR}
     46   1.3       tv .CURDIR:=	${_CURDIR}/../../lib/libc
     47   1.3       tv .include "${.CURDIR}/db/Makefile.inc"
     48   1.3       tv .CURDIR:=	${_CURDIR}
     49   1.3       tv 
     50  1.29      jmc SRCS:=		${SRCS:Nndbm.c:N__ndbm13.c}
     51   1.1       tv 
     52  1.28    lukem config.cache: include/.stamp configure nbtool_config.h.in defs.mk.in
     53  1.20    lukem 	rm -f ${.TARGET}
     54   1.3       tv 	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
     55  1.27    lukem 		${HOST_SH} ${.CURDIR}/configure --cache-file=config.cache
     56  1.20    lukem 
     57  1.20    lukem defs.mk: config.cache
     58  1.20    lukem 	@touch ${.TARGET}
     59   1.1       tv 
     60   1.1       tv # Run by hand, then "configure" script committed:
     61   1.1       tv regen:
     62   1.1       tv 	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
     63   1.6       tv 
     64  1.13       tv include/.stamp:
     65   1.8       tv 	mkdir -p include/sys include/machine include/rpc
     66  1.20    lukem 	@touch ${.TARGET}
     67   1.6       tv 
     68   1.6       tv cleandir: compat.clean
     69   1.6       tv compat.clean:
     70   1.6       tv 	-rm -r -f include
     71  1.28    lukem 	-rm -f config.cache nbtool_config.h
     72   1.6       tv 
     73   1.6       tv HOST_CPPFLAGS:=	${CPPFLAGS}
     74   1.6       tv CPPFLAGS:=	# empty
     75   1.1       tv 
     76   1.1       tv .include <bsd.hostlib.mk>
     77