* plugins/editor/scintilla/Makefile.am,
[anjuta-git-plugin.git] / plugins / editor / scintilla / Makefile.am
blob377ccbbec30fa1928c57880143269b6a66f3bd7d
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = include
5 noinst_LTLIBRARIES = libanjuta-scintilla.la
7 AM_CPPFLAGS = \
8         $(GTK_CFLAGS) \
9         -I$(srcdir)/include \
10   -DGTK -DSCI_LEXER -DUSE_XIM
11 AM_CXXFLAGS = -DGTK -DSCI_LEXER -DUSE_XIM
13 include $(srcdir)/lexers.make
15 libanjuta_scintilla_la_SOURCES =\
16         AutoComplete.cxx \
17         CallTip.cxx \
18         CellBuffer.cxx \
19         ContractionState.cxx \
20         Converter.h \
21         CharClassify.h \
22         CharClassify.cxx \
23         ExternalLexer.cxx \
24         ExternalLexer.h \
25         Document.cxx \
26         DocumentAccessor.cxx \
27         Editor.cxx \
28         Indicator.cxx \
29         KeyMap.cxx \
30         KeyWords.cxx \
31         LineMarker.cxx \
32         PlatGTK.cxx \
33         PropSet.cxx \
34         RESearch.cxx \
35         ScintillaBase.cxx \
36         ScintillaGTK.cxx \
37         Style.cxx \
38         StyleContext.cxx\
39         UniConversion.cxx \
40         ViewStyle.cxx \
41         WindowAccessor.cxx \
42         AutoComplete.h \
43         CallTip.h \
44         CellBuffer.h \
45         ContractionState.h \
46         Document.h \
47         DocumentAccessor.h \
48         Editor.h \
49         Indicator.h \
50         KeyMap.h \
51         LineMarker.h \
52         RESearch.h \
53         SVector.h \
54         ScintillaBase.h \
55         Style.h \
56         UniConversion.h \
57         ViewStyle.h\
58         StyleContext.h\
59         XPM.h\
60         XPM.cxx\
61         scintilla-marshal.h\
62         scintilla-marshal.c\
63         $(LEXER_SRCS)
65 libanjuta_scintilla_la_LIBADD = \
66         $(GTHREAD_LIBS) \
67         $(GTK_LIBS)
69 noinst_PROGRAMS = test-scintilla
71 test_scintilla_CXXFLAGS = -DGTK
72 test_scintilla_SOURCES = test-scintilla.cxx
73 test_scintilla_LDADD = libanjuta-scintilla.la
75 update-scintilla:
76         cp $(srcdir)/scintilla/gtk/*.cxx $(srcdir)/
77         cp $(srcdir)/scintilla/gtk/*.h $(srcdir)/
78         cp $(srcdir)/scintilla/src/*.cxx $(srcdir)/
79         cp $(srcdir)/scintilla/src/*.h $(srcdir)/
80         cp $(srcdir)/scintilla/include/*.h $(srcdir)/include/
81         cp $(srcdir)/scintilla/include/*.py $(srcdir)/include/
82         cp $(srcdir)/scintilla/include/*.iface $(srcdir)/include/
83         echo "## Lexers make file" > lexers.make
84         echo 'LEXER_OBJS = \' >> lexers.make;
85         echo -n '       $$(top_srcdir)/plugins/editor/scintilla/StyleContext.o' >> lexers.make
86         for lex in Lex*.cxx; do \
87                 lex=`echo $$lex | sed -e "s/cxx$$/o/"`; \
88                 echo '\' >> lexers.make; \
89                 echo -n '       $$(top_srcdir)/plugins/editor/scintilla/' >> lexers.make; \
90                 echo -n "$$lex" >> lexers.make; \
91         done
92         echo "" >> lexers.make
93         echo "" >> lexers.make
94         echo -n 'LEXER_SRCS = ' >> lexers.make
95         for lex in Lex*.cxx; do \
96                 echo '\' >> lexers.make; \
97                 echo -n "       $$lex" >> lexers.make; \
98         done
99         echo "" >> lexers.make
100         echo "Patching files ..."
101         for patchfile in patches/*.diff; do \
102                 patch -p1 < $$patchfile; \
103         done
105 marshallers: scintilla-marshal.list
106         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --header > scintilla-marshal.h
107         glib-genmarshal --prefix scintilla_marshal scintilla-marshal.list --body > scintilla-marshal.c 
109 EXTRA_DIST=lexers.make