merging the Mainsoft branch to the trunk
[mono.git] / mcs / ilasm / Makefile
1 thisdir = ilasm
2 SUBDIRS =
3 include ../build/rules.make
4
5 PROGRAM = $(topdir)/class/lib/$(PROFILE)/ilasm.exe
6 BUILT_SOURCES = ILParser.cs
7 LOCAL_MCS_FLAGS = /lib:../class/lib/$(PROFILE) /r:../class/lib/$(PROFILE)/PEAPI.dll /r:Mono.CompilerServices.SymbolWriter.dll /r:Mono.Security.dll
8
9 CLEAN_FILES = parser/y.output
10
11 EXTRA_DISTFILES = \
12         parser/ILParser.jay     \
13         parser/ChangeLog        \
14         scanner/ChangeLog       \
15         tests/ChangeLog         \
16         $(wildcard tests/*.il)
17
18 ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
19         $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
20
21 include ../build/executable.make
22
23 ifeq (default, $(PROFILE))
24 # Utility rule to make debugging somewhat easier.
25 all-local: ilasm.exe
26 ilasm.exe: $(PROGRAM)
27         cp -p $< $@
28         test ! -f $<.mdb || cp -p $<.mdb $@.mdb
29 endif