aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/libhicnctrl/examples/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'ctrl/libhicnctrl/examples/Makefile')
-rw-r--r--ctrl/libhicnctrl/examples/Makefile20
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