Cross Reference: Makefile
xref: /src/tools/compat/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /src/tools/compat/
Makefile revision 1.5
1#	$NetBSD: Makefile,v 1.5 2002/01/24 04:05:27 lukem Exp $
2
3HOSTLIB=	nbcompat
4
5SRCS=		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
8HOST_CPPFLAGS+=	-I. -I${.CURDIR} -DHAVE_CONFIG_H
9
10.PATH:		${.CURDIR}/../../lib/libc/gen \
11		${.CURDIR}/../../lib/libc/string \
12		${.CURDIR}/../../lib/libutil \
13
14DPSRCS=		config.h
15CLEANFILES=	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
24HOST_CPPFLAGS+=	${CPPFLAGS}
25SRCS:=		${SRCS:Nndbm.c}
26
27config.h defs.mk: config.stamp
28config.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:
34regen:
35	cd ${.CURDIR} && ${TOOLDIR}/bin/nbautoconf
36
37.include <bsd.hostlib.mk>
38

Indexes created Mon Jan 26 14:10:17 GMT 2026