diff options
author | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-05 10:51:17 +0100 |
---|---|---|
committer | Jordan Augé <jordan.auge+fdio@cisco.com> | 2019-11-05 10:51:17 +0100 |
commit | bae25e4dac2ec43bea890d996055a51fb7ded3b3 (patch) | |
tree | 871aa5b3d5c1eb16cd609d20d7a0f1ea277b8ea8 /ctrl/libhicnctrl/examples/Makefile | |
parent | 6b7f4c3f9d9d26a5aa71be8f5976956aff387e8f (diff) |
[HICN-380] add libhicnctrl example (create face)
Change-Id: I230d4cc51710fa4ce7ce24c97cd72b1fc7d1f573
Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
Diffstat (limited to 'ctrl/libhicnctrl/examples/Makefile')
-rw-r--r-- | ctrl/libhicnctrl/examples/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ctrl/libhicnctrl/examples/Makefile b/ctrl/libhicnctrl/examples/Makefile new file mode 100644 index 000000000..a6c6f0570 --- /dev/null +++ b/ctrl/libhicnctrl/examples/Makefile @@ -0,0 +1,20 @@ +EXEC = $(shell basename $$(pwd)) +CC = gcc + +CFLAGS = -std=gnu11 -O3 -Wall -Wextra -Wpedantic -Wstrict-aliasing -DWITH_POLICY=1 +LDFLAGS = -lhicn -lhicnctrl + +SRC = $(wildcard *.c) +EXEC = $(SRC:.c=) + +all: $(EXEC) + +${EXEC}: $(SRC) + $(CC) -o $@ $< $(CFLAGS) $(LDFLAGS) + +.PHONY: clean mrproper + +clean: + @rm -rf $(EXEC) + +mrproper: clean |