Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/ilasm/Makefile')
-rw-r--r--mcs/ilasm/Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/mcs/ilasm/Makefile b/mcs/ilasm/Makefile
new file mode 100644
index 00000000000..7df9413c4e2
--- /dev/null
+++ b/mcs/ilasm/Makefile
@@ -0,0 +1,29 @@
+thisdir = ilasm
+SUBDIRS =
+include ../build/rules.make
+
+PROGRAM = $(topdir)/class/lib/$(PROFILE)/ilasm.exe
+BUILT_SOURCES = ILParser.cs
+LOCAL_MCS_FLAGS = /lib:../class/lib/$(PROFILE) /r:../class/lib/$(PROFILE)/PEAPI.dll /r:Mono.CompilerServices.SymbolWriter.dll /r:Mono.Security.dll
+
+CLEAN_FILES = parser/y.output
+
+EXTRA_DISTFILES = \
+ parser/ILParser.jay \
+ parser/ChangeLog \
+ scanner/ChangeLog \
+ tests/ChangeLog \
+ $(wildcard tests/*.il)
+
+ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
+ $(topdir)/jay/jay -ct < $(topdir)/jay/skeleton.cs $< >$@
+
+include ../build/executable.make
+
+ifeq (default, $(PROFILE))
+# Utility rule to make debugging somewhat easier.
+all-local: ilasm.exe
+ilasm.exe: $(PROGRAM)
+ cp -p $< $@
+ test ! -f $<.mdb || cp -p $<.mdb $@.mdb
+endif