forked from fsprojects/zarchive-fsharpbinding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.orig
63 lines (49 loc) · 1.7 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
# Makefile for compiling and installing F# AutoComplete engine
# Here are a few paths that need to be configured first:
MONOBIN = INSERT_MONO_BIN
FSC = mono $(MONOBIN)/fsc.exe
FILES_FCB = \
FSharp.CompilerBinding/Common.fs \
FSharp.CompilerBinding/CompilerLocationUtils.fs \
FSharp.CompilerBinding/FSharpCompiler.fs
FILES_FAC = \
FSharp.AutoComplete/Debug.fs \
FSharp.AutoComplete/Options.fs \
FSharp.AutoComplete/ProjectParser.fs \
FSharp.AutoComplete/Parser.fs \
FSharp.AutoComplete/TipFormatter.fs \
FSharp.AutoComplete/Program.fs
REFERENCES = \
-r:$(MONOBIN)/mscorlib.dll \
-r:System.dll \
-r:System.Core.dll \
-r:System.Xml.dll \
-r:Microsoft.Build.dll \
-r:Microsoft.Build.Engine.dll \
-r:Microsoft.Build.Framework.dll \
-r:Microsoft.Build.Tasks.v4.0.dll \
-r:Microsoft.Build.Utilities.v4.0.dll \
-r:lib/ndesk-options/NDesk.Options.dll \
-r:lib/newtonsoft.json/Newtonsoft.Json.dll \
-r:$(MONOBIN)/FSharp.Core.dll
config=Release
FSC_OPTS = --noframework --nologo
ifeq ($(config),Debug)
FSC_OPTS += --debug --optimize-
else
FSC_OPTS += --debug:pdbonly --optimize
endif
TARGETS = bin/FSharp.Core.dll bin/FSharp.CompilerBinding.dll bin/fsautocomplete.exe
all: $(TARGETS)
bin/fsautocomplete.exe: $(FILES_FAC) bin/FSharp.CompilerBinding.dll
@-mkdir -p bin
$(FSC) $(FSC_OPTS) --out:bin/fsautocomplete.exe -r:bin/FSharp.CompilerBinding.dll $(REFERENCES) $(FILES_FAC)
bin/FSharp.CompilerBinding.dll: $(FILES_FCB)
@-mkdir -p bin
$(FSC) $(FSC_OPTS) --target:library --out:bin/FSharp.CompilerBinding.dll $(REFERENCES) $(FILES_FCB)
bin/FSharp.Core.dll: $(MONOBIN)/FSharp.Core.dll
@-mkdir -p bin
cp -p $(MONOBIN)/FSharp.Core.dll bin/FSharp.Core.dll
clean:
-rm -fr bin
autocomplete: bin/fsautocomplete.exe