This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
/
makefile.am
52 lines (38 loc) · 1.58 KB
/
makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
LIBRARY= gtksourceview-sharp.dll
APIS= gtksourceview-api.xml
INCLUDE_APIS= @gtksharp_prefix@/share/gapi/atk-api.xml \
@gtksharp_prefix@/share/gapi/gdk-api.xml \
@gtksharp_prefix@/share/gapi/gdk-symbols.xml \
@gtksharp_prefix@/share/gapi/gnome-api.xml \
@gtksharp_prefix@/share/gapi/gtk-api.xml \
@gtksharp_prefix@/share/gapi/gtk-symbols.xml \
@gtksharp_prefix@/share/gapi/pango-api.xml
ASSEMBLIES= -r atk-sharp.dll \
-r gdk-sharp.dll \
-r glib-sharp.dll \
-r gtk-sharp.dll \
-r gnome-sharp.dll \
-r pango-sharp.dll
EXTRA_DIST = $(sources) $(customs) Gtk.metadata gtksourceview-api.raw
gtksourceviewsharpdir = $(libdir)
gtksourceviewsharp_DATA = gtksourceview-sharp.dll
apidir = @gtksharp_prefix@/share/gapi
api_DATA = gtksourceview-api.xml
all: $(LIBRARY)
gtksourceview-api.xml:
cp $(srcdir)/gtksourceview-api.raw gtksourceview-api.xml
chmod u+w gtksourceview-api.xml
$(GAPI_FIXUP) --api=gtksourceview-api.xml --metadata=$(srcdir)/Gtk.metadata
generated-stamp: $(APIS) $(customs) $(sources) Gtk.metadata
$(GAPI_CODEGEN) --include $(INCLUDE_APIS) --generate $(APIS) \
--outdir=generated --customdir=. --assembly-name=gtksourceview-sharp && touch generated-stamp
sources = GtkSourceView.cs
build_sources = $(addprefix $(srcdir)/, $(sources))
customs = SourceBuffer.custom
build_customs = $(addprefix $(srcdir)/, $(customs))
$(LIBRARY): generated-stamp $(build_sources)
$(MCS) --unsafe --target library $(ASSEMBLIES) \
generated/*.cs $(build_source) -o $(LIBRARY)
CLEANFILES = $(LIBRARY) generated/*.cs generated-stamp gtksourceview-api.xml
distclean-local:
rm -f makefile