mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
51 lines
2 KiB
Makefile
51 lines
2 KiB
Makefile
############################################################################
|
|
# Copyright (C) 2014 Belledonne Communications,Grenoble France
|
|
#
|
|
############################################################################
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
############################################################################
|
|
|
|
cunit_project:=cunit
|
|
cunit_project_dir:=.
|
|
cunit_cmake_specific_options:=-DENABLE_STATIC=YES
|
|
|
|
cunit_src_dir=$(BUILDER_SRC_DIR)/${cunit_project_dir}/${cunit_project}
|
|
cunit_build_dir=$(BUILDER_BUILD_DIR)/${cunit_project_dir}/${cunit_project}
|
|
|
|
${cunit_build_dir}/Makefile:
|
|
rm -rf ${cunit_build_dir}/CMakeCache.txt ${cunit_build_dir}/CMakeFiles/ && \
|
|
mkdir -p ${cunit_build_dir} && \
|
|
cd ${cunit_build_dir} && \
|
|
cmake -DCMAKE_TOOLCHAIN_FILE=$(BUILDER_SRC_DIR)/build/toolchain.cmake -DIOS_ARCH=${ARCH} \
|
|
-DCMAKE_INSTALL_PREFIX=$(prefix) -DCMAKE_PREFIX_PATH=$(prefix) -DCMAKE_MODULE_PATH=$(prefix)/share/cmake/Modules/ \
|
|
${cunit_cmake_specific_options} ${cunit_src_dir}
|
|
|
|
build-${cunit_project}: ${cunit_build_dir}/Makefile
|
|
cd ${cunit_build_dir} && \
|
|
make && \
|
|
make install
|
|
|
|
clean-${cunit_project}:
|
|
cd $(cunit_build_dir) && \
|
|
make clean
|
|
|
|
veryclean-${cunit_project}:
|
|
if [ -d $(cunit_build_dir) ]; then grep -v $(prefix) $(cunit_build_dir)/install_manifest.txt | xargs rm; fi && \
|
|
rm -rf $(cunit_build_dir)
|
|
|
|
clean-makefile-${cunit_project}: veryclean-${cunit_project}
|
|
|