From 0f01055777bb39e4744fa3465b0ab14691c7f6df Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 30 Dec 2019 09:13:56 +1100 Subject: 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. --- win32/makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'win32/makefile') 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: -- cgit v1.2.3