File: Makefile.am

package info (click to toggle)
mono-tools 4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,868 kB
  • sloc: cs: 100,909; sh: 3,845; makefile: 2,040; xml: 126
file content (131 lines) | stat: -rw-r--r-- 4,344 bytes parent folder | download | duplicates (2)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
monodocdir=$(prefix)/lib/monodoc

if DMCS_PRESENT
COMPILER=$(MCS)
else
COMPILER=$(MCS)
endif

SUBDIRS=theme-icons

if ENABLE_GTKHTML
noinst_DATA = admin.exe
endif


if ENABLE_GECKO
GECKO_TARGET=GeckoHtmlRender.dll
endif
if ENABLE_GTKHTML
GECKO_PRINTING_DEF="-d:USE_GTKHTML_PRINT"

GTKHTML_TARGET=GtkHtmlHtmlRender.dll
endif
if ENABLE_WEBKIT
WEBKIT_TARGET=WebKitHtmlRender.dll
endif
if ENABLE_MONOWEBBROWSER
MONOWEBBROWSER_TARGET=MonoWebBrowserHtmlRender.dll
endif

CLEANFILES = browser.exe browser.exe.mdb admin.exe admin.exe.mdb $(GECKO_TARGET) $(GECKO_TARGET).mdb $(GTKHTML_TARGET) $(GTKHTML_TARGET).mdb $(WEBKIT_TARGET) $(WEBKIT_TARGET).mdb $(MONOWEBBROWSER_TARGET) $(MONOWEBBROWSER_TARGET).mdb monodoc.desktop Options.cs
monodoc_DATA = browser.exe $(GECKO_TARGET) $(GTKHTML_TARGET) $(WEBKIT_TARGET) $(MONOWEBBROWSER_TARGET)

DISTCLEANFILES = AssemblyInfo.cs monodoc.desktop monodoc

bin_SCRIPTS = monodoc

browser_sources   = \
	$(srcdir)/browser.cs		\
	$(srcdir)/list.cs 		\
	$(srcdir)/elabel.cs 		\
	$(srcdir)/history.cs 		\
	$(srcdir)/editing.cs            \
	$(srcdir)/Contributions.cs	\
	$(srcdir)/XmlNodeWriter.cs	\
	$(srcdir)/IHtmlRender.cs	\
	$(srcdir)/BookmarkManager.cs	\
	$(srcdir)/ProgressPanel.cs

browser_built_sources = AssemblyInfo.cs Options.cs

geckorender_sources = 			\
	$(srcdir)/PrintManager.cs	\
	$(srcdir)/GeckoHtmlRender.cs

gtkhtmlrender_sources = 		\
	$(srcdir)/PrintManager.cs	\
	$(srcdir)/GtkHtmlHtmlRender.cs

webkitrender_sources = 			\
	$(srcdir)/WebKitHtmlRender.cs

monowebbrowserrender_sources = 		\
	$(srcdir)/BrowserWidget.cs	\
	$(srcdir)/MonoWebBrowserHtmlRender.cs

admin_sources = \
	$(srcdir)/admin.cs		\
	$(srcdir)/Contributions.cs

browser_assemblies = $(GTK_SHARP_LIBS) $(MONODOC_LIBS) $(GNOME_SHARP_LIBS) -r:System.Web.Services -r:System.Web
# we insert gtkhtml libs if we have them for printing 
geckorender_assemblies = $(GTK_SHARP_LIBS) $(GTKHTML_SHARP_LIBS) $(GECKO_SHARP_LIBS) $(GNOME_SHARP_LIBS) $(MONODOC_LIBS) -r:browser.exe
gtkhtmlrender_assemblies = $(GTK_SHARP_LIBS) $(GTKHTML_SHARP_LIBS) $(GNOME_SHARP_LIBS) $(MONODOC_LIBS) -r:browser.exe

webkitrender_assemblies = $(GTK_SHARP_LIBS) $(WEBKIT_SHARP_LIBS) $(MONODOC_LIBS) -r:browser.exe

monowebbrowserrender_assemblies = $(GTK_SHARP_LIBS) $(GNOME_SHARP_LIBS) $(MONOWEBBROWSER_LIBS) $(MONODOC_LIBS) -r:browser.exe -r:Mono.WebBrowser.dll

EXTRA_DIST = \
	$(browser_sources) 		\
	$(geckorender_sources)		\
	$(gtkhtmlrender_sources)	\
	$(monowebbrowserrender_sources)	\
	$(webkitrender_sources)		\
	monodoc.desktop.in		\
	admin.cs			\
	admin.glade 			\
	browser.glade 			\
	monodoc.png			\
	AssemblyInfo.cs.in		\
	README.ADMIN

# admin hardcodes GTKHTML for now.
if ENABLE_GTKHTML
admin.exe: $(admin_sources) $(srcdir)/admin.glade
	$(COMPILER) -debug -out:admin.exe $(admin_sources) -resource:$(srcdir)/admin.glade,admin.glade $(browser_assemblies) $(GTKHTML_SHARP_LIBS) -r:System.Drawing
endif

browser.exe: $(browser_sources) $(browser_built_sources) $(srcdir)/browser.glade $(srcdir)/monodoc.png 
	$(COMPILER) -debug -out:browser.exe $(browser_sources) $(browser_built_sources) -resource:$(srcdir)/monodoc.png,monodoc.png -resource:$(srcdir)/browser.glade,browser.glade  $(browser_assemblies) $(CSHARP_FLAGS)

GeckoHtmlRender.dll : $(geckorender_sources) browser.exe
	$(COMPILER) -debug -target:library -out:$@ $(geckorender_sources) $(geckorender_assemblies)  $(GECKO_PRINTING_DEF) $(CSHARP_FLAGS)

GtkHtmlHtmlRender.dll : $(gtkhtmlrender_sources) browser.exe
	$(COMPILER) -debug -target:library -out:$@ $(gtkhtmlrender_sources) $(gtkhtmlrender_assemblies) $(CSHARP_FLAGS)

WebKitHtmlRender.dll : $(webkitrender_sources) browser.exe
	$(COMPILER) -debug -target:library -out:$@ $(webkitrender_sources) $(webkitrender_assemblies) $(CSHARP_FLAGS)

MonoWebBrowserHtmlRender.dll : $(monowebbrowserrender_sources) browser.exe
	$(COMPILER) -debug -target:library -out:$@ $(monowebbrowserrender_sources) $(monowebbrowserrender_assemblies) $(CSHARP_FLAGS)

Options.cs:
	cp `pkg-config --variable=Sources mono-options` .

b: browser.exe
	MONO_PATH=. $(RUNTIME) --debug browser.exe

c: admin.exe
	MONO_PATH=. $(RUNTIME) --debug admin.exe

desktopdir = $(datadir)/applications
desktop_DATA = monodoc.desktop

monodoc.desktop: monodoc.desktop.in
	sed -e "s|\@bindir\@|$(bindir)|" $< > $@

pixmapdir = $(datadir)/pixmaps
pixmap_DATA = monodoc.png