aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/makefile
diff options
context:
space:
mode:
authorColomban Wendling <ban@herbesfolles.org>2016-05-17 00:52:28 +0200
committerColomban Wendling <ban@herbesfolles.org>2016-05-17 00:52:28 +0200
commit99d52264a609b61e8639f3c1087a78fedb0b9de8 (patch)
tree5986c3ea7348e1e0c0977ebee57c8eac105975cd /gtk/makefile
parent9075832b2e345bb3ffe5d9b53ce3b899dc3a1efa (diff)
downloadscintilla-mirror-99d52264a609b61e8639f3c1087a78fedb0b9de8.tar.gz
GTK: Add makefile rules to auto-generate marshallers
This makes it easier to update or add new marshallers. Also, re-generate the current one using a current version of glib-genmarshal, which generates different output (accessing different fields for enum and flags) since at least 2008. Although neither of these types are currently used, it seems safer this way.
Diffstat (limited to 'gtk/makefile')
-rw-r--r--gtk/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/gtk/makefile b/gtk/makefile
index 8fd92f6db..200ded12d 100644
--- a/gtk/makefile
+++ b/gtk/makefile
@@ -6,7 +6,7 @@
# Builds for GTK+ 2 and no longer supports GTK+ 1.
# Also works with ming32-make on Windows.
-.SUFFIXES: .cxx .c .o .h .a
+.SUFFIXES: .cxx .c .o .h .a .list
ifdef CLANG
CXX = clang++ -Wno-deprecated-register
CC = clang
@@ -85,6 +85,14 @@ MARSHALLER=scintilla-marshal.o
.c.o:
$(CC) $(CONFIGFLAGS) $(CFLAGS) -w -c $<
+GLIB_GENMARSHAL = glib-genmarshal
+GLIB_GENMARSHAL_FLAGS = --prefix=scintilla_marshal
+
+.list.h:
+ $(GLIB_GENMARSHAL) --header $(GLIB_GENMARSHAL_FLAGS) $< > $@
+.list.c:
+ $(GLIB_GENMARSHAL) --body $(GLIB_GENMARSHAL_FLAGS) $< > $@
+
LEXOBJS:=$(addsuffix .o,$(basename $(notdir $(wildcard ../lexers/Lex*.cxx))))
all: $(COMPLIB)