| 1 | ifndef GOWINHOME |
| 2 | $(error GOWINHOME is not set. Must be location of Gowin EDA Tools) |
| 3 | endif |
| 4 | |
| 5 | .SECONDARY: |
| 6 | .PHONY: all clean |
| 7 | |
| 8 | all: apycula/GW1N-1.msgpack.xz apycula/GW1N-9.msgpack.xz apycula/GW1N-4.msgpack.xz \ |
| 9 | apycula/GW1NS-4.msgpack.xz apycula/GW1N-9C.msgpack.xz apycula/GW1NZ-1.msgpack.xz \ |
| 10 | apycula/GW1N-2.msgpack.xz \ |
| 11 | apycula/GW2A-18.msgpack.xz apycula/GW2A-18C.msgpack.xz apycula/GW5A-25A.msgpack.xz \ |
| 12 | apycula/GW5AST-138C.msgpack.xz apycula/GW5AT-60B.msgpack.xz |
| 13 | |
| 14 | BUILDER_DEPS = apycula/chipdb_builder.py apycula/fse_parser.py apycula/dat_parser.py \ |
| 15 | apycula/tm_parser.py apycula/chipdb.py |
| 16 | |
| 17 | apycula/%.msgpack.xz: $(BUILDER_DEPS) |
| 18 | python3 -m apycula.chipdb_builder $* |
| 19 | |
| 20 | clean: |
| 21 | rm -f apycula/*.msgpack.xz |