Yi Tseng | 2162993 | 2017-06-06 11:17:43 -0700 | [diff] [blame] | 1 | all: default.json empty.json ecmp.json wcmp.json |
| 2 | |
| 3 | default.json: default.p4 |
| 4 | p4c-bm2-ss -o p4c-out/default.json \ |
| 5 | --p4runtime-file p4c-out/default.p4info --p4runtime-format text \ |
| 6 | default.p4 |
| 7 | |
| 8 | empty.json: empty.p4 |
| 9 | p4c-bm2-ss -o p4c-out/empty.json \ |
| 10 | --p4runtime-file p4c-out/empty.p4info --p4runtime-format text \ |
| 11 | empty.p4 |
| 12 | |
| 13 | ecmp.json: ecmp.p4 |
| 14 | p4c-bm2-ss -o p4c-out/ecmp.json \ |
| 15 | --p4runtime-file p4c-out/ecmp.p4info --p4runtime-format text \ |
| 16 | ecmp.p4 |
| 17 | |
| 18 | wcmp.json: wcmp.p4 |
| 19 | p4c-bm2-ss -o p4c-out/wcmp.json \ |
| 20 | --p4runtime-file p4c-out/wcmp.p4info --p4runtime-format text \ |
| 21 | wcmp.p4 |
| 22 | |
| 23 | clean: |
| 24 | rm -rf p4c-out/*.json |
| 25 | rm -rf p4c-out/*.p4info |