rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | all: libaudioparamparser.so.1.0.0 |
| 2 | |
| 3 | LDFLAGS = $(BB_LDFLAGS_ADD) -Wl,--hash-style=gnu -shared -Wl,-soname -L. -L $(ROOT)/lib |
| 4 | LOCAL_PATH = . |
| 5 | |
| 6 | OFLAGS = -fPIC |
| 7 | |
| 8 | INCLUDE= ${BB_INCLUDE_ADD} \ |
| 9 | -I./include \ |
| 10 | -I./include/alps_utils |
| 11 | |
| 12 | CSRC= 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 | |
| 22 | CXXSRC= guicon.cpp |
| 23 | |
| 24 | LIB_INCLUDE = -llog \ |
| 25 | -lutils \ |
| 26 | -lxml2 |
| 27 | |
| 28 | CFLAGS += -DMTK_YOCTO_AUDIO |
| 29 | |
| 30 | |
| 31 | CXXOBJS=$(CXXSRC:.cpp=.o) |
| 32 | COBJS=$(CSRC:.c=.o) |
| 33 | %.o : %.cpp |
| 34 | $(CXX) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $< |
| 35 | %.o : %.c |
| 36 | $(CC) $(OFLAGS) $(INCLUDE) ${CFLAGS} -c -o $@ $< |
| 37 | |
| 38 | libaudioparamparser.so.1.0.0: $(COBJS) $(CXXOBJS) |
| 39 | $(CXX) $(COBJS) $(CXXOBJS) $(LDFLAGS) $(LIB_INCLUDE) -shared -o libaudioparamparser.so.1.0.0 |
| 40 | |
| 41 | install: |
| 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 | |
| 51 | clean: |
| 52 | rm -rf *.o |