• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#
3#
4
5SRC_H		=	gen.h  networks.h  transpose.h
6
7SRC_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
12OBJ_C		= 	$(addsuffix .o,$(basename $(notdir $(SRC_C))))
13
14#
15#
16#
17
18GCC_OPT		=	-O2 -D NDEBUG
19
20#
21#
22#
23
24hs_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
32clean:
33		rm -f $(OBJ_C) hs_gen
34