blob: 64b3ea2321bea2c959618accca0d8b15751cbb7f [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 Casconea4dc3c12019-02-12 17:30:00 -08005 --p4runtime-files p4c-out/bmv2/basic_p4info.txt \
6 basic.p4
Carmelo Casconeca94bcf2017-10-27 14:16:59 -07007
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" \
Carmelo Casconea4dc3c12019-02-12 17:30:00 -080010 --p4runtime-files p4c-out/bmv2/int_p4info.txt \
11 int.p4
Jonghwan Hyun4a9a6712017-11-13 14:43:55 -080012
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 \
Carmelo Casconea4dc3c12019-02-12 17:30:00 -080016 basic p4c-out/bmv2/basic_p4info.txt
Carmelo Cascone776be382018-12-12 19:03:57 -080017
Carmelo Casconeca94bcf2017-10-27 14:16:59 -070018clean:
Carmelo Cascone6af4e172018-06-15 16:01:30 +020019 rm -rf p4c-out/bmv2/*