forked from Xilinx/Vitis-Tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (31 loc) · 982 Bytes
/
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
37
#######################################################################################
.PHONY: help
help:
@echo "Makefile Usage:"
@echo " make all"
@echo " Command to run all target csim & csynth in turn."
@echo ""
@echo " make csim"
@echo " make csynth"
@echo " Command to run only one step of Vitis HLS. Note csim forces clean first."
@echo ""
@echo " make clean"
@echo " Command to remove the generated files."
@echo ""
@echo " make help"
@echo " Print this help."
@echo ""
#######################################################################################
SHELL := bash
CONFIG := ./workspace/dct_golden/hls_config.cfg
WORK_DIR := dct
COMMON_OPTIONS := --mode hls --config ${CONFIG} --work_dir ${WORK_DIR}
all: csim csynth ;#cosim
csynth:
v++ --compile ${COMMON_OPTIONS}
csim: clean # clean before csim !
csim cosim:
vitis-run --$@ ${COMMON_OPTIONS}
.PHONY: clean
clean:
rm -rf ${WORK_DIR} vitis_c++/ .Xil/ xcd.log