2017-11-01 09:38:22 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
# $Whistle: Makefile,v 1.4 1999/01/17 03:41:02 julian Exp $
|
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
TOPDIR?=${CURDIR}/../..
|
|
|
|
|
|
|
|
ifneq ($(shell pkg-config --exists libdpdk && echo 0),0)
|
|
|
|
$(error "no installation of DPDK found, maybe you shuld export environment variable `PKG_CONFIG_PATH`")
|
|
|
|
endif
|
|
|
|
|
|
|
|
PACKAGE=lib${LIB}
|
2017-11-01 09:38:22 +00:00
|
|
|
LIB= netgraph
|
|
|
|
WARNS?= 3
|
|
|
|
MAN= netgraph.3
|
|
|
|
|
|
|
|
SHLIB_MAJOR= 4
|
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
PKGCONF ?= pkg-config
|
|
|
|
|
|
|
|
DPDK_CFLAGS= -g -Wall -Werror $(shell $(PKGCONF) --cflags libdpdk)
|
|
|
|
|
|
|
|
CFLAGS+= ${DPDK_CFLAGS}
|
|
|
|
CFLAGS+= -I${TOPDIR}/lib
|
|
|
|
|
|
|
|
SRCS= sock.c msg.c debug.c compat.c
|
2017-11-01 09:38:22 +00:00
|
|
|
INCS= netgraph.h
|
|
|
|
|
|
|
|
MLINKS+= netgraph.3 NgMkSockNode.3
|
|
|
|
MLINKS+= netgraph.3 NgNameNode.3
|
|
|
|
MLINKS+= netgraph.3 NgSendMsg.3
|
|
|
|
MLINKS+= netgraph.3 NgSendAsciiMsg.3
|
2021-08-31 11:00:09 +00:00
|
|
|
MLINKS+= netgraph.3 NgSendReplyMsg.3
|
2017-11-01 09:38:22 +00:00
|
|
|
MLINKS+= netgraph.3 NgRecvMsg.3
|
|
|
|
MLINKS+= netgraph.3 NgAllocRecvMsg.3
|
|
|
|
MLINKS+= netgraph.3 NgRecvAsciiMsg.3
|
|
|
|
MLINKS+= netgraph.3 NgAllocRecvAsciiMsg.3
|
|
|
|
MLINKS+= netgraph.3 NgSendData.3
|
|
|
|
MLINKS+= netgraph.3 NgRecvData.3
|
|
|
|
MLINKS+= netgraph.3 NgAllocRecvData.3
|
|
|
|
MLINKS+= netgraph.3 NgSetDebug.3
|
|
|
|
MLINKS+= netgraph.3 NgSetErrLog.3
|
|
|
|
|
2021-09-30 11:34:02 +00:00
|
|
|
include ${TOPDIR}/tools/lib.mk
|