ID photo of Ciro Santilli taken in 2013 right eyeCiro Santilli OurBigBook logoOurBigBook.com  Sponsor 中国独裁统治 China Dictatorship 新疆改造中心、六四事件、法轮功、郝海东、709大抓捕、2015巴拿马文件 邓家贵、低端人口、西藏骚乱
verilog/interactive/Makefile
.POSIX:

.PHONY: all clean run

RUN ?= move
OUT_EXT ?= .out
VERILATOR_DIR = ./obj_dir/

all: $(VERILATOR_DIR)Vand2 $(VERILATOR_DIR)Vmove display$(OUT_EXT)

$(VERILATOR_DIR)Vand2: and2.v and2.cpp fps.hpp
	verilator -Wall --cc and2.v --exe and2.cpp
	make -C obj_dir -f Vand2.mk Vand2 LIBS='-lSDL2'

$(VERILATOR_DIR)Vmove: move.v move.cpp fps.hpp
	verilator -Wall --cc move.v --exe move.cpp
	make -C obj_dir -f Vmove.mk Vmove CXXFLAGS='--std=c++11 -Wall' LIBS='-lSDL2'

display$(OUT_EXT): display.cpp
	g++ -o '$@' '$<' -lm -lSDL2

clean:
	rm -rf obj_dir *'$(OUT_EXT)'

run: all
	'$(VERILATOR_DIR)V$(RUN)'