This repository has been archived on 2021-01-21. You can view files and clone it, but cannot push or open issues or pull requests.
hdmi.old/Makefile

29 lines
1.3 KiB
Makefile

all: syn/main.bin
syn/main.bin: syn/main.ncd mb/Graphics/Release/Graphics.elf
@cd syn && bitgen -intstyle ise -f main.ut main.ncd
syn/main.ncd: syn/main.prj syn/main.xst src/*.v ipcore_dir/*.v syn/xst/projnav.tmp/
@cd syn && xst -intstyle ise -ifn "main.xst" -ofn "main.syr"
@cd syn && ngdbuild -intstyle ise -dd _ngo -sd ../ipcore_dir -nt timestamp -uc /home/tim/Projects/z80/hdmi/src/constraints.ucf -p xc6slx9-tqg144-2 main.ngc main.ngd -bm "../ipcore_dir/microblaze_mcs.bmm"
@cd syn && map -intstyle ise -p xc6slx9-tqg144-2 -w -logic_opt off -ol high -t 1 -xt 0 -register_duplication off -r 4 -global_opt off -mt off -ir off -pr off -lc off -power off -o main_map.ncd main.ngd main.pcf
@cd syn && par -w -intstyle ise -ol high -mt off main_map.ncd main.ncd main.pcf
@cd syn && trce -intstyle ise -v 3 -s 2 -n 3 -fastpaths -xml main.twx main.ncd -o main.twr main.pcf
syn/xst/projnav.tmp/:
@mkdir -p syn/xst/projnav.tmp
mb/Graphics/Release/Graphics.elf: mb
@echo
.PHONY: mb
mb:
@$(MAKE) -C mb/Graphics_bsp all
@$(MAKE) -C mb/Graphics/Release all
.PHONY: clean
clean:
@cd syn && find . ! -name 'main.prj' ! -name 'main.ut' ! -name 'main.xst' ! -name 'Makefile' ! -name '.' -exec rm -rf {} +
@$(MAKE) -C mb/Graphics_bsp clean
@$(MAKE) -C mb/Graphics/Release clean