forked from mirrors/linphone-iphone
gsm builder: Rewrite veryclean target and correctly build targetted architecture
This commit is contained in:
parent
d8fe77bd97
commit
5e60c1864e
1 changed files with 10 additions and 4 deletions
|
|
@ -3,7 +3,9 @@
|
|||
|
||||
gsm_dir?=externals/gsm
|
||||
|
||||
|
||||
#GSM build is a bit different: since there is only a Makefile,
|
||||
#we must force CC to contains CFLAGS to compile all architectures
|
||||
#as expected
|
||||
build-libgsm:
|
||||
cp -rf $(BUILDER_SRC_DIR)/$(gsm_dir) $(BUILDER_BUILD_DIR)/$(gsm_dir)
|
||||
rm -rf $(BUILDER_BUILD_DIR)/$(gsm_dir)/gsm/.git $(BUILDER_BUILD_DIR)/$(gsm_dir)/.git
|
||||
|
|
@ -12,12 +14,16 @@ build-libgsm:
|
|||
cd $(BUILDER_BUILD_DIR)/$(gsm_dir)\
|
||||
&& mkdir -p $(prefix)/include/gsm \
|
||||
&& host_alias=$(host) . $(BUILDER_SRC_DIR)/build/$(config_site) \
|
||||
&& make -j1 CC="$${CC}" INSTALL_ROOT=$(prefix) GSM_INSTALL_INC=$(prefix)/include/gsm install
|
||||
&& make install \
|
||||
CC="$${CC} $${COMMON_FLAGS} -w" \
|
||||
INSTALL_ROOT=$(prefix) \
|
||||
GSM_INSTALL_INC=$(prefix)/include/gsm
|
||||
|
||||
clean-libgsm:
|
||||
cd $(BUILDER_BUILD_DIR)/$(gsm_dir)\
|
||||
&& make clean
|
||||
|
||||
veryclean-libgsm:
|
||||
-cd $(BUILDER_BUILD_DIR)/$(gsm_dir) \
|
||||
&& make uninstall
|
||||
-rm -rf $(BUILD_DIR)/$(gsm_dir)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue