29 lines
715 B
Makefile
29 lines
715 B
Makefile
DESIGN = toplevel
|
|
TOPLEVEL = TopLevel
|
|
ASM = asm/monitor.txt
|
|
|
|
NGDBUILD_FLAGS ?= -aul
|
|
MAP_FLAGS ?= -timing -ol high -xe n -detail
|
|
PAR_FLAGS ?= -ol high -xe n
|
|
|
|
ifneq ($(shell cat .lastasm 2>/dev/null),$(ASM))
|
|
# ASM changed, rebuild program.data even if up to date
|
|
.PHONY: program.data program.dis program.sym
|
|
endif
|
|
|
|
OTHER_FILES = program.data
|
|
|
|
-include $(XILINX)/Makefile.common
|
|
|
|
program.sym program.dis: program.data
|
|
program.data: $(ASM) $(shell ./assemble.rb --depends $(ASM)) assemble.rb
|
|
./assemble.rb --code=program.dis --syms=program.sym \
|
|
--origin=0 --format=hex -- $< > $@
|
|
echo $(ASM) > .lastasm
|
|
|
|
clean: clean-local
|
|
|
|
.PHONY: clean-local
|
|
clean-local:
|
|
-rm -f program.data program.dis program.sym .lastasm
|