diff options
author | Neil <nyamatongwe@gmail.com> | 2019-12-30 09:13:56 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2019-12-30 09:13:56 +1100 |
commit | f142bb942d54b1387dc887220072a3f798a285a6 (patch) | |
tree | 62b0b2f63ef05917e5832827cfcabef7c4ae3384 /win32/makefile | |
parent | e384df880a1991212a6d38702dfbcf9d3c74bb0d (diff) | |
download | scintilla-mirror-f142bb942d54b1387dc887220072a3f798a285a6.tar.gz |
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.
Diffstat (limited to 'win32/makefile')
-rw-r--r-- | win32/makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/win32/makefile b/win32/makefile index 2c7700e7f..3dad7d045 100644 --- a/win32/makefile +++ b/win32/makefile @@ -5,6 +5,8 @@ # This makefile assumes Mingw-w64 GCC 9.0+ is used and changes will be needed to use other compilers. # Clang 9.0+ can be used with CLANG=1 on command line. +.PHONY: all clean analyze depend + .SUFFIXES: .cxx .c .o .h .a DIR_BIN=../bin @@ -64,7 +66,7 @@ all: $(COMPONENT) $(LEXCOMPONENT) $(LIBSCI) clean: $(DEL) *.exe *.o *.a *.obj *.dll *.res *.map *.plist -.cxx.o: +%.o: %.cxx $(CXX) $(CXX_ALL_FLAGS) $(CXXFLAGS) -c $< analyze: |