makefile: use $(MAKE) replace make (for BSD compatibility) (#3436)
This commit is contained in:
parent
874ca0dfd6
commit
dfe315ac5f
4
Makefile
4
Makefile
|
@ -125,10 +125,10 @@ pjsua-test: cmp_wav
|
||||||
cd tests/pjsua && python runall.py -t 2
|
cd tests/pjsua && python runall.py -t 2
|
||||||
|
|
||||||
cmp_wav:
|
cmp_wav:
|
||||||
cd tests/pjsua/tools && make
|
$(MAKE) -C tests/pjsua/tools
|
||||||
|
|
||||||
fuzz:
|
fuzz:
|
||||||
cd tests/fuzz && make
|
$(MAKE) -C tests/fuzz
|
||||||
|
|
||||||
install:
|
install:
|
||||||
mkdir -p $(DESTDIR)$(libdir)/
|
mkdir -p $(DESTDIR)$(libdir)/
|
||||||
|
|
|
@ -149,7 +149,7 @@ $(OBJDIR)/$(app).ko: $(OBJDIR)/$(app).o | $(OBJDIRS)
|
||||||
@echo all: >> $(OBJDIR)/Makefile
|
@echo all: >> $(OBJDIR)/Makefile
|
||||||
@echo -e "\tmake -C $(KERNEL_DIR) M=`pwd`/$(OBJDIR) modules $(KERNEL_ARCH)" >> $(OBJDIR)/Makefile
|
@echo -e "\tmake -C $(KERNEL_DIR) M=`pwd`/$(OBJDIR) modules $(KERNEL_ARCH)" >> $(OBJDIR)/Makefile
|
||||||
@echo Invoking kbuild...
|
@echo Invoking kbuild...
|
||||||
make -C $(OBJDIR)
|
$(MAKE) -C $(OBJDIR)
|
||||||
|
|
||||||
../lib/$(app).ko: $(LIB) $(OBJDIR)/$(app).ko
|
../lib/$(app).ko: $(LIB) $(OBJDIR)/$(app).ko
|
||||||
cp $(OBJDIR)/$(app).ko ../lib
|
cp $(OBJDIR)/$(app).ko ../lib
|
||||||
|
|
|
@ -23,17 +23,17 @@ CPP_DIR=pjlib pjlib-util pjnath pjmedia pjsip
|
||||||
.PHONY: build_test distclean rm_build_mak build_mak everything pjlib_test pjlib_util_test pjnath_test pjsip_test cpp_prep cpp_test cpp_post pjsua_test
|
.PHONY: build_test distclean rm_build_mak build_mak everything pjlib_test pjlib_util_test pjnath_test pjsip_test cpp_prep cpp_test cpp_post pjsua_test
|
||||||
|
|
||||||
distclean:
|
distclean:
|
||||||
make distclean
|
$(MAKE) distclean
|
||||||
|
|
||||||
rm_build_mak:
|
rm_build_mak:
|
||||||
rm -f build.mak
|
rm -f build.mak
|
||||||
|
|
||||||
build_mak:
|
build_mak:
|
||||||
./configure
|
./configure
|
||||||
make dep
|
$(MAKE) dep
|
||||||
|
|
||||||
everything:
|
everything:
|
||||||
make
|
$(MAKE)
|
||||||
|
|
||||||
pjlib_test:
|
pjlib_test:
|
||||||
cd pjlib/bin && ./pjlib-test-`../../config.guess`
|
cd pjlib/bin && ./pjlib-test-`../../config.guess`
|
||||||
|
@ -49,14 +49,14 @@ pjsip_test:
|
||||||
|
|
||||||
cpp_prep:
|
cpp_prep:
|
||||||
for dir in $(CPP_DIR); do \
|
for dir in $(CPP_DIR); do \
|
||||||
make -C $$dir/build clean; \
|
$(MAKE) -C $$dir/build clean; \
|
||||||
done
|
done
|
||||||
|
|
||||||
cpp_test:
|
cpp_test:
|
||||||
make -f c++-build.mak
|
$(MAKE) -f c++-build.mak
|
||||||
|
|
||||||
cpp_post:
|
cpp_post:
|
||||||
make -f c++-build.mak clean
|
$(MAKE) -f c++-build.mak clean
|
||||||
|
|
||||||
pjsua_test: pjsua_config_file pjsua_local_port0 pjsua_ip_addr pjsua_no_tcp pjsua_no_udp pjsua_outbound pjsua_use_ice pjsua_add_codec pjsua_clock_rate pjsua_play_file pjsua_play_tone pjsua_rec_file pjsua_rtp_port pjsua_quality pjsua_ptime pjsua_ectail
|
pjsua_test: pjsua_config_file pjsua_local_port0 pjsua_ip_addr pjsua_no_tcp pjsua_no_udp pjsua_outbound pjsua_use_ice pjsua_add_codec pjsua_clock_rate pjsua_play_file pjsua_play_tone pjsua_rec_file pjsua_rtp_port pjsua_quality pjsua_ptime pjsua_ectail
|
||||||
@echo pjsua_test completed successfully
|
@echo pjsua_test completed successfully
|
||||||
|
|
Loading…
Reference in New Issue