2014-08-13 10:39:27 +01:00
|
|
|
thisdir = tools/mkbundle
|
|
|
|
SUBDIRS =
|
|
|
|
include ../../build/rules.make
|
|
|
|
|
|
|
|
PROGRAM = mkbundle.exe
|
|
|
|
|
|
|
|
OTHER_RES = template.c template_z.c template_main.c
|
|
|
|
|
|
|
|
RESOURCE_FILES = $(OTHER_RES)
|
|
|
|
|
|
|
|
LOCAL_MCS_FLAGS= $(OTHER_RES:%=-resource:%)
|
|
|
|
|
|
|
|
LOCAL_MCS_FLAGS += -d:STATIC,NO_SYMBOL_WRITER,NO_AUTHENTICODE
|
2016-11-10 13:04:39 +00:00
|
|
|
LIB_REFS = System.Xml System System.Core System.IO.Compression.FileSystem
|
2014-08-13 10:39:27 +01:00
|
|
|
|
|
|
|
EXTRA_DISTFILES = $(RESOURCE_FILES)
|
|
|
|
|
|
|
|
include ../../build/executable.make
|
|
|
|
|
|
|
|
mkbundle.exe: $(RESOURCE_FILES)
|
2016-11-10 13:04:39 +00:00
|
|
|
|
|
|
|
test-simple: simple.exe
|
|
|
|
mono --debug $(the_lib) --simple simple.exe -o foo && ./foo
|
|
|
|
mono --debug $(the_lib) --cross default simple.exe -o foo && ./foo
|
|
|
|
mono --debug $(the_lib) --sdk `dirname \`which mono\``/.. simple.exe -o foo && ./foo
|
|
|
|
-rm DEMO.zip
|
2017-06-07 13:16:24 +00:00
|
|
|
$(topdir)/../scripts/mono-package-runtime `dirname \`which mono\``/.. DEMO
|
2016-11-10 13:04:39 +00:00
|
|
|
mkdir -p ~/.mono/targets/DEMO
|
|
|
|
unzip -d ~/.mono/targets/DEMO DEMO.zip
|
2017-06-07 13:16:24 +00:00
|
|
|
mono --debug $(the_lib) --cross DEMO simple.exe -o foo | grep "Assembly.*mscorlib.dll"
|
|
|
|
./foo
|
2016-11-10 13:04:39 +00:00
|
|
|
|
|
|
|
simple.exe: Makefile
|
|
|
|
echo 'class X { static void Main () { System.Console.WriteLine ("OK");}}' > simple.cs && mcs simple.cs
|