* xbuild/Microsoft.Common.targets: For referenced projects,
[mcs.git] / tools / linker / standalone.make
blobf444215ada08912c4b5341432f8354113b1223a3
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
8 all: config.make monolinker.exe monolinker
10 monolinker: monolinker.in Makefile
11 sed "s,@prefix@,$(prefix)," < monolinker.in > monolinker
12 chmod +x monolinker
14 monolinker.exe: Mono.Cecil.dll
15 $(MCS) $(MCS_FLAGS) @$(LINKER).sources /out:$(LINKER)
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; \
25 clean:
26 rm -f $(LINKER) $(MONO.CECIL.DLL) monolinker
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
35 config.make:
36 echo You must run configure first
37 exit 1
39 include config.make
41 run-test: all
42 cd ./Tests; \
43 make clean run-test; \
44 cd ..;