Home | History | Annotate | Download | only in bench
      1 #
      2 #
      3 #
      4 
      5 SRC_C		=	../../../common/util.c			 \
      6 			../../../common/vk/assert_vk.c		 \
      7 			../../../common/vk/cache_vk.c		 \
      8 			../../../common/vk/host_alloc.c		 \
      9 			../hs_vk.c				 \
     10 			../intel/gen8/u32/hs_intel_gen8_u32.c	 \
     11 			../intel/gen8/u64/hs_intel_gen8_u64.c 	 \
     12 			../nvidia/sm_35/u32/hs_nvidia_sm35_u32.c \
     13 			../nvidia/sm_35/u64/hs_nvidia_sm35_u64.c \
     14 			../amd/gcn/u32/hs_amd_gcn_u32.c          \
     15 			../amd/gcn/u64/hs_amd_gcn_u64.c          \
     16 			main.c
     17 
     18 SRC_CPP		=	sort.cpp
     19 
     20 OBJ_C		= 	$(addsuffix .o,$(basename $(notdir $(SRC_C))))
     21 
     22 OBJ_CPP		= 	$(addsuffix .o,$(basename $(notdir $(SRC_CPP))))
     23 
     24 #
     25 #
     26 #
     27 
     28 AMD_OPT		=	-D HS_VK_VERBOSE_STATISTICS_AMD # -D HS_VK_VERBOSE_DISASSEMBLY_AMD
     29 
     30 GCC_OPT		=	-O2 -D NDEBUG $(AMD_OPT)
     31 GPP_OPT		=	-O2 -D NDEBUG $(AMD_OPT) -std=c++11
     32 
     33 #
     34 #
     35 #
     36 
     37 VULKAN_INC	=	$(VULKAN_SDK)/include
     38 
     39 #
     40 #
     41 #
     42 
     43 hs_bench_vk:	$(OBJ_C) $(OBJ_CPP)
     44 		g++ -o $@ $^ $(VULKAN_SDK)/lib/libvulkan.so.1
     45 		rm -f $(OBJ_C) $(OBJ_CPP)
     46 
     47 $(OBJ_C):	$(SRC_C)
     48 		gcc $(GCC_OPT) -c $^ -I ../../.. -I .. -I $(VULKAN_INC)
     49 
     50 $(OBJ_CPP):	$(SRC_CPP)
     51 		g++ $(GPP_OPT) -c $^
     52 
     53 
     54 .PHONY: clean
     55 clean:
     56 		rm -f $(OBJ_C) $(OBJ_CPP) hs_bench_vk
     57