2014-08-13 10:39:27 +01:00
|
|
|
thisdir = ilasm
|
|
|
|
SUBDIRS =
|
|
|
|
include ../build/rules.make
|
|
|
|
|
|
|
|
PROGRAM = ilasm.exe
|
|
|
|
BUILT_SOURCES = ILParser.cs
|
2019-04-12 14:10:50 +00:00
|
|
|
|
|
|
|
LIB_REFS = PEAPI System
|
|
|
|
|
|
|
|
API_BUILD := $(filter build, $(PROFILE))
|
|
|
|
ifdef API_BUILD
|
|
|
|
TARGET_NET_REFERENCE = $(BOOTSTRAP_BIN_PROFILE)
|
|
|
|
PROGRAM_USE_INTERMEDIATE_FILE = 1
|
|
|
|
else
|
|
|
|
LIB_REFS += Mono.Security
|
|
|
|
LOCAL_MCS_FLAGS += -d:HAS_MONO_SECURITY
|
|
|
|
endif
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
CLEAN_FILES = parser/y.output
|
|
|
|
|
|
|
|
EXTRA_DISTFILES = \
|
|
|
|
parser/ILParser.jay \
|
|
|
|
$(wildcard tests/*.il)
|
|
|
|
|
|
|
|
ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
|
2018-05-10 08:37:03 +00:00
|
|
|
$(topdir)/jay/jay -ct -o $@ $(CURDIR)/$< < $(topdir)/jay/skeleton.cs
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
include ../build/executable.make
|
|
|
|
|