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
14 monolinker.exe
: Mono.Cecil.dll
15 $(MCS
) $(MCS_FLAGS
) @
$(LINKER
).sources
/out
:$(LINKER
)
18 if pkg-config
--atleast-version
=0.5 mono-cecil
; then \
19 cp
`pkg-config --variable=Libraries mono-cecil` .
; \
21 echo You must
install Mono.Cecil first
; \
26 rm -f
$(LINKER
) $(MONO.CECIL.DLL
) monolinker
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
36 echo You must run configure first
43 make
clean run-test
; \