Partitioned execution of TI DL network
[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
20 CXXFLAGS += -I$(TI_OCL_INSTALL)/usr/share/ti/opencl
21 CXXFLAGS += -I$(TARGET_ROOTDIR)/usr/share/ti/opencl
23 HEADERS = 
24 LIBS    = -lOpenCL -locl_util -lpthread
26 all: $(EXE)
28 .PHONY: $(TINN_LIB)
29 $(TINN_LIB):
30         $(MAKE) -C $(TINN_DIR) $(TINN_LIB_NAME)
32 .PHONY: $(TINN_LIB_IMGUTIL)
33 $(TINN_LIB_IMGUTIL):
34         $(MAKE) -C $(TINN_DIR) $(TINN_LIB_IMGUTIL_NAME)
36 realclean: clean
37         $(MAKE) -C $(TINN_DIR) clean
38         $(MAKE) -C $(TINN_DIR)/dsp clean
40 clean::
41         $(RM) -f $(EXE) stats_tool_out.* *.out