blob: 67b9355ab4423603f02a4e502a9223526c5cec5a [file] [log] [blame]
Carmelo Cascone776be382018-12-12 19:03:57 -08001all: basic int constants
Carmelo Casconeca94bcf2017-10-27 14:16:59 -07002
3basic: basic.p4
Carmelo Cascone6af4e172018-06-15 16:01:30 +02004 p4c-bm2-ss --arch v1model -o p4c-out/bmv2/basic.json \
Carmelo Casconeca94bcf2017-10-27 14:16:59 -07005 --p4runtime-file p4c-out/bmv2/basic.p4info \
6 --p4runtime-format text basic.p4
7
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -08008int: int.p4
Jonghwan Hyunc235d462019-01-30 23:31:48 +09009 p4c-bm2-ss --arch v1model -o p4c-out/bmv2/int.json "-DTARGET_BMV2" \
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -080010 --p4runtime-file p4c-out/bmv2/int.p4info \
11 --p4runtime-format text int.p4
12
Carmelo Cascone776be382018-12-12 19:03:57 -080013constants:
14 onos-gen-p4-constants \
15 -o $(ONOS_ROOT)/pipelines/basic/src/main/java/org/onosproject/pipelines/basic/BasicConstants.java \
16 basic p4c-out/bmv2/basic.p4info
17
Carmelo Casconeca94bcf2017-10-27 14:16:59 -070018clean:
Carmelo Cascone6af4e172018-06-15 16:01:30 +020019 rm -rf p4c-out/bmv2/*