summaryrefslogtreecommitdiff
path: root/net/uucp/files/uucpd/Makefile
blob: cd5282b1a6571b3de071d3fdb95b1ec200113b60 (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.4 2009/02/16 13:28:29 joerg 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} ${DESTDIR}${BINDIR}/${PROG}
	@INSTALL_MAN@ ${MAN} ${DESTDIR}${MANDIR}/man8

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

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