diff options
| author | uvok | 2025-12-24 15:58:45 +0100 |
|---|---|---|
| committer | uvok | 2025-12-24 15:58:45 +0100 |
| commit | 177e51dce83dc9c94947fbfa3a0035cc0c4c856f (patch) | |
| tree | baa0ad5fef9fbff0a53257d4bc8708630a8bd695 | |
| parent | a5115147fbe0661ca78702e97b0fa3d5277ac83c (diff) | |
Adjst Makefile
- add dependency
- Make PROGRAM variable
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -2,7 +2,9 @@ MAKEFLAGS += --no-builtin-rules MAKEFLAGS += --no-builtin-variables .SUFFIXES: -all: led.fs +PROGRAM ?= led + +all: $(PROGRAM).fs tangnano9k.cst: wget https://github.com/YosysHQ/apicula/raw/refs/heads/master/examples/tangnano9k.cst || \ @@ -20,7 +22,9 @@ tangnano9k.cst: || \ nextpnr-gowin --json $< --write $@ \ --device GW1NR-LV9QN88PC6/I5 --family GW1N-9C \ - --cst tangnano9k.cst + --cst tangnano9k.cst \ + --placed-svg $*.plc.svg \ + --routed-svg $*.rt.svg %.fs: %.pnr.json gowin_pack -d GW1N-9C -o $@ $< @@ -30,3 +34,6 @@ flash: led.fs clean: rm -rf *.json *.fs *.svg *.log + +led.fs: clkdiv.v + |
