Add imagenet example to tinn
[tidl/tidl-api.git] / examples / make.common
1 RM = rm
2 AR = ar
3 CP = cp
5 TINN_DIR = ../../tinn_api
6 TINN_LIB_NAME = tinn_api.a
7 TINN_LIB = $(TINN_DIR)/$(TINN_LIB_NAME)
8 TINN_LIB_IMGUTIL_NAME = tinn_imgutil.a
9 TINN_LIB_IMGUTIL = $(TINN_DIR)/$(TINN_LIB_IMGUTIL_NAME)
11 include $(TINN_DIR)/make.inc
13 ifeq ($(BUILD), debug)
14         CXXFLAGS += -Og -g -ggdb
15 else
16         CXXFLAGS += -O3
17 endif
19 CXXFLAGS += -I. -I$(TINN_DIR)/inc -std=c++11
21 HEADERS = 
22 LIBS    = -lOpenCL -locl_util -lpthread
24 all: $(EXE)
26 .PHONY: $(TINN_LIB)
27 $(TINN_LIB):
28         $(MAKE) -C $(TINN_DIR) $(TINN_LIB_NAME)
30 .PHONY: $(TINN_LIB_IMGUTIL)
31 $(TINN_LIB_IMGUTIL):
32         $(MAKE) -C $(TINN_DIR) $(TINN_LIB_IMGUTIL_NAME)
34 realclean: clean
35         $(MAKE) -C $(TINN_DIR) clean
36         $(MAKE) -C $(TINN_DIR)/dsp clean
38 clean::
39         $(RM) -f $(EXE) stats_tool_out.* *.out