73 lines
1.5 KiB
Makefile
73 lines
1.5 KiB
Makefile
#
|
|
# 1. Set the path and clear environment
|
|
# TARGET_PATH := $(call my-dir)
|
|
# include $(ENV_CLEAR)
|
|
#
|
|
# 2. Set the source files and headers files
|
|
# TARGET_SRC := xxx_1.c xxx_2.c
|
|
# TARGET_INC := xxx_1.h xxx_2.h
|
|
#
|
|
# 3. Set the output target
|
|
# TARGET_MODULE := xxx
|
|
#
|
|
# 4. Include the main makefile
|
|
# include $(BUILD_BIN)
|
|
#
|
|
# Before include the build makefile, you can set the compilaion
|
|
# flags, e.g. TARGET_ASFLAGS TARGET_CFLAGS TARGET_CPPFLAGS
|
|
#
|
|
TARGET_PATH := $(call my-dir)
|
|
|
|
#########################################
|
|
include $(ENV_CLEAR)
|
|
|
|
include $(TARGET_TOP)/middleware/config/mpp_config.mk
|
|
SCLIB_TOP=${TARGET_PATH}/..
|
|
|
|
ifeq ($(MPPCFG_COMPILE_DYNAMIC_LIB), Y)
|
|
include $(SCLIB_TOP)/config.mk
|
|
|
|
TARGET_SRC := vencoder.c
|
|
|
|
TARGET_INC := \
|
|
$(TARGET_PATH)/base/include \
|
|
$(SCLIB_TOP)/ve/include \
|
|
$(SCLIB_TOP)/include \
|
|
$(SCLIB_TOP)/base/include
|
|
|
|
TARGET_SHARED_LIB := libvenc_base \
|
|
libvenc_codec
|
|
|
|
TARGET_CFLAGS += -fPIC -Wall -Wno-unused-variable -Wno-unused-but-set-variable $(CEDARX_EXT_CFLAGS)
|
|
|
|
TARGET_LDFLAGS := -shared -ldl
|
|
|
|
TARGET_MODULE := libvencoder
|
|
|
|
include $(BUILD_SHARED_LIB)
|
|
|
|
endif
|
|
|
|
|
|
ifeq ($(MPPCFG_COMPILE_STATIC_LIB), Y)
|
|
|
|
include $(ENV_CLEAR)
|
|
include $(SCLIB_TOP)/config.mk
|
|
|
|
TARGET_SRC := vencoder.c
|
|
|
|
TARGET_INC := \
|
|
$(TARGET_PATH)/base/include \
|
|
$(SCLIB_TOP)/ve/include \
|
|
$(SCLIB_TOP)/include \
|
|
$(SCLIB_TOP)/base/include \
|
|
|
|
TARGET_CFLAGS += -fPIC -Wall -Wno-unused-variable -Wno-unused-but-set-variable $(CEDARX_EXT_CFLAGS)
|
|
|
|
TARGET_MODULE := libvencoder
|
|
|
|
include $(BUILD_STATIC_LIB)
|
|
|
|
endif
|
|
|