summaryrefslogtreecommitdiffstats
path: root/lib/libss/Makefile
blob: 9638585124e14ab7da109939a85dcd47ed41bb27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $FreeBSD$

LIB=	ss
SRCS=	data.c error.c execute_cmd.c help.c invocation.c list_rqs.c \
	listen.c pager.c parse.c prompt.c request_tbl.c requests.c \
	ss_err.c ss_err.h std_rqs.c
CFLAGS+= -I. -I${.CURDIR} -DPOSIX -DIN_LIBSS
CLEANFILES+=	ss_err.c ss_err.h std_rqs.c
.if exists(${.OBJDIR}/../libcom_err)
LIBDESTDIR=	${.OBJDIR}/../libcom_err
.else
LIBDESTDIR=	${.CURDIR}/../libcom_err
.endif
DPADD=	${LIBDESTDIR}/libcom_err.a
LDADD=	-L${LIBDESTDIR} -lcom_err

hdrs: ss_err.h

.ORDER: ss_err.c ss_err.h
ss_err.c ss_err.h:	${.CURDIR}/ss_err.et
	test -e ss_err.et || ln -s ${.CURDIR}/ss_err.et .
	compile_et ss_err.et
	-test -h ss_err.et && rm -f ss_err.et

std_rqs.c:		${.CURDIR}/std_rqs.ct
	test -e std_rqs.ct || ln -s ${.CURDIR}/std_rqs.ct .
	mk_cmds std_rqs.ct
	-test -h std_rqs.ct && rm -f std_rqs.ct

beforeinstall:
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/ss.h \
		ss_err.h ${DESTDIR}/usr/include/ss
	${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/copyright.h \
		${DESTDIR}/usr/include/ss/mit-sipb-copyright.h

.include <bsd.lib.mk>
OpenPOWER on IntegriCloud