aboutsummaryrefslogtreecommitdiffstats
path: root/erts/Makefile
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-05-12 13:54:32 +0200
committerBjörn Gustavsson <[email protected]>2017-05-16 10:19:37 +0200
commit4b216f70be3403bb7c102e7ac1a91b1ee4805c33 (patch)
tree9343836986b792c97e98cb281fce6cf03c6f39b4 /erts/Makefile
parent773c4d4f0416f25e3c0c6939f8d0871dc4486bab (diff)
downloadotp-4b216f70be3403bb7c102e7ac1a91b1ee4805c33.tar.gz
otp-4b216f70be3403bb7c102e7ac1a91b1ee4805c33.tar.bz2
otp-4b216f70be3403bb7c102e7ac1a91b1ee4805c33.zip
Let --enable-lock-counter build an additional emulator
"./configure --enable-lock-counter" would modify the behavior of the default emulator (usually SMP). To make lock counting more accessible, change --enable-lock-counter to build an additional emulator in the same way as: (cd erts/emulator && make lcnt) (The next commit will make it easier to start the built lock-counter emulator.)
Diffstat (limited to 'erts/Makefile')
-rw-r--r--erts/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/erts/Makefile b/erts/Makefile
index e9928b6b47..12d2ec57a8 100644
--- a/erts/Makefile
+++ b/erts/Makefile
@@ -40,8 +40,8 @@ all: $(FLAVORS)
docs:
$(V_at)( cd doc/src && $(MAKE) $@ )
-.PHONY: debug opt clean
-debug opt clean:
+.PHONY: debug opt lcnt clean
+debug opt lcnt clean:
$(V_at)for d in emulator $(ERTSDIRS); do \
if test -d $$d; then \
( cd $$d && $(MAKE) $@ FLAVOR=$(FLAVOR) ) || exit $$? ; \
@@ -56,7 +56,9 @@ debug opt clean:
.PHONY: $(FLAVORS)
$(FLAVORS):
- $(V_at)( $(MAKE) opt FLAVOR=$@ )
+ $(V_at)for type in $(TYPES); do \
+ ( $(MAKE) $$type FLAVOR=$@ ); \
+ done
# Make erl script and erlc in $(ERL_TOP)/bin which runs the compiled version
# Note that erlc is not a script and requires extra handling on cygwin.
@@ -128,7 +130,9 @@ makefiles:
.PHONY: release
release:
$(V_at)for f in $(FLAVORS); do \
- ( cd emulator && $(MAKE) release FLAVOR=$$f ) \
+ for t in $(TYPES); do \
+ ( cd emulator && $(MAKE) release FLAVOR=$$f TYPE=$$t ) \
+ done \
done
$(V_at)for d in $(ERTSDIRS) $(XINSTDIRS); do \
if test -d $$d; then \