summaryrefslogtreecommitdiff
path: root/tools/ucl/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ucl/src')
-rw-r--r--tools/ucl/src/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/ucl/src/Makefile b/tools/ucl/src/Makefile
index 8a73a53..2d6f18f 100644
--- a/tools/ucl/src/Makefile
+++ b/tools/ucl/src/Makefile
@@ -12,6 +12,12 @@ ifndef V
SILENT = @
endif
+ifeq ($(OS),Windows_NT)
+mkdir = if not exist $(subst /,\,$(1)) mkdir $(subst /,\,$(1))
+else
+mkdir = mkdir -p $(1)
+endif
+
ifdef RBARCH
CFLAGS += -arch $(RBARCH)
endif
@@ -59,7 +65,7 @@ $(TARGET_DIR)libucl$(RBARCH).a: $(OBJS)
$(OBJDIR)/%.o: %.c
@echo CC $<
- $(SILENT)mkdir -p $(dir $@)
+ $(SILENT)$(call mkdir, $(dir $@))
$(SILENT)$(CROSS)$(CC) $(CFLAGS) -c $< -o $@
clean: