rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | all: |
| 2 | $(CC) -c -fPIC -I./include -I./include/alps_utils AudioCategory.c AudioParam.c AudioParamFieldInfo.c AudioParamParser.c AudioParamTreeView.c AudioParamUnit.c AudioType.c AudioUtils.c UnitTest.c |
| 3 | $(CXX) -c -fPIC -I./include -I./include/alps_utils guicon.cpp |
| 4 | install -d obj |
| 5 | mv *.o obj |
| 6 | $(CXX) -Wl,--hash-style=gnu -shared -Wl,-soname,libaudioparamparser.so.1 -o libaudioparamparser.so.1.0.0 obj/*.o |
| 7 | $(CC) test/main.c -Wl,--hash-style=gnu -lxml2 -lpthread -lasound libaudioparamparser.so.1.0.0 -L. -I. -I./include -I./include/alps_utils -o audioXmlParserTest |
| 8 | |
| 9 | install: |
| 10 | cp -af audioXmlParserTest ../ |
| 11 | cp -af libaudioparamparser.so.1.0.0 ../ |
| 12 | mkdir -p ../audio_param |
| 13 | cp -af audio_param/* ../audio_param/ |
| 14 | mkdir -p ../export_include |
| 15 | mkdir -p ../export_include/libxml |
| 16 | cp -af *h ../export_include |
| 17 | cp -af include/*.h ../export_include |
| 18 | cp -af include/libxml/*.h ../export_include/libxml |
| 19 | |
| 20 | clean: |
| 21 | rm -rf obj |