forked from jrwren/fsharpbinding
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.orig
111 lines (96 loc) · 3.56 KB
/
Makefile.orig
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
# Makefile for compiling and installing F# MonoDevelop plugin on Mono
# run 'make' to compile the plugin (dll + debug info)
# run 'make install' to copy the compiled plugin to MonoDevelop folders
# run 'make package' to create a deployment binary package with addin (for repository)
# Here are a few paths that need to be configured first:
MDROOT = INSERT_MD_ROOT
MONOBIN = INSERT_MONO_BIN
FSBIN = INSERT_FSHARP_BIN
ATKDIR = INSERT_ATK_DIR
PANGODIR = INSERT_PANGO_DIR
GTKDIR = INSERT_GTK_DIR
GDKDIR = INSERT_GDK_DIR
GLIBDIR = INSERT_GLIB_DIR
MONO = INSERT_MONO
MDRUN = $(MONO) $(MDROOT)/bin/mdrun.exe
FSC = INSERT_FSHARP_COMPILER
CSC = INSERT_CSHARP_COMPILER
MDBIN = $(MDROOT)/bin
# Resources and files to be compiled/included as part of the project
RESOURCES = \
--resource:src/Resources/FSharpBinding.addin.xml \
--resource:src/Resources/EmptyFSharpSource.xft.xml \
--resource:src/Resources/EmptyFSharpScript.xft.xml \
--resource:src/Resources/FSharpConsoleProject.xpt.xml \
--resource:src/Resources/fsharp-icon-32.png \
--resource:src/Resources/fsharp-script-32.png \
--resource:src/Resources/fsharp-file-icon.png \
--resource:src/Resources/fsharp-project-icon.png \
--resource:src/Resources/fsharp-script-icon.png \
--resource:src/Resources/FSharpSyntaxMode.xml
FILES = \
src/PowerPack/CodeDomVisitor.fs \
src/PowerPack/CodeDomGenerator.fs \
src/PowerPack/CodeProvider.fs \
src/PowerPack/LazyList.fsi \
src/PowerPack/LazyList.fs \
src/Services/Mailbox.fs \
src/Services/Parameters.fs \
src/Services/FSharpCompiler.fs \
src/Services/CompilerLocationUtils.fs \
src/Services/Common.fs \
src/Services/Parser.fs \
src/Services/LanguageService.fs \
src/Services/CompilerService.fs \
src/Services/InteractiveSession.fs \
src/FSharpInteractivePad.fs \
src/FSharpOptionsPanels.fs \
src/FSharpSyntaxMode.fs \
src/FSharpResourceIdBuilder.fs \
src/FSharpLanguageBinding.fs \
src/FSharpParser.fs \
src/FSharpTextEditorCompletion.fs \
src/FSharpResolverProvider.fs
REFERENCES = \
-r:$(MONOBIN)/mscorlib.dll \
-r:System.dll -r:System.Xml.dll \
-r:$(MDBIN)/MonoDevelop.Core.dll \
-r:$(MDBIN)/MonoDevelop.Ide.dll \
-r:$(MDBIN)/Mono.TextEditor.dll \
-r:$(FSBIN)/FSharp.Core.dll \
-r:$(FSBIN)/FSharp.Compiler.dll \
-r:$(FSBIN)/FSharp.Compiler.Interactive.Settings.dll \
-r:$(FSBIN)/FSharp.Compiler.Server.Shared.dll \
-r:$(ATKDIR)/atk-sharp.dll \
-r:$(PANGODIR)/pango-sharp.dll \
-r:$(GTKDIR)/gtk-sharp.dll \
-r:$(GDKDIR)/gdk-sharp.dll \
-r:$(GLIBDIR)/glib-sharp.dll
OPTIONS = \
--noframework --debug --optimize- --target:library -r:bin/FSharpBinding.Gui.dll --out:bin/FSharpBinding.dll
# CSharp project that contains designer generated GTK stuff for project options
GUIFILES = \
src/Gui/FSharpBuildOrderWidget.cs \
src/Gui/FSharpSettingsWidget.cs \
src/Gui/FSharpCompilerOptionsWidget.cs \
src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpBuildOrderWidget.cs \
src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpSettingsWidget.cs \
src/Gui/gtk-gui/FSharp.MonoDevelop.Gui.FSharpCompilerOptionsWidget.cs \
src/Gui/gtk-gui/generated.cs
GUIOPTIONS = \
-debug+ -out:bin/FSharpBinding.Gui.dll -target:library
all: gui
$(FSC) $(OPTIONS) $(REFERENCES) $(RESOURCES) $(FILES)
gui:
mkdir -p bin
$(CSC) $(GUIOPTIONS) $(REFERENCES) $(GUIFILES)
install:
cp bin/FSharpBinding.* $(MDROOT)/AddIns/BackendBindings/
uninstall:
rm $(MDROOT)/AddIns/BackendBindings/FSharpBinding.*
package:
mkdir -p bin/repository
mkdir -p repository
cp bin/FSharpBinding.* bin/repository
cp src/Resources/FSharpBinding.addin.xml bin/repository
$(MDRUN) setup pack bin/repository/FSharpBinding.addin.xml -d:repository