Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 62 lines (51 sloc) 2.299 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
11bf899 @sorear Revert use of collectable assemblies for eval
authored
5 CSC=gmcs
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
6 RM=rm -f
7 CP=cp
8
9 cskernel=Kernel.cs Builtins.cs Cursor.cs JSYNC.cs NieczaCLR.cs
10 csbackend=CLRBackend.cs
b94a627 @sorear Revise downcall protocol (ki9a++) and use downcalls to invoke CLRBackend
authored
11 csxdr=CrossDomainReceiver.cs
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
12
13 # keep this in dependency order
eab7f8a @sorear Add test and p6eval make targets
authored
14 libunits=SAFE CORE JSYNC
a06dd3c @sorear Mergeback and factor out OpHelpers/GetOptLong
authored
15 srcunits=CClass Body Unit CgOp Op OpHelpers Sig RxOp NAME Stash STD \
16 NieczaGrammar Metamodel OptRxSimple NAMOutput Operator NieczaActions \
3e85a71 @sorear Operator handling unification (postfix)
authored
17 NieczaFrontendSTD NieczaPassBegin NieczaPassBeta NieczaPassSimplifier \
18 NieczaPathSearch NieczaBackendNAM NieczaBackendDotnet \
a06dd3c @sorear Mergeback and factor out OpHelpers/GetOptLong
authored
19 NieczaBackendClisp NieczaCompiler GetOptLong
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
20
1b13b31 @sorear Auto-compile setting on make to end p6eval timeouts
authored
21 all: run/Niecza.exe obj/Kernel.dll obj/CORE.nam obj/CLRBackend.exe
e2d1ed2 @sorear Write VERSION file
authored
22 git describe --tags > VERSION
eab7f8a @sorear Add test and p6eval make targets
authored
23
1b13b31 @sorear Auto-compile setting on make to end p6eval timeouts
authored
24 obj/CORE.nam: run/Niecza.exe obj/CLRBackend.exe lib/SAFE.setting lib/CORE.setting
25 $(RUN_CLR) run/Niecza.exe -C CORE
26
eab7f8a @sorear Add test and p6eval make targets
authored
27 run/Niecza.exe: .fetch-stamp $(patsubst %,src/%.pm6,$(srcunits)) src/niecza
e23237d @sorear On second thought, don't pass -I to bootstrap
authored
28 cd src && $(RUN_CLR) ../boot/run/Niecza.exe -v -c -Bnam niecza
bd091ab @sorear Change Makefile to support dash builtin [
authored
29 for nfile in $(libunits) $(srcunits); do \
30 if [ boot/obj/$$nfile.nam -nt boot/obj/$$nfile.dll -o \
31 ! -e boot/obj/$$nfile.dll ]; then \
32 echo $$nfile; \
0cdc4fd @sorear Only run nam->dll step if file changed
authored
33 $(RUN_CLR) boot/obj/CLRBackend.exe boot/obj $$nfile.nam $$nfile.dll 0; \
34 fi; done
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
35 $(RUN_CLR) boot/obj/CLRBackend.exe boot/obj MAIN.nam MAIN.exe 1
b94a627 @sorear Revise downcall protocol (ki9a++) and use downcalls to invoke CLRBackend
authored
36 $(CP) $(patsubst %,boot/obj/%.dll,Kernel CrossDomainReceiver $(libunits) $(srcunits)) run/
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
37 $(CP) boot/obj/MAIN.exe run/Niecza.exe
38
39 .fetch-stamp: FETCH_URL
40 -rm -rf boot/
41 mkdir boot
42 wget --no-check-certificate -Oboot/niecza.zip $$(cat FETCH_URL)
43 cd boot && unzip niecza.zip
44 touch .fetch-stamp
45
b94a627 @sorear Revise downcall protocol (ki9a++) and use downcalls to invoke CLRBackend
authored
46 obj/CrossDomainReceiver.dll: $(patsubst %,lib/%,$(csxdr))
47 $(CSC) /target:library /out:obj/CrossDomainReceiver.dll \
48 $(patsubst %,lib/%,$(csxdr))
49 obj/Kernel.dll: $(patsubst %,lib/%,$(cskernel)) obj/CrossDomainReceiver.dll
50 $(CSC) /target:library /out:obj/Kernel.dll /r:CrossDomainReceiver.dll \
51 /lib:obj /unsafe+ $(patsubst %,lib/%,$(cskernel))
52 obj/CLRBackend.exe: $(patsubst %,lib/%,$(csbackend)) obj/Kernel.dll obj/CrossDomainReceiver.dll
923eae5 @sorear Redo build system; bootstrapped niecza is live
authored
53 $(CSC) /target:exe /lib:obj /out:obj/CLRBackend.exe /r:Kernel.dll \
b94a627 @sorear Revise downcall protocol (ki9a++) and use downcalls to invoke CLRBackend
authored
54 /r:CrossDomainReceiver.dll $(patsubst %,lib/%,$(csbackend))
eab7f8a @sorear Add test and p6eval make targets
authored
55
56 test: all
57 $(RUN_CLR) run/Niecza.exe -c test.pl
58 prove -e $(RUN_CLR) obj/MAIN.exe
59
60 p6eval: all
61 $(RUN_CLR) run/Niecza.exe -C CORE Test JSYNC
Something went wrong with that request. Please try again.