1# $FreeBSD$
2#
3# Author: Harti Brandt <harti@freebsd.org>
4#
5LIB=	ngatm
6SHLIB_MAJOR= 4
7MAN=	libngatm.3 uniaddr.3 unifunc.3 unimsg.3 unisap.3 unistruct.3
8
9# source of the library lives in contrib
10SDIR=	${.CURDIR}/../../sys
11CTRB=	${.CURDIR}/../../contrib/ngatm
12LIBBASE= ${SDIR}/contrib/ngatm
13
14CFLAGS+= -I${LIBBASE} -I${.OBJDIR} -I${CTRB}/libngatm
15# CFLAGS+= -DSSCOP_DEBUG -DSSCFU_DEBUG -DUNI_DEBUG -DCCATM_DEBUG
16
17.PATH: ${LIBBASE}/netnatm ${LIBBASE}/netnatm/saal ${LIBBASE}/netnatm/misc \
18	${LIBBASE}/netnatm/msg ${LIBBASE}/netnatm/sig ${LIBBASE}/netnatm/api
19.PATH: ${CTRB}/libngatm ${CTRB}/man
20
21SRCS=	unimsg.c unimsg_common.c straddr.c				\
22	traffic.c uni_ie.c uni_msg.c					\
23	saal_sscop.c saal_sscfu.c					\
24	sig_call.c sig_coord.c sig_party.c sig_print.c sig_reset.c	\
25	sig_uni.c sig_unimsgcpy.c sig_verify.c				\
26	cc_conn.c cc_user.c cc_sig.c cc_data.c cc_port.c unisap.c	\
27	cc_dump.c
28
29# Includes
30INCSGROUPS= INCSATM INCSSAAL INCSMSG INCSSIG INCSAPI
31
32# common files
33INCSATMDIR= $(INCLUDEDIR)/netnatm
34INCSATM= unimsg.h addr.h
35
36# signaling AAL
37INCSSAALDIR= $(INCLUDEDIR)/netnatm/saal
38INCSSAAL= saal/sscfu.h saal/sscfudef.h saal/sscop.h saal/sscopdef.h
39
40# message parsing
41INCSMSGDIR= $(INCLUDEDIR)/netnatm/msg
42INCSMSG= msg/uni_config.h msg/uni_hdr.h msg/uni_ie.h msg/uni_msg.h	\
43	 msg/unimsglib.h msg/uniprint.h msg/unistruct.h
44
45# signaling layer
46INCSSIGDIR= $(INCLUDEDIR)/netnatm/sig
47INCSSIG= sig/uni.h sig/unidef.h sig/unisig.h
48
49# call control layer
50INCSAPIDIR= $(INCLUDEDIR)/netnatm/api
51INCSAPI= api/atmapi.h api/ccatm.h api/unisap.h
52
53.include <bsd.lib.mk>
54