about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-28 22:44:44 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-28 22:44:44 +0200
commitef308887900bd210ad3f5ae39a730fbb891c78a4 (patch)
tree16826303389ba4b90912f9e3945f2c1ed1ea0300
parent08111c71cd84430f941a3a59716811dcf9301778 (diff)
downloadchawan-ef308887900bd210ad3f5ae39a730fbb891c78a4.tar.gz
Update makefile
small re-organization
-rw-r--r--Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6583d6cf..72368021 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,10 @@ CFLAGS = -g -Wall -O2 -DCONFIG_VERSION=\"$(shell cat lib/quickjs/VERSION)\"
 debug: lib/libquickjs.a $(OBJDIR)/debug
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/debug -d:debug $(FILES)
 
+.PHONY: debug0
+debug0: lib/libquickjs.a $(OBJDIR)/debug0
+	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release1 -d:debug --stacktrace:off --linetrace:off --opt:speed $(FILES)
+
 .PHONY: release
 release: lib/libquickjs.a $(OBJDIR)/release
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release -d:release -d:strip -d:lto $(FILES)
@@ -18,14 +22,14 @@ release: lib/libquickjs.a $(OBJDIR)/release
 release0: lib/libquickjs.a $(OBJDIR)/release0
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release0 -d:release --stacktrace:on $(FILES)
 
-.PHONY: release1
-release1: lib/libquickjs.a $(OBJDIR)/release1
-	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release1 -d:release --passC:"-pg" --passL:"-pg" $(FILES)
-
 .PHONY: profile
 profile: lib/libquickjs.a $(OBJDIR)/profile
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/profile --profiler:on --stacktrace:on -d:profile $(FILES)
 
+.PHONY: profile0
+profile0: lib/libquickjs.a $(OBJDIR)/profile0
+	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release1 -d:release --passC:"-pg" --passL:"-pg" $(FILES)
+
 $(OBJDIR)/%:
 	mkdir -p $@