diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-01-26 08:15:50 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-01-26 08:15:50 +1100 |
| commit | a89841e67888a43625c91e9bf8d6a1ef2ac4f2c4 (patch) | |
| tree | faebc8e3ffacf12e5d0a5890cb7c5f6cd8d85d2d /lexilla/src/makefile | |
| parent | b6706ed7be03e06a9c2cce349ff19eb95055c6bd (diff) | |
| download | scintilla-mirror-a89841e67888a43625c91e9bf8d6a1ef2ac4f2c4.tar.gz | |
Add version information resource to Lexilla.DLL on Win32.
Lexilla and Scintilla currently share a version number but they may diverge in
the future.
Diffstat (limited to 'lexilla/src/makefile')
| -rw-r--r-- | lexilla/src/makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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) |
