blob: b623d482fcd61bab8fc4b68d5ccf3d904cfa9812 [file] [log] [blame]
all:
$(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
$(CXX) -c -fPIC -I./include -I./include/alps_utils guicon.cpp
install -d obj
mv *.o obj
$(CXX) -Wl,--hash-style=gnu -shared -Wl,-soname,libaudioparamparser.so.1 -o libaudioparamparser.so.1.0.0 obj/*.o
$(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
install:
cp -af audioXmlParserTest ../
cp -af libaudioparamparser.so.1.0.0 ../
mkdir -p ../audio_param
cp -af 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 obj