Home | History | Annotate | Line # | Download | only in compat
Makefile revision 1.5
      1 #	$NetBSD: Makefile,v 1.5 2002/01/24 04:05:27 lukem Exp $
      2 
      3 HOSTLIB=	nbcompat
      4 
      5 SRCS=		basename.c dirname.c err.c fgetln.c flock.c fparseln.c \
      6 		getmode.c pread.c pwcache.c pwrite.c setprogname.c \
      7 		strlcat.c strlcpy.c vis.c
      8 HOST_CPPFLAGS+=	-I. -I${.CURDIR} -DHAVE_CONFIG_H
      9 
     10 .PATH:		${.CURDIR}/../../lib/libc/gen \
     11 		${.CURDIR}/../../lib/libc/string \
     12 		${.CURDIR}/../../lib/libutil \
     13 
     14 DPSRCS=		config.h
     15 CLEANFILES=	config.cache config.log config.status config.stamp \
     16 		confdefs.h defs.mk
     17 
     18 # Get components of Berkeley DB.
     19 _CURDIR:=	${.CURDIR}
     20 .CURDIR:=	${_CURDIR}/../../lib/libc
     21 .include "${.CURDIR}/db/Makefile.inc"
     22 .CURDIR:=	${_CURDIR}
     23 
     24 HOST_CPPFLAGS+=	${CPPFLAGS}
     25 SRCS:=		${SRCS:Nndbm.c}
     26 
     27 config.h defs.mk: config.stamp
     28 config.stamp: configure config.h.in defs.mk.in
     29 	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
     30 		sh ${.CURDIR}/configure --cache-file=config.cache
     31 	@touch $@
     32 
     33 # Run by hand, then "configure" script committed:
     34 regen:
     35 	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
     36 
     37 .include <bsd.hostlib.mk>
     38