Skip to content

Instantly share code, notes, and snippets.

@moriglia
moriglia / makefile
Last active December 27, 2019 16:21
Create a basic HDL project structure with a ready boilerplate makefile
# Makefile generated by starthdlproject
SHELL := /bin/bash
vhd_files = $(shell find ../hdl/src/ ../hdl/tb/ \
-regex .*\/[a-zA-Z0-9_\.]+\.vhd[l]? \
-not -regex .*\/[a-zA-Z0-9_\.]+\.cpp\.vhd[l]?)
preproc_files = $(shell find ../hdl/src/ ../hdl/tb/ \
-regex .*\/[a-zA-Z0-9_\.]+\.cpp\.vhd[l]?)
preproc_basenames = $(shell find ../hdl/src/ ../hdl/tb/ \