Home | History | Annotate | Download | only in bench
      1 #
      2 #
      3 #
      4 
      5 SRC_C	=	../../../common/cl/assert_cl.c		\
      6 		../../../common/cl/find_cl.c		\
      7 		../../../common/util.c			\
      8 		../hs_cl.c				\
      9 		../intel/gen8/u32/hs_intel_gen8_u32.c	\
     10 		../intel/gen8/u64/hs_intel_gen8_u64.c 	\
     11 		main.c
     12 
     13 SRC_CPP	=	sort.cpp
     14 
     15 OBJ_C	= 	$(addsuffix .o,$(basename $(notdir $(SRC_C))))
     16 
     17 OBJ_CPP	= 	$(addsuffix .o,$(basename $(notdir $(SRC_CPP))))
     18 
     19 #
     20 #
     21 #
     22 
     23 hs_bench_cl:	$(OBJ_C) $(OBJ_CPP)
     24 		g++ -o $@ $^ /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
     25 
     26 $(OBJ_C):	$(SRC_C)
     27 		gcc -D NDEBUG -D HS_DUMP_SOURCE -c $^ -I ../../.. -I ..
     28 
     29 $(OBJ_CPP):	$(SRC_CPP)
     30 		g++ -D NDEBUG -std=c++11        -c $^
     31 
     32 
     33 .PHONY: clean
     34 clean:
     35 		rm -f $(OBJ_C) $(OBJ_CPP) hs_bench_cl
     36