Account for backslash as path separator on Windows
This commit is contained in:
parent
8001fded95
commit
08a61ca3b5
|
@ -188,11 +188,14 @@ endif
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
RM = del /F/Q
|
RM = del /F/Q
|
||||||
PAD_CMD = fsutil file seteof $@ $(PAD_FLASH_SIZE)
|
PAD_CMD = fsutil file seteof $@ $(PAD_FLASH_SIZE)
|
||||||
|
SEP= \$ # Leave this as is, it's a trick
|
||||||
else
|
else
|
||||||
RM = rm -f
|
RM = rm -f
|
||||||
PAD_CMD = truncate -s $(PAD_FLASH_SIZE) $@
|
PAD_CMD = truncate -s $(PAD_FLASH_SIZE) $@
|
||||||
|
SEP = /
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
# Flags (are automatically used by make) --------------------------------------
|
# Flags (are automatically used by make) --------------------------------------
|
||||||
ASFLAGS := $(ASFLAGS) $(DEFINES) $(INCLUDES)
|
ASFLAGS := $(ASFLAGS) $(DEFINES) $(INCLUDES)
|
||||||
CFLAGS := $(CFLAGS) $(DEFINES) $(INCLUDES)
|
CFLAGS := $(CFLAGS) $(DEFINES) $(INCLUDES)
|
||||||
|
@ -289,7 +292,7 @@ rsrc/bitmaps/splash_%.c: rsrc/bitmaps/splash_%.bmp
|
||||||
|
|
||||||
# Clean up after a build
|
# Clean up after a build
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(OBJS_TO_CLEAN) $(DEPS) foenixmcp.s37 *.lst *.map
|
$(RM) $(subst /,$(SEP),$(OBJS_TO_CLEAN)) $(subst /,$(SEP),$(DEPS)) foenixmcp.s37 *.lst *.map
|
||||||
$(MAKE) --directory=$(CPU) clean
|
$(MAKE) --directory=$(CPU) clean
|
||||||
$(MAKE) --directory=cli clean
|
$(MAKE) --directory=cli clean
|
||||||
$(MAKE) --directory=dev clean
|
$(MAKE) --directory=dev clean
|
||||||
|
|
Loading…
Reference in a new issue