Skip to content
Snippets Groups Projects
Makefile 977 B
AUTOPILOT_ROOT :=/opt/Xilinx/Vivado/2018.2

ASSEMBLE_SRC_ROOT := ../include/
TB_ROOT := ./tb
IFLAG += -I "${AUTOPILOT_ROOT}/include"
IFLAG += -I "${ASSEMBLE_SRC_ROOT}"
IFLAG += -I "/usr/include/x86_64-linux-gnu"
IFLAG += -D__SIM_FPO__ -D__SIM_OPENCV__ -D__SIM_FFT__ -D__SIM_FIR__ -D__SIM_DDS__ -D__DSP48E1__
IFLAG +=  -g 
CFLAG += -fPIC  -O3 -fsanitize=address
CC      = g++ 


all: csim.out 


##TO BE MODIFIED START

wino.o:src/wino.cpp
	$(CC) $(GCOV)  $(CFLAG)  -o $@ -c $^    -MMD $(IFLAG)
gold.o:src_gold/wino_gold.cpp
	$(CC) $(GCOV)  $(CFLAG)  -o $@ -c $^    -MMD $(IFLAG)
buffer.o:software/buffer.cpp
	$(CC) $(GCOV)  $(CFLAG)  -o $@ -c $^    -MMD $(IFLAG)

##TO BE MODIFIED END





main.o:./testbench/main.cpp	
	$(CC) $(GCOV)  $(CFLAG)  -I "${ASSEMBLE_SRC_ROOT}" -o $@  -c $^   -MMD $(IFLAG)

csim.out: main.o gold.o buffer.o wino.o  $(IP_DEP)
	$(CC)  $(GCOV)  $(CFLAG) -MMD $(IFLAG)  -o $@  $^ 



clean:
	rm -f -r csim.d 
	rm -f *.out *.gcno *.gcda *.txt *.o *.d