From a89841e67888a43625c91e9bf8d6a1ef2ac4f2c4 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 26 Jan 2020 08:15:50 +1100 Subject: Add version information resource to Lexilla.DLL on Win32. Lexilla and Scintilla currently share a version number but they may diverge in the future. --- lexilla/src/makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lexilla/src/makefile') diff --git a/lexilla/src/makefile b/lexilla/src/makefile index 86699dbb6..a8edfc1cb 100644 --- a/lexilla/src/makefile +++ b/lexilla/src/makefile @@ -20,6 +20,8 @@ WARNINGS = -Wpedantic -Wall -Wextra ifdef windir SHAREDEXTENSION = dll + WINDRES ?= windres + VERSION_RESOURCE = LexillaVersion.o else ifeq ($(shell uname),Darwin) CLANG := 1 @@ -80,6 +82,9 @@ clean: %.o: %.cxx $(CXX) $(DEFINES) $(INCLUDES) $(BASE_FLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $< -o $@ +%.o: %.rc + $(WINDRES) $< $@ + analyze: $(CXX) --analyze $(DEFINES) $(INCLUDES) $(BASE_FLAGS) $(CXXFLAGS) *.cxx ../../lexlib/*.cxx ../../lexers/*.cxx @@ -109,7 +114,7 @@ LEXILLA_OBJS=\ $(LEXLIB_OBJS) \ $(LEXERS:.cxx=.o) -$(LEXILLA): $(LEXILLA_OBJS) +$(LEXILLA): $(LEXILLA_OBJS) $(VERSION_RESOURCE) $(CXX) $(CXXFLAGS) $(LDFLAGS) $^ -o $@ $(LIBLEXILLA): $(LEXILLA_OBJS) -- cgit v1.2.3