-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 678 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
APP = graphshield
PACKAGE = $(APP)-src.tar.gz
SRC = main.c graph.c \
nodes/rx_node.c \
nodes/eth_parse_node.c \
nodes/ipv4_parse_node.c \
nodes/firewall_acl_node.c \
nodes/conntrack_node.c \
nodes/forward_node.c \
nodes/drop_node.c \
firewall/acl_rules.c \
firewall/runtime_policy.c \
conntrack/flow_table.c
CFLAGS += -O3 -Wall -I. -Iinclude -Ifirewall -Iconntrack
CFLAGS += $(shell pkg-config --cflags libdpdk)
LDFLAGS += $(shell pkg-config --libs libdpdk)
all:
gcc $(SRC) $(CFLAGS) -o $(APP) $(LDFLAGS)
package:
tar --warning=no-file-changed \
--exclude-vcs \
--exclude='./$(APP)' \
--exclude='./$(PACKAGE)' \
-czf $(PACKAGE) .
clean:
rm -f $(APP) $(PACKAGE)