aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'win32/makefile')
-rw-r--r--win32/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile
index 45c9c525b..2442ca65e 100644
--- a/win32/makefile
+++ b/win32/makefile
@@ -31,6 +31,9 @@ WINDRES ?= windres
# Environment variable windir always defined on Win32
+# Take care of changing Unix style '/' directory separator to '\' on Windows
+normalize = $(if $(windir),$(subst /,\,$1),$1)
+
ifdef windir
DEL = $(if $(wildcard $(dir $(SHELL))rm.exe), $(dir $(SHELL))rm.exe -f, del /q)
else
@@ -64,7 +67,7 @@ CXX_ALL_FLAGS =$(DEFINES) $(INCLUDES) $(CXX_BASE_FLAGS)
all: $(COMPONENT) $(LEXCOMPONENT) $(LIBSCI)
clean:
- $(DEL) *.exe *.o *.a *.obj *.dll *.res *.map *.plist
+ $(DEL) *.exe *.o *.a *.obj *.dll *.res *.map *.plist $(call normalize,$(LIBSCI))
%.o: %.cxx
$(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -c $<