aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 40c305180..f6a3b0afa 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -17,12 +17,20 @@ endif
AR = ar
RANLIB = touch
+# Environment variable windir always defined on Win32
+
ifndef windir
ifeq ($(shell uname),Darwin)
RANLIB = ranlib
endif
endif
+ifdef windir
+DEL = del /q
+else
+DEL = rm -f
+endif
+
COMPLIB=../bin/scintilla.a
vpath %.h ../src ../include ../lexlib
@@ -57,7 +65,7 @@ LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))
all: $(COMPLIB)
clean:
- rm -f *.o $(COMPLIB)
+ $(DEL) *.o $(COMPLIB)
deps:
$(CC) -MM $(CONFIGFLAGS) $(CXXFLAGS) *.cxx ../src/*.cxx | sed -e 's/\/usr.* //' | grep [a-zA-Z] >deps.mak