-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
18 lines (12 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS=$(shell pkg-config --cflags libdpdk)
CLIBS=$(shell pkg-config --libs libdpdk)
NVCC_FLAGS=-Xptxas -v --gpu-architecture sm_86 -lineinfo
firewall: rte_bv.o rte_bv_classifier.o
nvcc $(NVCC_FLAGS) -forward-unknown-to-host-compiler -O3 -mssse3 -march=native -Wall -Werror cross-execution-space-call,default-stream-launch,ext-lambda-captures-this,reorder $(CFLAGS) -o firewall src/firewall.c src/parser.c src/misc.c rte_bv_classifier.o rte_bv.o $(CLIBS)
rte_bv.o:
nvcc $(NVCC_FLAGS) -forward-unknown-to-host-compiler -O3 -march=native -Wall -pedantic -Werror all-warnings $(CFLAGS) -c src/rte_bv.c
rte_bv_classifier.o:
nvcc $(NVCC_FLAGS) -forward-unknown-to-host-compiler -O3 -march=native -Wall -Werror all-warnings $(CFLAGS) -c src/rte_bv_classifier.cu
clean:
rm *.o firewall
all: firewall