about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-06-20 01:48:43 +0200
committerbptato <nincsnevem662@gmail.com>2023-06-20 01:48:43 +0200
commitbfd51fa9da7f0bf196651e64f8c22ffaeae0b606 (patch)
tree4b5873b6a33a8add43773afddc22d6a146b4fe22
parenta8f218df98677bdc76c15d2a025b932094b08629 (diff)
downloadchawan-bfd51fa9da7f0bf196651e64f8c22ffaeae0b606.tar.gz
makefile: separate objdir for all targets
-rw-r--r--makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/makefile b/makefile
index e1177800..021f6124 100644
--- a/makefile
+++ b/makefile
@@ -7,6 +7,8 @@ prefix = /usr/local
 $(OBJDIR):
 	mkdir -p $(OBJDIR)/debug
 	mkdir -p $(OBJDIR)/release
+	mkdir -p $(OBJDIR)/release0
+	mkdir -p $(OBJDIR)/release1
 	mkdir -p $(OBJDIR)/profile
 
 debug: $(OBJDIR)
@@ -16,10 +18,10 @@ release: $(OBJDIR)
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release -d:release -d:strip -d:lto $(FILES)
 
 release0: $(OBJDIR)
-	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release -d:release --stacktrace:on $(FILES)
+	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release0 -d:release --stacktrace:on $(FILES)
 
 release1: $(OBJDIR)
-	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release -d:release --passC:"-pg" --passL:"-pg" $(FILES)
+	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/release1 -d:release --passC:"-pg" --passL:"-pg" $(FILES)
 
 profile: $(OBJDIR)
 	$(NIMC) $(FLAGS) --nimcache:$(OBJDIR)/profile --profiler:on --stacktrace:on -d:profile $(FILES)