1995-08-06 14:24:38 +02:00
|
|
|
# $Id: Makefile,v 1.8 1995/05/30 05:47:36 rgrimes Exp $
|
1995-01-19 23:28:38 +01:00
|
|
|
|
|
|
|
LIB= ss
|
|
|
|
SRCS= ss_err.c 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 \
|
|
|
|
std_rqs.c
|
|
|
|
CFLAGS+= -I. -I${.CURDIR} -DPOSIX -DIN_LIBSS
|
1995-05-30 07:51:47 +02:00
|
|
|
CLEANFILES+= ss ss_err.c ss_err.h std_rqs.c
|
1995-01-23 19:56:40 +01:00
|
|
|
.if exists(${.CURDIR}/../libcom_err/obj/.)
|
|
|
|
LDADD+= -L${.CURDIR}/../libcom_err/obj
|
|
|
|
.else
|
|
|
|
LDADD+= -L${.CURDIR}/../libcom_err
|
|
|
|
.endif
|
1995-01-19 23:28:38 +01:00
|
|
|
LDADD+= -lcom_err
|
|
|
|
|
1995-02-12 03:35:35 +01:00
|
|
|
ss_err.h ss_err.c: ${.CURDIR}/ss_err.et
|
1995-01-19 23:28:38 +01:00
|
|
|
test -e ss_err.et || ln -s ${.CURDIR}/ss_err.et .
|
|
|
|
compile_et ss_err.et
|
1995-05-30 07:51:47 +02:00
|
|
|
-test -h ss_err.et && rm ss_err.et
|
1995-01-19 23:28:38 +01:00
|
|
|
|
1995-02-12 03:35:35 +01:00
|
|
|
std_rqs.c: ${.CURDIR}/std_rqs.ct
|
1995-01-19 23:28:38 +01:00
|
|
|
test -e std_rqs.ct || ln -s ${.CURDIR}/std_rqs.ct .
|
|
|
|
mk_cmds std_rqs.ct
|
1995-02-12 03:35:35 +01:00
|
|
|
-test -h std_rqs.ct && rm std_rqs.ct
|
1995-01-19 23:28:38 +01:00
|
|
|
|
|
|
|
beforeinstall:
|
|
|
|
-cd ${.CURDIR}; cmp -s ss.h ${DESTDIR}/usr/include/ss/ss.h || \
|
1995-08-06 14:24:38 +02:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ss.h \
|
1995-01-19 23:28:38 +01:00
|
|
|
${DESTDIR}/usr/include/ss
|
|
|
|
-cd ${.CURDIR}; cmp -s copyright.h \
|
|
|
|
${DESTDIR}/usr/include/ss/mit-sipb-copyright.h || \
|
1995-08-06 14:24:38 +02:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 copyright.h \
|
1995-01-19 23:28:38 +01:00
|
|
|
${DESTDIR}/usr/include/ss/mit-sipb-copyright.h
|
1995-01-23 19:56:40 +01:00
|
|
|
-cd ${.OBJDIR}; \
|
|
|
|
if [ -f ss_err.h ]; then \
|
|
|
|
cmp -s ss_err.h ${DESTDIR}/usr/include/ss/ss_err.h || \
|
1995-08-06 14:24:38 +02:00
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ss_err.h \
|
1995-01-23 19:56:40 +01:00
|
|
|
${DESTDIR}/usr/include/ss; \
|
|
|
|
else \
|
|
|
|
true; \
|
|
|
|
fi
|
1995-01-19 23:28:38 +01:00
|
|
|
|
|
|
|
.include <bsd.lib.mk>
|
1995-01-23 19:56:40 +01:00
|
|
|
|