Skip to content

Commit

Permalink
merge retest into re (#11)
Browse files Browse the repository at this point in the history
* update makefile for retest in re

* add alias to retest
  • Loading branch information
alfredh authored Feb 18, 2023
1 parent 1498057 commit 6f9c896
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ OPENSSL_FLAGS := \
no-ssl3 \


default: retest baresip
default: baresip

retest: libre.a

libre.a: Makefile
@rm -f re/libre.*
Expand All @@ -89,17 +91,7 @@ libre.a: Makefile
-DCMAKE_TOOLCHAIN_FILE=$(PWD)/cmake/mingw-w64-x86_64.cmake \
-DOPENSSL_ROOT_DIR=$(PWD)/openssl
cmake --build re/build --target re -j4


.PHONY: retest
retest: Makefile libre.a
@rm -f retest/retest.exe
cmake \
-S retest \
-B retest/build \
-DCMAKE_TOOLCHAIN_FILE=$(PWD)/cmake/mingw-w64-x86_64.cmake \
-DOPENSSL_ROOT_DIR=$(PWD)/openssl
cmake --build retest/build -j4
cmake --build re/build --target retest -j4


.PHONY: baresip
Expand All @@ -123,7 +115,7 @@ openssl:
$(MAKE) build_libs

clean:
for p in baresip retest re; do \
for p in baresip re; do \
rm -rf $$p/build ; \
done

Expand All @@ -132,6 +124,6 @@ dump:
@echo "WINE = $(WINE)"

.PHONY: test
test: retest baresip
cd retest && $(WINE) retest -r
test: libre.a baresip
cd re && $(WINE) ./build/test/retest.exe -r -v
cd baresip && $(WINE) selftest.exe

0 comments on commit 6f9c896

Please sign in to comment.