1#	$NetBSD: Makefile,v 1.1.1.1 2008/07/29 05:01:22 mrg Exp $
2
3.include <bsd.own.mk>
4
5PROG=			rstartd.real
6SRCS=			auth.c server.c
7RSTARTDBINDIR=		${X11ROOTDIR}/libexec
8RSTARTCONFIGDIR=	${X11ETCDIR}/rstart
9
10CPPFLAGS.server.c=	-DSERVERNAME=\"rstartd\" \
11			-DDEFAULT_CONFIG=\"${RSTARTCONFIGDIR}/config\"
12
13MAN=			rstart.1 rstartd.1
14
15X11EXTRAMANDEFS+=	-e 's,RSTARTCONFIGDIR,${RSTARTCONFIGDIR},g'
16
17BUILDSYMLINKS=		client.cpp rstart.cpp \
18			server.cpp rstartd.cpp
19
20CPPSCRIPTS=		config rstart rstartd
21CPPSCRIPTFLAGS_config=	-DBINDIR=${X11BINDIR} -DLIBDIR=${RSTARTCONFIGDIR} \
22			-DPACKAGEname=rstart -DENVPREFIX=RSTART
23CPPSCRIPTFLAGS_rstart=	-DRSHCMD=rsh -DSERVERNAME=rstartd
24CPPSCRIPTFLAGS_rstartd=	-DLIBDIR=${RSTARTCONFIGDIR} -DSERVERNAME=rstartd \
25			-DBINDIR=${RSTARTDBINDIR}
26SCRIPTS=		rstart rstartd
27SCRIPTSDIR=		${X11BINDIR}
28CONFIGFILES=		config
29FILESDIR=		${RSTARTCONFIGDIR}
30
31SUBDIR=			commands contexts
32TARGETS+=		configinstall
33
34.PATH:			${X11SRCDIR.xc}/programs/rstart
35
36.include <bsd.x11.mk>
37BINDIR=			${RSTARTDBINDIR}
38.include <bsd.prog.mk>
39.include <bsd.subdir.mk>
40