[ONOS-6596] Port example P4 programs from P4_14 to P4_16
Change-Id: I74485ea66894b425fa9f6508a67cb38dbef85a4f
diff --git a/tools/test/p4src/p4-16/Makefile b/tools/test/p4src/p4-16/Makefile
new file mode 100644
index 0000000..9214804
--- /dev/null
+++ b/tools/test/p4src/p4-16/Makefile
@@ -0,0 +1,25 @@
+all: default.json empty.json ecmp.json wcmp.json
+
+default.json: default.p4
+ p4c-bm2-ss -o p4c-out/default.json \
+ --p4runtime-file p4c-out/default.p4info --p4runtime-format text \
+ default.p4
+
+empty.json: empty.p4
+ p4c-bm2-ss -o p4c-out/empty.json \
+ --p4runtime-file p4c-out/empty.p4info --p4runtime-format text \
+ empty.p4
+
+ecmp.json: ecmp.p4
+ p4c-bm2-ss -o p4c-out/ecmp.json \
+ --p4runtime-file p4c-out/ecmp.p4info --p4runtime-format text \
+ ecmp.p4
+
+wcmp.json: wcmp.p4
+ p4c-bm2-ss -o p4c-out/wcmp.json \
+ --p4runtime-file p4c-out/wcmp.p4info --p4runtime-format text \
+ wcmp.p4
+
+clean:
+ rm -rf p4c-out/*.json
+ rm -rf p4c-out/*.p4info