Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Compile the kernel as a separate assembly in preparation
  • Loading branch information
sorear committed Jul 21, 2010
1 parent 83afb45 commit 4aabaad
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1,5 +1,7 @@
Program.exe
Program.cs
Kernel.dll
Kernel.dll.so
Setting.dll
Setting.dll.so
Setting.cs
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -9,16 +9,20 @@ all: Setting.dll

test: $(COMPILER) test.pl Setting.dll
perl -MFile::Slurp -MCompilerDriver=:all -e 'header; mainline(scalar read_file("test.pl")); bootstrap' > Program.cs
gmcs /r:Setting.dll Program.cs
gmcs /r:Kernel.dll /r:Setting.dll Program.cs
prove -e 'mono --debug=casts' Program.exe

.DELETE_ON_ERROR:

Setting.cs: $(COMPILER) setting
perl -MCompilerDriver=:all -e 'header; setting' > Setting.cs

Setting.dll: Kernel.cs Setting.cs
gmcs /target:library /out:Setting.dll Kernel.cs Setting.cs
Kernel.dll: Kernel.cs
gmcs /target:library /out:Kernel.dll Kernel.cs
mono --aot Kernel.dll

Setting.dll: Kernel.dll Setting.cs
gmcs /target:library /out:Setting.dll /r:Kernel.dll Setting.cs
mono --aot Setting.dll

Niecza/Grammar.pmc: Niecza/Grammar.pm6 .STD_build_stamp
Expand Down
2 changes: 1 addition & 1 deletion niecza_eval
Expand Up @@ -41,7 +41,7 @@ sub run {
bootstrap;
close ::NIECZA_OUT;

system 'gmcs /r:Setting.dll Program.cs';
system 'gmcs /r:Kernel.dll /r:Setting.dll Program.cs';
system 'mono --debug=casts Program.exe';
}

Expand Down

0 comments on commit 4aabaad

Please sign in to comment.