aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2019-12-30 09:13:56 +1100
committerNeil <nyamatongwe@gmail.com>2019-12-30 09:13:56 +1100
commit0f01055777bb39e4744fa3465b0ab14691c7f6df (patch)
treed297f2c4b189fe6a4cf9956c1a9845787ac8e6d4 /win32
parent79bb590ffd86261202176e7a7df963893a418bb0 (diff)
downloadscintilla-mirror-0f01055777bb39e4744fa3465b0ab14691c7f6df.tar.gz
Backport: Use pattern rules instead of suffix rules as they are clearer.
Add a .PHONY target to avoid possible failure caused by file with same name. Backport of changeset 7856:477749c2f095.
Diffstat (limited to 'win32')
-rw-r--r--win32/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile
index fa3720807..7a24fee91 100644
--- a/win32/makefile
+++ b/win32/makefile
@@ -4,6 +4,9 @@
# The License.txt file describes the conditions under which this software may be distributed.
# This makefile assumes the MinGW32 version of GCC 4.8+ is used and changes will
# be needed to use other compilers.
+# Clang 3.4+ can be used with CLANG=1 on command line.
+
+.PHONY: all clean analyze depend
.SUFFIXES: .cxx .c .o .h .a
@@ -78,7 +81,7 @@ LUAOBJS:=lapi.o lcode.o lctype.o ldebug.o ldo.o ldump.o lfunc.o lgc.o linit.o \
lpcap.o lpcode.o lpprint.o lptree.o lpvm.o
endif
-.cxx.o:
+%.o: %.cxx
$(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -c $<
analyze: