From 99d52264a609b61e8639f3c1087a78fedb0b9de8 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Tue, 17 May 2016 00:52:28 +0200 Subject: 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. --- gtk/makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gtk/makefile') 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) -- cgit v1.2.3