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