Home | History | Annotate | Line # | Download | only in compat
Makefile revision 1.20
      1  1.20    lukem #	$NetBSD: Makefile,v 1.20 2002/12/04 23:27:54 lukem Exp $
      2   1.1       tv 
      3   1.1       tv HOSTLIB=	nbcompat
      4   1.1       tv 
      5   1.6       tv SRCS=		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.15  thorpej 		mkstemp.c pread.c pwcache.c pwrite.c pw_scan.c rmd160.c \
     10  1.15  thorpej 		rmd160hl.c setenv.c setgroupent.c setpassent.c setprogname.c \
     11  1.15  thorpej 		sha1.c sha1hl.c snprintf.c strlcat.c strlcpy.c strmode.c \
     12  1.18    lukem 		strsep.c strsuftoll.c strtoll.c unvis.c vis.c \
     13   1.6       tv 		_err.c _errx.c _verr.c _verrx.c _vwarn.c _vwarnx.c \
     14  1.14  thorpej 		_warn.c _warnx.c __fts13.c __glob13.c
     15   1.6       tv 
     16   1.6       tv # -D_FILE_OFFSET_BITS=64 produces a much more amenable `struct stat', and
     17   1.6       tv # other file ops, on many systems, without changing function names.
     18   1.6       tv 
     19   1.7       tv CPPFLAGS+=	-I. -I./include -I${.CURDIR} -DHAVE_CONFIG_H \
     20   1.6       tv 		-D_FILE_OFFSET_BITS=64
     21   1.3       tv 
     22   1.3       tv .PATH:		${.CURDIR}/../../lib/libc/gen \
     23   1.9    bjh21 		${.CURDIR}/../../lib/libc/hash \
     24   1.9    bjh21 		${.CURDIR}/../../lib/libc/md \
     25  1.15  thorpej 		${.CURDIR}/../../lib/libc/stdio \
     26   1.6       tv 		${.CURDIR}/../../lib/libc/stdlib \
     27   1.4    lukem 		${.CURDIR}/../../lib/libc/string \
     28   1.7       tv 		${.CURDIR}/../../usr.bin/lex
     29   1.1       tv 
     30   1.6       tv DPSRCS+=	defs.mk
     31   1.7       tv CLEANFILES=	config.log config.status confdefs.h *.stamp
     32   1.3       tv 
     33   1.3       tv # Get components of Berkeley DB.
     34   1.3       tv _CURDIR:=	${.CURDIR}
     35   1.3       tv .CURDIR:=	${_CURDIR}/../../lib/libc
     36   1.3       tv .include "${.CURDIR}/db/Makefile.inc"
     37   1.3       tv .CURDIR:=	${_CURDIR}
     38   1.3       tv 
     39   1.3       tv SRCS:=		${SRCS:Nndbm.c}
     40   1.1       tv 
     41  1.20    lukem config.cache: include/.stamp configure config.h.in defs.mk.in
     42  1.20    lukem 	rm -f ${.TARGET}
     43   1.3       tv 	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
     44   1.3       tv 		sh ${.CURDIR}/configure --cache-file=config.cache
     45  1.20    lukem 
     46  1.20    lukem defs.mk: config.cache
     47  1.20    lukem 	@touch ${.TARGET}
     48   1.1       tv 
     49   1.1       tv # Run by hand, then "configure" script committed:
     50   1.1       tv regen:
     51   1.1       tv 	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
     52   1.6       tv 
     53  1.13       tv include/.stamp:
     54   1.8       tv 	mkdir -p include/sys include/machine include/rpc
     55  1.20    lukem 	@touch ${.TARGET}
     56   1.6       tv 
     57   1.6       tv cleandir: compat.clean
     58   1.6       tv compat.clean:
     59   1.6       tv 	-rm -r -f include
     60   1.6       tv 	-rm -f config.cache config.h
     61   1.6       tv 
     62   1.6       tv HOST_CPPFLAGS:=	${CPPFLAGS}
     63   1.6       tv CPPFLAGS:=	# empty
     64   1.1       tv 
     65   1.1       tv .include <bsd.hostlib.mk>
     66