summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c798d350..df6f85c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,12 @@
build ?= debug
+ifneq "$(OS)" ""
+OUT := build/$(build)-$(OS)
+else
OUT := build/$(build)
+endif
+
GEN := generated
# --- Variables, Commands, etc... ---
@@ -41,6 +46,7 @@ $(OUT) $(GEN) :
$(OUT)/%.a :
$(AR_CMD)
+ $(RANLIB_CMD)
$(OUT)/% : $(OUT)/%.o
$(LINK_CMD)