blob: 80d4de8293acc0d236b6f2ab33714d638e92f08a [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001all: libaudioparamparser.so.1.0.0
2
3LDFLAGS = $(BB_LDFLAGS_ADD) -Wl,--hash-style=gnu -shared -Wl,-soname -L. -L $(ROOT)/lib
4LOCAL_PATH = .
5
6OFLAGS = -fPIC
7
8INCLUDE= ${BB_INCLUDE_ADD} \
9 -I./include \
10 -I./include/alps_utils
11
12CSRC= AudioCategory.c \
13 AudioParam.c \
14 AudioParamFieldInfo.c \
15 AudioParamParser.c \
16 AudioParamTreeView.c \
17 AudioParamUnit.c \
18 AudioType.c \
19 AudioUtils.c \
20 UnitTest.c
21
22CXXSRC= guicon.cpp
23
24LIB_INCLUDE = -llog \
25 -lutils \
26 -lxml2
27
28CFLAGS += -DMTK_YOCTO_AUDIO
29
30
31CXXOBJS=$(CXXSRC:.cpp=.o)
32COBJS=$(CSRC:.c=.o)
33%.o : %.cpp
34 $(CXX) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $<
35%.o : %.c
36 $(CC) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $<
37
38libaudioparamparser.so.1.0.0: $(COBJS) $(CXXOBJS)
39 $(CXX) $(COBJS) $(CXXOBJS) $(LDFLAGS) $(LIB_INCLUDE) -shared -o libaudioparamparser.so.1.0.0
40
41install:
42 cp -af libaudioparamparser.so.1.0.0 ../
43 mkdir -p ../audio_param
44 cp -af $(TARGET_PLATFORM)/audio_param/* ../audio_param/
45 mkdir -p ../export_include
46 mkdir -p ../export_include/libxml
47 cp -af *h ../export_include
48 cp -af include/*.h ../export_include
49 cp -af include/libxml/*.h ../export_include/libxml
50
51clean:
52 rm -rf *.o