[w32handle] Stop returning 0 in every cases for locking/unlocking (#3926)
[mono.git] / mcs / tools / linker / standalone.make
1
2 MCS = mcs
3 KEY_FILE = ../../class/mono.snk
4 MONO.CECIL.DLL = Mono.Cecil.dll
5 MCS_FLAGS = -debug -keyfile:$(KEY_FILE) -r:$(MONO.CECIL.DLL) -resource:Descriptors/mscorlib.xml -resource:Descriptors/System.xml -resource:Descriptors/System.Web.xml -resource:Descriptors/Mono.Posix.xml -resource:Descriptors/System.Drawing.xml
6 LINKER = monolinker.exe
7
8 all: config.make monolinker.exe monolinker
9
10 monolinker: monolinker.in Makefile
11         sed "s,@prefix@,$(prefix)," < monolinker.in > monolinker
12         chmod +x monolinker
13
14 monolinker.exe: Mono.Cecil.dll
15         $(MCS) $(MCS_FLAGS) @$(LINKER).sources /out:$(LINKER)
16
17 Mono.Cecil.dll:
18         if pkg-config --atleast-version=0.5 mono-cecil; then \
19                 cp `pkg-config --variable=Libraries mono-cecil` .; \
20         else \
21                 echo You must install Mono.Cecil first; \
22                 exit 1; \
23         fi
24
25 clean:
26         rm -f $(LINKER) $(MONO.CECIL.DLL) monolinker
27
28 install: all
29         mkdir -p $(prefix)/bin
30         mkdir -p $(prefix)/lib/monolinker
31         cp $(LINKER) $(MONO.CECIL.DLL) $(prefix)/lib/monolinker
32         cp monolinker $(prefix)/bin
33         cp man/monolinker.1 $(prefix)/share/man/man1
34
35 config.make:
36         echo You must run configure first
37         exit 1
38
39 include config.make
40
41 run-test: all
42         cd ./Tests; \
43         make clean run-test; \
44         cd ..;