2018-10-24 18:34:51 -05:00
|
|
|
##########################################################################################
|
|
|
|
# Makefile to build CAD tools in OpenFPGA inspired by Verilog-to-Routing (VTR) Framework #
|
|
|
|
##########################################################################################
|
|
|
|
|
2019-05-04 00:24:08 -05:00
|
|
|
SUBDIRS = abc_with_bb_support abc ace2 vpr7_x2p yosys
|
2018-10-24 18:34:51 -05:00
|
|
|
|
|
|
|
all: notifications subdirs
|
|
|
|
|
|
|
|
subdirs: $(SUBDIRS)
|
|
|
|
|
|
|
|
$(SUBDIRS):
|
|
|
|
@ $(MAKE) -C $@ --no-print-directory
|
|
|
|
|
|
|
|
notifications:
|
|
|
|
# checks if required packages are installed, and notifies the user if not
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep exuberant-ctags -c >>/dev/null; then echo "\n\n\n\n***************************************************************\n* Required package 'ctags' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install exuberant-ctags' to install manually. *\n***************************************************************\n\n\n\n"; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep bison -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'bison' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install bison' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep flex -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'flex' not found. *\n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install flex' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep g++ -c >>/dev/null; then echo "\n\n\n\n*****************************************************\n* Required package 'g++' not found. * \n* Type 'make packages' to install all packages, or *\n* 'sudo apt-get install g++' to install manually. *\n*****************************************************\n\n\n\n"; fi; fi
|
|
|
|
|
|
|
|
packages:
|
|
|
|
# checks if required packages are installed, and installs them if not
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep exuberant-ctags -c >>/dev/null; then sudo apt-get install exuberant-ctags; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep bison -c >>/dev/null; then sudo apt-get install bison; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep flex -c >>/dev/null; then sudo apt-get install flex; fi; fi
|
|
|
|
@ if cat /etc/issue | grep Ubuntu -c >>/dev/null; then if ! dpkg -l | grep g++ -c >>/dev/null; then sudo apt-get install g++; fi; fi
|
|
|
|
@ cd vpr && make packages
|
|
|
|
|
|
|
|
clean:
|
2019-04-10 02:22:20 -05:00
|
|
|
@ cd abc_with_bb_support && make clean
|
2019-05-04 00:24:08 -05:00
|
|
|
@ cd abc && make clean
|
2018-10-24 18:34:51 -05:00
|
|
|
@ cd ace2 && make clean
|
|
|
|
@ cd vpr7_x2p && make clean
|
2018-12-06 15:55:36 -06:00
|
|
|
@ cd yosys && make clean
|
2018-10-24 18:34:51 -05:00
|
|
|
|
|
|
|
clean_vpr:
|
|
|
|
@ cd vpr && make clean
|
|
|
|
|
2018-11-20 14:24:31 -06:00
|
|
|
.PHONY: packages subdirs $(SUBDIRS)
|