xref: /f-stack/tools/libnetgraph/Makefile (revision d4a07e70)
1# $FreeBSD$
2# $Whistle: Makefile,v 1.4 1999/01/17 03:41:02 julian Exp $
3
4TOPDIR?=${CURDIR}/../..
5
6ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
7$(error "no installation of DPDK found, maybe you shuld export environment variable `PKG_CONFIG_PATH`")
8endif
9
10PACKAGE=lib${LIB}
11LIB=		netgraph
12WARNS?=		3
13MAN=		netgraph.3
14
15SHLIB_MAJOR=	4
16
17PKGCONF ?= pkg-config
18
19DPDK_CFLAGS= -g -Wall -Werror $(shell $(PKGCONF) --cflags libdpdk)
20
21CFLAGS+= ${DPDK_CFLAGS}
22CFLAGS+= -I${TOPDIR}/lib
23
24SRCS=		sock.c msg.c debug.c compat.c
25INCS=		netgraph.h
26
27MLINKS+=	netgraph.3 NgMkSockNode.3
28MLINKS+=	netgraph.3 NgNameNode.3
29MLINKS+=	netgraph.3 NgSendMsg.3
30MLINKS+=	netgraph.3 NgSendAsciiMsg.3
31MLINKS+=	netgraph.3 NgSendReplyMsg.3
32MLINKS+=	netgraph.3 NgRecvMsg.3
33MLINKS+=	netgraph.3 NgAllocRecvMsg.3
34MLINKS+=	netgraph.3 NgRecvAsciiMsg.3
35MLINKS+=	netgraph.3 NgAllocRecvAsciiMsg.3
36MLINKS+=	netgraph.3 NgSendData.3
37MLINKS+=	netgraph.3 NgRecvData.3
38MLINKS+=	netgraph.3 NgAllocRecvData.3
39MLINKS+=	netgraph.3 NgSetDebug.3
40MLINKS+=	netgraph.3 NgSetErrLog.3
41
42include ${TOPDIR}/tools/lib.mk
43