Home | History | Annotate | Download | only in gen
      1 #
      2 #
      3 #
      4 
      5 SRC_H		=	gen.h  networks.h  transpose.h
      6 
      7 SRC_C		=	main.c	networks_merging.c  networks_sorting.c	\
      8 			target_cuda.c  target_debug.c  target_glsl.c    \
      9 			target_opencl.c  transpose.c			\
     10 			../../common/util.c
     11 
     12 OBJ_C		= 	$(addsuffix .o,$(basename $(notdir $(SRC_C))))
     13 
     14 #
     15 #
     16 #
     17 
     18 GCC_OPT		=	-O2 -D NDEBUG
     19 
     20 #
     21 #
     22 #
     23 
     24 hs_gen:		$(OBJ_C)
     25 		gcc -o $@ $^
     26 		rm -f $(OBJ_C)
     27 
     28 $(OBJ_C):	$(SRC_C)
     29 		gcc $(GCC_OPT) -c $^ -I ../..
     30 
     31 .PHONY: clean
     32 clean:
     33 		rm -f $(OBJ_C) hs_gen
     34