47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
include $(PWD)/../Makefile.param
|
|
|
|
FLAGS := -O3 -Wall -fPIC -fstack-protector -fstack-check -Wl,-z,relro,-z,now -fvisibility=hidden
|
|
export FLAGS
|
|
|
|
CPPFLAGS += -I$(REL_INC)
|
|
CPPFLAGS += -I$(PWD)/common/include
|
|
CPPFLAGS += -I$(PWD)/include
|
|
CPPFLAGS += $(FLAGS)
|
|
CPPFLAGS += $(LIBS_CFLAGS)
|
|
CPPFLAGS += $(MPP_CFLAGS)
|
|
CPPFLAGS += -DON_BOARD
|
|
CPPFLAGS += -DNEON_ENABLE
|
|
CPU_AFFINITY := "cpu_task_affinity:4 cpu_task_affinity:8 monitor_task_affinity:3"
|
|
CPPFLAGS += -DCPU_AFFINITY=$(CPU_AFFINITY)
|
|
DEPEND_SDK_LIBS := -lss_nnie -ldl -lpthread -lss_ive -lsecurec -lss_mpi -lss_dnvqe -lss_upvqe -lss_voice_engine
|
|
|
|
SRCS := $(wildcard src/*.c)
|
|
SRCS += $(wildcard common/src/*.c)
|
|
TARGET := sample_runtime_release
|
|
|
|
# target source
|
|
OBJS := $(SRCS:%.c=%.o)
|
|
|
|
.PHONY : all proposal clean
|
|
|
|
all: proposal $(TARGET)
|
|
|
|
proposal:$(OBJS)
|
|
@cd plugins/proposal; make
|
|
@cd plugins/proposal_without_permute; make
|
|
@cp plugins/proposal/*.so . -f
|
|
@cp plugins/proposal_without_permute/*.so . -f
|
|
|
|
$(TARGET):$(OBJS)
|
|
@cp $(PWD)/src/*.modelgroup $(PWD)
|
|
$(CC) $(CFLAGS) $(LIBS_LD_CFLAGS) -o $@ $^ -L$(REL_LIB) -Wl,-Bstatic -lss_svpruntime -Wl,-Bdynamic -lpthread -lm -lstdc++ -L$(REL_LIB) $(DEPEND_SDK_LIBS)
|
|
|
|
clean:
|
|
@rm -f $(TARGET)
|
|
@rm -f $(OBJS)
|
|
@rm -rf *.so
|
|
@rm -rf *.ppm
|
|
@rm -rf $(PWD)/*.modelgroup
|
|
@cd plugins/proposal; make clean
|
|
@cd plugins/proposal_without_permute; make clean
|