mirror of https://github.com/F-Stack/f-stack.git
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
# $Whistle: Makefile,v 1.4 1999/01/17 03:41:02 julian Exp $
|
|
|
|
TOPDIR?=${CURDIR}/../..
|
|
|
|
ifeq ($(FF_DPDK),)
|
|
FF_DPDK=${TOPDIR}/dpdk/x86_64-native-linuxapp-gcc
|
|
endif
|
|
|
|
PACKAGE=lib${LIB}
|
|
LIB= netgraph
|
|
WARNS?= 3
|
|
MAN= netgraph.3
|
|
|
|
SHLIB_MAJOR= 4
|
|
|
|
DPDK_CFLAGS= -g -Wall -Werror -include ${FF_DPDK}/include/rte_config.h
|
|
DPDK_CFLAGS+= -march=native -DRTE_MACHINE_CPUFLAG_SSE -DRTE_MACHINE_CPUFLAG_SSE2 -DRTE_MACHINE_CPUFLAG_SSE3
|
|
DPDK_CFLAGS+= -DRTE_MACHINE_CPUFLAG_SSSE3 -DRTE_MACHINE_CPUFLAG_SSE4_1 -DRTE_MACHINE_CPUFLAG_SSE4_2
|
|
DPDK_CFLAGS+= -DRTE_COMPILE_TIME_CPUFLAGS=RTE_CPUFLAG_SSE,RTE_CPUFLAG_SSE2,RTE_CPUFLAG_SSE3,RTE_CPUFLAG_SSSE3,RTE_CPUFLAG_SSE4_1,RTE_CPUFLAG_SSE4_2
|
|
DPDK_CFLAGS+= -I${FF_DPDK}/include
|
|
|
|
CFLAGS+= ${DPDK_CFLAGS}
|
|
CFLAGS+= -I${TOPDIR}/lib
|
|
|
|
SRCS= sock.c msg.c debug.c compat.c
|
|
INCS= netgraph.h
|
|
|
|
MLINKS+= netgraph.3 NgMkSockNode.3
|
|
MLINKS+= netgraph.3 NgNameNode.3
|
|
MLINKS+= netgraph.3 NgSendMsg.3
|
|
MLINKS+= netgraph.3 NgSendAsciiMsg.3
|
|
MLINKS+= netgraph.3 NgSendMsgReply.3
|
|
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
|
|
|
|
include ${TOPDIR}/tools/lib.mk
|
|
|
|
|