xref: /freebsd/libexec/atrun/Makefile (revision 4c8945a06b01a5c8122cdeb402af36bb46a06acc)
1# $FreeBSD$
2
3MAINSRC=${.CURDIR}/../../usr.bin/at
4
5.include "${MAINSRC}/Makefile.inc"
6
7PROG=	atrun
8SRCS=	atrun.c gloadavg.c
9MAN=	atrun.8
10
11BINDIR=	${ATLIB_DIR}
12CLEANFILES= ${MAN}
13
14CFLAGS+=-I${MAINSRC} -I${.CURDIR}
15CFLAGS+=-DLOGIN_CAP -DPAM
16
17WARNS?=	2
18WFORMAT=0
19
20DPADD=	${LIBPAM} ${LIBUTIL}
21LDADD=	${MINUSLPAM} -lutil
22
23atrun.8: atrun.man
24	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
25	sed -e \
26		"s@_ATSPOOL_DIR@$(ATSPOOL_DIR)@g; \
27		s@_ATJOB_DIR@$(ATJOB_DIR)@g; \
28		s@_ATLIB_DIR@$(ATLIB_DIR)@g; \
29		s@_LOADAVG_MX@$(LOADAVG_MX)@g;" \
30		< ${.ALLSRC} > ${.TARGET}
31
32.include <bsd.prog.mk>
33