diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,6 +1,5 @@ | |||
| 1 | SOURCES := $(wildcard hdl/**.sv) | 1 | SOURCES := $(wildcard hdl/**.sv) |
| 2 | HEADERS := $(wildcard hdl/**.svh) | 2 | HEADERS := $(wildcard hdl/**.svh) |
| 3 | MEMORIES := $(addprefix build/, $(addsuffix .hex, $(basename $(wildcard mem/**.pal)))) | ||
| 4 | QUARTUS := $(shell find altera tcl -name \*.cdf -o -name \*.sdc -o -name \*.tcl) | 3 | QUARTUS := $(shell find altera tcl -name \*.cdf -o -name \*.sdc -o -name \*.tcl) |
| 5 | 4 | ||
| 6 | fpga: pdp8.sof | 5 | fpga: pdp8.sof |
| @@ -75,7 +74,7 @@ build/%.bin: %.pal | |||
| 75 | palbart $< | 74 | palbart $< |
| 76 | mv -f $*.bin $*.lst $(dir $@) | 75 | mv -f $*.bin $*.lst $(dir $@) |
| 77 | 76 | ||
| 78 | pdp8.sof: $(SOURCES) $(HEADERS) $(MEMORIES) $(QUARTUS) | 77 | pdp8.sof: $(SOURCES) $(HEADERS) $(QUARTUS) |
| 79 | [ ! -e pdp8.qpf ] || quartus_sh -t tcl/clean.tcl | 78 | [ ! -e pdp8.qpf ] || quartus_sh -t tcl/clean.tcl |
| 80 | quartus_sh -t tcl/init.tcl | 79 | quartus_sh -t tcl/init.tcl |
| 81 | quartus_sh --flow compile pdp8.qpf | 80 | quartus_sh --flow compile pdp8.qpf |
