-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Feb 12, 2018
1 parent
ea9b02e
commit 82c073b
Showing
5 changed files
with
52 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -452,4 +452,5 @@ ip6/applications/bin/ | |
|
||
*.cmd | ||
|
||
*.d | ||
*.d | ||
ip6/applications/dpdk/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,36 @@ | ||
MAKE_DIR = $(PWD) | ||
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
MSG_DIR := $(ROOT_DIR)/ip6/ | ||
MAKE_ROOT:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) | ||
MSG_DIR := $(MAKE_ROOT)/ip6/ | ||
|
||
CC = gcc | ||
CFLAGS += -c -Wextra -Wall -Wall -Wshadow -Wpointer-arith -Wcast-qual | ||
CFLAGS += -std=gnu11 -pedantic | ||
CFGLAS += -oFast # performance flags | ||
CFLAGS += -DRAW_SOCK | ||
# CFLAGS += -Wstrict-prototypes -Wmissing-prototypes | ||
|
||
LDFLAGS := -lpcap -pthread -lm -lrt | ||
|
||
export MAKE_DIR CC CFLAGS LDFLAGS | ||
apps := server testing rmem_test busexmp | ||
|
||
export apps CC CFLAGS LDFLAGS | ||
all: | ||
@echo $(ROOT_DIR) | ||
@rm -rf $(ROOT_DIR)/ip6/build | ||
@echo $(MAKE_ROOT) | ||
@rm -rf $(MAKE_ROOT)/ip6/build | ||
@$(MAKE) -C $(MSG_DIR) -f default.mk | ||
@find $(ROOT_DIR)/ip6/ -name '*.o*' -delete | ||
@find $(MAKE_ROOT)/ip6/ -name '*.o*' -delete | ||
|
||
dpdk: $(apps) | ||
@find $(MAKE_ROOT)/ip6/ -name '*.o*' -delete | ||
@rm -rf $(MAKE_ROOT)/ip6/build | ||
|
||
$(apps): | ||
# binary name | ||
$(MAKE) -C $(MSG_DIR) -f dpdk.mk O=applications/dpdk/ APP=$@ | ||
@find $(MAKE_ROOT)/ip6/ -name '*.o*' -delete | ||
|
||
dpdk: | ||
@find $(ROOT_DIR)/ip6/ -name '*.o*' -delete | ||
@rm -rf $(ROOT_DIR)/ip6/build | ||
@$(MAKE) -C $(MSG_DIR) -f dpdk.mk | ||
@find $(ROOT_DIR)/ip6/ -name '*.o*' -delete | ||
|
||
.PHONY: clean dpdk | ||
clean: | ||
@$(MAKE) -C $(MSG_DIR) clean | ||
@find $(ROOT_DIR)/ip6/ -name '*.o*' -delete | ||
@rm -rf $(ROOT_DIR)/ip6/build | ||
@find $(MAKE_ROOT)/ip6/ -name '*.o*' -delete | ||
@rm -rf $(MAKE_ROOT)/ip6/build | ||
|