summaryrefslogtreecommitdiff
path: root/net/uucp/files/uucpd/Makefile
blob: f2a34f750e0b1d4f2ff821f36f5d119e71a104d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $NetBSD: Makefile,v 1.3 2007/06/18 14:45:29 jlam Exp $

PROG=		uucpd
MAN=		uucpd.8
BINDIR=		@PREFIX@/libexec
MANDIR=		@PREFIX@/@PKGMANDIR@
CPPFLAGS+=	@UUCPD_CPPFLAGS@
LIBS+=		@UUCPD_LIBS@

SRCS=		uucpd.c
OBJS=		uucpd.o

all: ${PROG}

install: all
	@INSTALL_PROGRAM@ ${PROG} ${BINDIR}/${PROG}
	@INSTALL_MAN@ ${MAN} ${MANDIR}/man8

.c.o:
	${CC} ${CPPFLAGS} ${CFLAGS} -c $<

${PROG}: ${OBJS}
	${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}