-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
36 lines (29 loc) · 1.32 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#Minimal makefile for Wlink
SHELL=/bin/bash
CONFIG ?= wav.wlink.Wlink1LaneAXI32bitConfig
OUTPUTDIR ?= $(CONFIG)
TEST_CONFIG ?= wav.wlink.AXI32bit1LaneWlinkTestConfig
TEST_OUTPUTDIR ?= $(TEST_CONFIG)
help:
@echo "Wlink Generator Makefile"
@echo ""
@echo "CONFIG = <package.Config> # Configuration used to generate make wlink"
@echo "OUTPUTDIR = <outputdir/> # Directory for output files of make wlink"
@echo ""
@echo "# To generate a single Wlink instance for design integration"
@echo "make wlink CONFIG=<config> OUTPUTDIR=<outputdir>"
@echo ""
@echo "TEST_CONFIG = <package.Config> # Configuration used to generate make testharness"
@echo "TEST_OUTPUTDIR = <outputdir/> # Directory for output files of make testharness"
@echo ""
@echo "# To generate a WlinkSimpleTestHarness to run simple simulations"
@echo "make testharness TEST_CONFIG=<config> TEST_OUTPUTDIR=<outputidr>"
@echo ""
.PHONY: help
wlink:
@echo "Making Wlink with CONFIG: $(CONFIG) and saving to $(OUTPUTDIR)"
sbt 'runMain wav.wlink.WlinkGen -o $(OUTPUTDIR) -c $(CONFIG)'
# Ensure that the testharness config is one that is supported for the testharness!!!
testharness:
@echo "Making TestHarness with TEST_CONFIG: $(TEST_CONFIG) and saving to $(TEST_OUTPUTDIR)"
sbt 'runMain wav.wlink.WlinkTHGen -o $(TEST_OUTPUTDIR) -c $(TEST_CONFIG)'