diff options
author | bptato <nincsnevem662@gmail.com> | 2023-06-20 01:48:43 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-06-20 01:48:43 +0200 |
commit | bfd51fa9da7f0bf196651e64f8c22ffaeae0b606 (patch) | |
tree | 4b5873b6a33a8add43773afddc22d6a146b4fe22 | |
parent | a8f218df98677bdc76c15d2a025b932094b08629 (diff) | |
download | chawan-bfd51fa9da7f0bf196651e64f8c22ffaeae0b606.tar.gz |
makefile: separate objdir for all targets
-rw-r--r-- | makefile | 6 |
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) |