mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Add signature-profile-build make target
Extend patch 3f64a2af6a
to profile builds.
here the make command is:
make signature-profile-build ARCH=xxx COMP=xxx
No functional change.
This commit is contained in:
parent
5b7b330616
commit
b0a177bc67
1 changed files with 13 additions and 10 deletions
23
src/Makefile
23
src/Makefile
|
@ -418,20 +418,11 @@ help:
|
||||||
@echo "make profile-build ARCH=x86-32 (This is for 32-bit systems)"
|
@echo "make profile-build ARCH=x86-32 (This is for 32-bit systems)"
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
||||||
|
.PHONY: build profile-build embed-signature
|
||||||
build:
|
build:
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) config-sanity
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) config-sanity
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
||||||
|
|
||||||
signature-build:
|
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) config-sanity
|
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
|
||||||
@echo "Running benchmark for getting the signature ..."
|
|
||||||
@$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
|
|
||||||
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
|
|
||||||
@sed -i -f sign.txt misc.cpp
|
|
||||||
@rm sign.txt
|
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
|
||||||
|
|
||||||
profile-build:
|
profile-build:
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) config-sanity
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) config-sanity
|
||||||
@echo ""
|
@echo ""
|
||||||
|
@ -452,6 +443,18 @@ profile-build:
|
||||||
@echo "Step 4/4. Deleting profile data ..."
|
@echo "Step 4/4. Deleting profile data ..."
|
||||||
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_clean)
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) $(profile_clean)
|
||||||
|
|
||||||
|
embed-signature:
|
||||||
|
@echo "Running benchmark for getting the signature ..."
|
||||||
|
@$(SIGNBENCH) 2>&1 | grep 'Nodes searched' | grep -o ": .*" | tr -d ': ' > sign.txt
|
||||||
|
@sed -i -e 's,^,/static const string Version/s/"\\(.*\\)"/"sig-,1' -e 's,$$,"/1,1' sign.txt
|
||||||
|
@sed -i -f sign.txt misc.cpp
|
||||||
|
@rm sign.txt
|
||||||
|
|
||||||
|
signature-build: build embed-signature
|
||||||
|
$(MAKE) ARCH=$(ARCH) COMP=$(COMP) all
|
||||||
|
|
||||||
|
signature-profile-build: build embed-signature profile-build
|
||||||
|
|
||||||
strip:
|
strip:
|
||||||
strip $(EXE)
|
strip $(EXE)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue