blob: 80d4de8293acc0d236b6f2ab33714d638e92f08a [file] [log] [blame]
all: libaudioparamparser.so.1.0.0
LDFLAGS = $(BB_LDFLAGS_ADD) -Wl,--hash-style=gnu -shared -Wl,-soname -L. -L $(ROOT)/lib
LOCAL_PATH = .
OFLAGS = -fPIC
INCLUDE= ${BB_INCLUDE_ADD} \
-I./include \
-I./include/alps_utils
CSRC= AudioCategory.c \
AudioParam.c \
AudioParamFieldInfo.c \
AudioParamParser.c \
AudioParamTreeView.c \
AudioParamUnit.c \
AudioType.c \
AudioUtils.c \
UnitTest.c
CXXSRC= guicon.cpp
LIB_INCLUDE = -llog \
-lutils \
-lxml2
CFLAGS += -DMTK_YOCTO_AUDIO
CXXOBJS=$(CXXSRC:.cpp=.o)
COBJS=$(CSRC:.c=.o)
%.o : %.cpp
$(CXX) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $<
%.o : %.c
$(CC) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $<
libaudioparamparser.so.1.0.0: $(COBJS) $(CXXOBJS)
$(CXX) $(COBJS) $(CXXOBJS) $(LDFLAGS) $(LIB_INCLUDE) -shared -o libaudioparamparser.so.1.0.0
install:
cp -af libaudioparamparser.so.1.0.0 ../
mkdir -p ../audio_param
cp -af $(TARGET_PLATFORM)/audio_param/* ../audio_param/
mkdir -p ../export_include
mkdir -p ../export_include/libxml
cp -af *h ../export_include
cp -af include/*.h ../export_include
cp -af include/libxml/*.h ../export_include/libxml
clean:
rm -rf *.o