2009-11-11 Marek Safar <marek.safar@gmail.com>
[mcs.git] / ilasm / Makefile
blob97cf9de9359513e1cd6867c51b69c0acaad0fdd2
1 thisdir = ilasm
2 SUBDIRS =
3 include ../build/rules.make
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
9 CLEAN_FILES = parser/y.output
11 EXTRA_DISTFILES = \
12 parser/ILParser.jay \
13 parser/ChangeLog \
14 scanner/ChangeLog \
15 tests/ChangeLog \
16 $(wildcard tests/*.il)
18 ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
19 $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
21 include ../build/executable.make
23 ifeq (net_1_1, $(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