aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/examples/mobility/Makefile
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-05-17 09:42:53 +0000
committerGerrit Code Review <gerrit@fd.io>2021-05-17 09:42:53 +0000
commit31eea8b286ded60b37fcc87de4beb025eb59924e (patch)
tree40b1f93a269ad5422d517bfa141957d0b7559a50 /ctrl/facemgr/examples/mobility/Makefile
parent0982497d26806bad1a069766ac46a4f238d850ab (diff)
parent40d22455f1295d0bff005209bbf73e7e80799de7 (diff)
Merge "[HICN-701] facemgr: add priority controller mobility example"
Diffstat (limited to 'ctrl/facemgr/examples/mobility/Makefile')
-rw-r--r--ctrl/facemgr/examples/mobility/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/ctrl/facemgr/examples/mobility/Makefile b/ctrl/facemgr/examples/mobility/Makefile
new file mode 100644
index 000000000..3b92d9d5f
--- /dev/null
+++ b/ctrl/facemgr/examples/mobility/Makefile
@@ -0,0 +1,23 @@
+EXEC = $(shell basename $$(pwd))
+CC = gcc
+
+CFLAGS = -std=gnu11 -O3 -Wall -Wextra -Wpedantic -Wstrict-aliasing
+
+SRC = $(wildcard *.c)
+OBJ = $(SRC:.c=.o)
+
+all: $(EXEC)
+
+${EXEC}: $(OBJ)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+%.o: %.c
+ $(CC) -o $@ -c $< $(CFLAGS)
+
+.PHONY: clean mrproper
+
+clean:
+ @rm -rf *.o
+
+mrproper: clean
+ @rm -rf $(EXEC)