1 ## Process this file with automake to produce Makefile.in
5 noinst_LTLIBRARIES = libanjuta-scintilla.la
14 -DGTK -DSCI_LEXER -DUSE_XIM
16 AM_CXXFLAGS = -DGTK -DSCI_LEXER -DUSE_XIM -std=c++11
18 include $(srcdir)/lexers.make
20 libanjuta_scintilla_la_SOURCES =\
21 src/AutoComplete.cxx \
33 src/CharClassify.cxx \
35 src/ContractionState.cxx \
36 src/ContractionState.h \
47 src/ExternalLexer.cxx \
61 src/PositionCache.cxx \
68 src/ScintillaBase.cxx \
77 src/UnicodeFromUTF8.h \
78 src/UniConversion.cxx \
87 lexlib/CharacterCategory.cxx \
88 lexlib/CharacterCategory.h \
89 lexlib/CharacterSet.cxx \
90 lexlib/CharacterSet.h \
91 lexlib/LexAccessor.h \
92 lexlib/LexerBase.cxx \
94 lexlib/LexerModule.cxx \
95 lexlib/LexerModule.h \
96 lexlib/LexerNoExceptions.cxx \
97 lexlib/LexerNoExceptions.h \
98 lexlib/LexerSimple.cxx \
99 lexlib/LexerSimple.h \
101 lexlib/PropSetSimple.cxx \
102 lexlib/PropSetSimple.h \
103 lexlib/SparseState.h \
104 lexlib/StringCopy.h \
105 lexlib/StyleContext.cxx\
106 lexlib/StyleContext.h\
108 lexlib/WordList.cxx \
112 gtk/ScintillaGTKAccessible.cxx \
113 gtk/ScintillaGTKAccessible.h \
114 gtk/ScintillaGTK.cxx \
119 libanjuta_scintilla_la_LIBADD = \
124 noinst_PROGRAMS = test-scintilla
126 test_scintilla_CXXFLAGS = -DGTK
127 test_scintilla_SOURCES = test-scintilla.cxx
128 test_scintilla_LDADD = libanjuta-scintilla.la
130 $(srcdir)/lexers.make:
132 echo "## Lexers make file" > $(notdir $@); \
133 echo -n 'LEXER_OBJS = ' >> $(notdir $@); \
134 for lex in lexers/*.cxx; do \
135 echo '\' >> $(notdir $@); \
136 lex=`echo $$lex | sed -e "s/cxx$$/o/"`; \
137 echo -n " $$lex" >> $(notdir $@); \
139 echo "" >> $(notdir $@); \
140 echo "" >> $(notdir $@); \
141 echo -n 'LEXER_SRCS = ' >> $(notdir $@); \
142 for lex in lexers/*.cxx; do \
143 echo '\' >> $(notdir $@); \
144 echo -n " $$lex" >> $(notdir $@); \
146 echo "" >> $(notdir $@)
150 cp scintilla/gtk/*.cxx gtk; \
151 cp scintilla/gtk/*.h gtk; \
152 cp scintilla/gtk/*.list gtk; \
153 cp scintilla/lexers/*.cxx lexers; \
154 cp scintilla/lexlib/*.cxx lexlib; \
155 cp scintilla/lexlib/*.h lexlib; \
156 cp scintilla/src/*.cxx src; \
157 cp scintilla/src/*.h src; \
158 cp scintilla/include/*.h include; \
159 cp scintilla/include/*.py include; \
160 cp scintilla/include/*.iface include; \
161 echo "Patching files ..."
163 for patchfile in patches/*.diff; do \
164 patch -p0 < $$patchfile || true; \
166 echo "Updating properties file..."
168 ./update-properties.pl ../properties/styles.properties scite/src
170 BUILT_SOURCES=scintilla-marshal.c scintilla-marshal.h
173 scintilla-marshal.h: gtk/scintilla-marshal.list
174 $(AM_V_GEN)@GLIB_GENMARSHAL@ --prefix scintilla_marshal $(srcdir)/gtk/scintilla-marshal.list --header > xgen-gmc \
175 && cp xgen-gmc $(@F) \
178 scintilla-marshal.c: gtk/scintilla-marshal.list
179 $(AM_V_GEN)echo "#include \"scintilla-marshal.h\"" > xgenc-gmc \
180 && @GLIB_GENMARSHAL@ --prefix scintilla_marshal $(srcdir)/gtk/scintilla-marshal.list --body >> xgenc-gmc \
181 && cp xgenc-gmc $(@F) \
184 EXTRA_DIST=lexers.make \
185 gtk/scintilla-marshal.list