Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 135 lines (109 sloc) 4.822 kB
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
1 ### CONFIGURATION
2
3 # How to run CLR programs; can be blank for Win32
4 RUN_CLR=mono
7451754 @sorear Finish implementation of -gen-app function
authored
5 CSC=gmcs /debug+
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
6 RM=rm -f
7 CP=cp
2c5192b @sorear Optionally use curl instead of wget
authored
8 WGET_O=wget --no-check-certificate -O
9 #WGET_O=curl -o
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
10
ef344df @sorear Split basic object stuff into ObjModel.cs
authored
11 cskernel=Kernel.cs Builtins.cs Cursor.cs JSYNC.cs NieczaCLR.cs Utils.cs \
94e9968 @sorear Merge remote branch 'origin/master' into serialize
authored
12 ObjModel.cs BigInteger.cs Printf.cs CodeGen.cs \
841c18e @sorear Start on Unicode property data reader
authored
13 GeneratedTrigFunctions.cs Serialize.cs UCD.cs
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
14
c58db17 @mberends [Makefile] add targets aot spectest clean realclean and help
mberends authored
15 # Tell make to regard the following targets as not being filenames
16 .PHONY: all aot test spectest clean realclean
17 .PHONY: help
18
82bb637 @sorear Update bootstrap to one built against the 2.0 runtime
authored
19 libunits=CORE JSYNC
51e9a26 @sorear Remove no longer used "NAMOutput" and "Metamodel" modules
authored
20 srcunits=CClass CgOp Op OpHelpers Sig RxOp STD NieczaGrammar OptRxSimple \
21 Operator NieczaActions NieczaFrontendSTD NieczaPassSimplifier \
22 OptBeta NieczaPathSearch NieczaBackendDotnet NieczaCompiler GetOptLong
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
23
9083142 @sorear Switch to single-AppDomain execution
authored
24 all: run/Niecza.exe obj/Run.Kernel.dll obj/Run.CORE.dll
eab7f8a @sorear Add test and p6eval make targets
authored
25
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
26 $(patsubst %,boot/obj/Run.%.ser,$(srcunits)): boot/obj/Run.%.ser: .fetch-stamp src/%.pm6 boot/obj/Run.CORE.ser
27 cd src && NIECZA_KEEP_IL=1 $(RUN_CLR) ../boot/run/Niecza.exe -C $*
ac88a90 @sorear Use Makefile to control building of compiler modules
authored
28
77e2772 @sorear Embed version information into builds
authored
29 # hack - put VERSION info in place so the setting build can embed it
9083142 @sorear Switch to single-AppDomain execution
authored
30 obj/Run.CORE.dll: run/Niecza.exe obj/Run.Kernel.dll lib/CORE.setting
77e2772 @sorear Embed version information into builds
authored
31 @git describe --tags > VERSION
1b13b31 @sorear Auto-compile setting on make to end p6eval timeouts
authored
32 $(RUN_CLR) run/Niecza.exe -C CORE
33
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
34 run/Niecza.exe: .fetch-stamp $(patsubst %,boot/obj/Run.%.ser,$(srcunits)) src/niecza
35 cd src && NIECZA_KEEP_IL=1 $(RUN_CLR) ../boot/run/Niecza.exe -c niecza
36 $(CP) boot/obj/Kernel.dll run/
37 $(CSC) /target:library /out:run/CompilerBlob.dll /r:Kernel \
38 /lib:run src/CompilerBlob.cs
39 $(RUN_CLR) run/Kernel.dll -gen-app Niecza boot/obj
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
40
41 .fetch-stamp: FETCH_URL
42 -rm -rf boot/
43 mkdir boot
2c5192b @sorear Optionally use curl instead of wget
authored
44 $(WGET_O) boot/niecza.zip $$(cat FETCH_URL)
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
45 cd boot && unzip niecza.zip
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
46 NIECZA_KEEP_IL=1 $(RUN_CLR) boot/run/Niecza.exe -C $(libunits)
47 $(CP) boot/run/Kernel.dll boot/obj/
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
48 touch .fetch-stamp
3826c2a @sorear Add an extra dependency to make parallel make happy
authored
49 boot/obj/Run.CORE.ser: .fetch-stamp
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
50
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
51 boot/obj/Run.CompilerBlob.dll: .fetch-stamp src/CompilerBlob.cs
52 $(CSC) /target:library /out:boot/obj/Run.CompilerBlob.dll /r:Run.Kernel \
876ee08 @sorear Fix build
authored
53 /lib:boot/obj src/CompilerBlob.cs
e0d294d @sorear Embed unidata into Kernel.dll, check in a working quasi-finalized ver…
authored
54 obj/Run.Kernel.dll: $(patsubst %,lib/%,$(cskernel)) lib/unidata
9083142 @sorear Switch to single-AppDomain execution
authored
55 $(CSC) /target:exe /out:obj/Run.Kernel.dll /lib:obj /unsafe+ \
e0d294d @sorear Embed unidata into Kernel.dll, check in a working quasi-finalized ver…
authored
56 /res:lib/unidata $(patsubst %,lib/%,$(cskernel))
57 obj/Kernel.dll: $(patsubst %,lib/%,$(cskernel)) lib/unidata
000cc77 @sorear Checkpoint new bootstrap attempt
authored
58 $(CSC) /target:exe /out:obj/Kernel.dll /lib:obj /unsafe+ \
e0d294d @sorear Embed unidata into Kernel.dll, check in a working quasi-finalized ver…
authored
59 /res:lib/unidata $(patsubst %,lib/%,$(cskernel))
eab7f8a @sorear Add test and p6eval make targets
authored
60
a9d984a @pmurias make perl5 now always rebuilds Niecza.pm.
pmurias authored
61
62 .PHONY: Niecza_pm
63 perl5: obj/Perl5Interpreter.dll obj/p5embed.so Niecza_pm
64 Niecza_pm:
65 cd perl5/Niecza;perl Build.PL;perl Build
66
59c6a7b @pmurias Unbitrot perl5 interopability.
pmurias authored
67 obj/Perl5Interpreter.dll: obj/Run.Kernel.dll lib/Perl5Interpreter.cs
68 $(CSC) /target:library /lib:obj /out:obj/Perl5Interpreter.dll /r:Run.Kernel.dll lib/Perl5Interpreter.cs
eab7f8a @sorear Add test and p6eval make targets
authored
69
1e1a24e @pmurias Eval runs basic perl5 code. The Makefile needs review to check if it can
pmurias authored
70 obj/p5embed.so: lib/p5embed.c
bef38b1 @pmurias Make the perl5 interop work outside the niecza directory and hopefull…
pmurias authored
71 perl perl5/build_interop
72
1e1a24e @pmurias Eval runs basic perl5 code. The Makefile needs review to check if it can
pmurias authored
73
8851938 @mberends [now] refactor the underlying function names and tweak 'make aot'
mberends authored
74 aot: all
f5dc966 @sorear Rename Cursor.new to avoid conflicting with code that pretends gramma…
authored
75 mono --aot run/*.dll obj/Run.CORE.dll run/Niecza.exe
c58db17 @mberends [Makefile] add targets aot spectest clean realclean and help
mberends authored
76
eab7f8a @sorear Add test and p6eval make targets
authored
77 test: all
78 $(RUN_CLR) run/Niecza.exe -c test.pl
9ceaa8e @sorear Regularize Any/Mu variable handling
authored
79 prove -e "$(RUN_CLR)" obj/Run.MAIN.exe
eab7f8a @sorear Add test and p6eval make targets
authored
80
c58db17 @mberends [Makefile] add targets aot spectest clean realclean and help
mberends authored
81 spectest: all
82 @t/run_spectests
83
84 clean:
e66416c @pmurias make clean now removes .so files from obj
pmurias authored
85 @rm -f obj/*.dll obj/*.exe obj/*.nam obj/*.so
185c435 @sorear Add a Makefile rule to build and test release tarballs
authored
86 @rm -f run/Niecza.exe
87 @rm -f run/*.dll
88 @rm -f run/*.dll.so
89 @rm -fr *~
90
000cc77 @sorear Checkpoint new bootstrap attempt
authored
91 # uses the current niecza to set up a build area for the next stage
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
92 mkpackage:
93 rm -rf package/
94 mkdir package/ package/run/ package/lib/ package/obj/
7f550a2 @sorear Fix package generation with BSD cp
authored
95 cp -a docs README.pod LICENSE package/
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
96 cp -a run/Niecza.exe run/Niecza.ser run/Kernel.dll \
97 run/CompilerBlob.dll package/run/
98 cp lib/*.pm6 lib/*.setting package/lib/
99 cp obj/Run.Kernel.dll package/obj/
100
000cc77 @sorear Checkpoint new bootstrap attempt
authored
101 mknext: run/Niecza.exe obj/Run.Kernel.dll obj/Kernel.dll
102 rm -rf next/
103 mkdir -p next next/boot next/obj next/run next/boot next/boot/obj/
104 touch next/FETCH_URL next/.fetch-stamp
7f550a2 @sorear Fix package generation with BSD cp
authored
105 cp -a src lib docs README.pod LICENSE Makefile test.pl next/
106 cp -a run lib next/boot/
000cc77 @sorear Checkpoint new bootstrap attempt
authored
107 cp obj/Run.Kernel.dll obj/Kernel.dll next/boot/obj/
108 NIECZA_KEEP_IL=1 $(RUN_CLR) next/boot/run/Niecza.exe -C $(libunits)
109
c58db17 @mberends [Makefile] add targets aot spectest clean realclean and help
mberends authored
110 realclean: clean
111 @rm .fetch-stamp
112
113 help:
114 @echo ''
115 @echo 'You can make the following targets in this Niecza Makefile:'
116 @echo ''
117 @echo 'all the main Niecza compiler and runtime files (default)'
118 @echo 'aot Ahead of Time compile run/Niecza.exe and run/*.dll (increases speed)'
119 @echo 'test run/Niecza.exe test.pl'
120 @echo 'spectest t/run_spectests'
121 @echo 'clean remove all generated files'
122 @echo 'realclean clean and also require new download of bootstrap files'
123 @echo 'help this list of targets'
124 @echo ''
125
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
126 boot/obj/Run.NieczaBackendDotnet.ser: boot/obj/Run.CompilerBlob.dll
127
128 # grep -r '^use' src/*.pm6 | sed 's|src/\(.*\)\.pm6:use \(.*\);|boot/obj/Run.\1.ser: boot/obj/Run.\2.ser|' | grep -v MONKEY_TYPING
129 boot/obj/Run.NieczaActions.ser: boot/obj/Run.OpHelpers.ser
d6e29a5 @sorear First batch of changes to remove "use"-dependencies from niecza
authored
130 boot/obj/Run.NieczaFrontendSTD.ser: boot/obj/Run.STD.ser
f5fd473 @sorear Finish removing "easy" cases of direct cross-module class referencing
authored
131 boot/obj/Run.NieczaFrontendSTD.ser: boot/obj/Run.NieczaGrammar.ser
0417e67 @sorear Switch build to using a /serialize bootstrap image
authored
132 boot/obj/Run.NieczaGrammar.ser: boot/obj/Run.STD.ser
133 boot/obj/Run.Operator.ser: boot/obj/Run.OpHelpers.ser
134 boot/obj/Run.OptRxSimple.ser: boot/obj/Run.RxOp.ser
Something went wrong with that request. Please try again.