mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-24 13:57:17 -04:00
30 lines
487 B
Makefile
30 lines
487 B
Makefile
TOP = VX_fifo_queue
|
|
|
|
PARAMS ?=
|
|
|
|
INCLUDE = -I../../rtl/ -I../../rtl/libs
|
|
|
|
SRCS = main.cpp
|
|
|
|
all: build
|
|
|
|
CF += -std=c++11 -fms-extensions -I../..
|
|
VF += $(PARAMS)
|
|
|
|
VF += --language 1800-2009 --assert -Wall --trace
|
|
VF += -Wno-DECLFILENAME
|
|
VF += --x-initial unique
|
|
VF += -exe $(SRCS) $(INCLUDE)
|
|
VF += $(PARAMS)
|
|
|
|
gen:
|
|
verilator $(VF) -cc $(TOP).v -CFLAGS '$(CF)' --exe $(SRCS)
|
|
|
|
build: gen
|
|
(cd obj_dir && make -j -f V$(TOP).mk)
|
|
|
|
run: build
|
|
(cd obj_dir && ./V$(TOP))
|
|
|
|
clean:
|
|
rm -rf obj_dir
|