Home | History | Annotate | Line # | Download | only in compat
Makefile revision 1.4
      1 #	$NetBSD: Makefile,v 1.4 2002/01/21 23:35:14 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 pwrite.c setprogname.c strlcat.c strlcpy.c \
      7 		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 confdefs.h defs.mk
     16 
     17 # Get components of Berkeley DB.
     18 _CURDIR:=	${.CURDIR}
     19 .CURDIR:=	${_CURDIR}/../../lib/libc
     20 .include "${.CURDIR}/db/Makefile.inc"
     21 .CURDIR:=	${_CURDIR}
     22 
     23 HOST_CPPFLAGS+=	${CPPFLAGS}
     24 SRCS:=		${SRCS:Nndbm.c}
     25 
     26 config.h defs.mk: config.stamp
     27 config.stamp: configure config.h.in defs.mk.in
     28 	CC=${HOST_CC:Q} CFLAGS=${HOST_CFLAGS:Q} LDFLAGS=${HOST_LDFLAGS:Q} \
     29 		sh ${.CURDIR}/configure --cache-file=config.cache
     30 	@touch $@
     31 
     32 # Run by hand, then "configure" script committed:
     33 regen:
     34 	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
     35 
     36 .include <bsd.hostlib.mk>
     37