64ac736ec5
Former-commit-id: f3cc9b82f3e5bd8f0fd3ebc098f789556b44e9cd
30 lines
609 B
Makefile
30 lines
609 B
Makefile
thisdir = ilasm
|
|
SUBDIRS =
|
|
include ../build/rules.make
|
|
|
|
PROGRAM = ilasm.exe
|
|
BUILT_SOURCES = ILParser.cs
|
|
|
|
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
|
|
|
|
CLEAN_FILES = parser/y.output
|
|
|
|
EXTRA_DISTFILES = \
|
|
parser/ILParser.jay \
|
|
$(wildcard tests/*.il)
|
|
|
|
ILParser.cs: parser/ILParser.jay $(topdir)/jay/skeleton.cs
|
|
$(topdir)/jay/jay -ct -o $@ $(CURDIR)/$< < $(topdir)/jay/skeleton.cs
|
|
|
|
include ../build/executable.make
|
|
|