Skip to content
This repository
Newer
Older
100644 55 lines (45 sloc) 1.828 kb
923eae54 »
2011-01-14 Redo build system; bootstrapped niecza is live
1 ### CONFIGURATION
2
3 # How to run CLR programs; can be blank for Win32
4 RUN_CLR=mono
5 CSC=gmcs
6 RM=rm -f
7 CP=cp
8
9 cskernel=Kernel.cs Builtins.cs Cursor.cs JSYNC.cs NieczaCLR.cs
10 csbackend=CLRBackend.cs
11
12 # keep this in dependency order
eab7f8a9 »
2011-01-14 Add test and p6eval make targets
13 libunits=SAFE CORE JSYNC
14 srcunits=CClass Body Unit CgOp Op Sig RxOp NAME Stash STD NieczaGrammar \
3e85a716 »
2011-01-22 Operator handling unification (postfix)
15 Metamodel OptRxSimple NAMOutput Operator NieczaActions \
16 NieczaFrontendSTD NieczaPassBegin NieczaPassBeta NieczaPassSimplifier \
17 NieczaPathSearch NieczaBackendNAM NieczaBackendDotnet \
18 NieczaBackendClisp NieczaCompiler
923eae54 »
2011-01-14 Redo build system; bootstrapped niecza is live
19
eab7f8a9 »
2011-01-14 Add test and p6eval make targets
20 all: run/Niecza.exe obj/Kernel.dll obj/CLRBackend.exe
e2d1ed20 »
2011-01-20 Write VERSION file
21 git describe --tags > VERSION
eab7f8a9 »
2011-01-14 Add test and p6eval make targets
22
23 run/Niecza.exe: .fetch-stamp $(patsubst %,src/%.pm6,$(srcunits)) src/niecza
e23237d9 »
2011-01-14 On second thought, don't pass -I to bootstrap
24 cd src && $(RUN_CLR) ../boot/run/Niecza.exe -v -c -Bnam niecza
bd091ab4 »
2011-01-21 Change Makefile to support dash builtin [
25 for nfile in $(libunits) $(srcunits); do \
26 if [ boot/obj/$$nfile.nam -nt boot/obj/$$nfile.dll -o \
27 ! -e boot/obj/$$nfile.dll ]; then \
28 echo $$nfile; \
0cdc4fd0 »
2011-01-16 Only run nam->dll step if file changed
29 $(RUN_CLR) boot/obj/CLRBackend.exe boot/obj $$nfile.nam $$nfile.dll 0; \
30 fi; done
923eae54 »
2011-01-14 Redo build system; bootstrapped niecza is live
31 $(RUN_CLR) boot/obj/CLRBackend.exe boot/obj MAIN.nam MAIN.exe 1
eab7f8a9 »
2011-01-14 Add test and p6eval make targets
32 $(CP) $(patsubst %,boot/obj/%.dll,Kernel $(libunits) $(srcunits)) run/
923eae54 »
2011-01-14 Redo build system; bootstrapped niecza is live
33 $(CP) boot/obj/MAIN.exe run/Niecza.exe
34
35 .fetch-stamp: FETCH_URL
36 -rm -rf boot/
37 mkdir boot
38 wget --no-check-certificate -Oboot/niecza.zip $$(cat FETCH_URL)
39 cd boot && unzip niecza.zip
40 touch .fetch-stamp
41
42 obj/Kernel.dll: $(patsubst %,lib/%,$(cskernel))
43 $(CSC) /target:library /out:obj/Kernel.dll /unsafe+ \
44 $(patsubst %,lib/%,$(cskernel))
45 obj/CLRBackend.exe: $(patsubst %,lib/%,$(csbackend)) obj/Kernel.dll
46 $(CSC) /target:exe /lib:obj /out:obj/CLRBackend.exe /r:Kernel.dll \
47 $(patsubst %,lib/%,$(csbackend))
eab7f8a9 »
2011-01-14 Add test and p6eval make targets
48
49 test: all
50 $(RUN_CLR) run/Niecza.exe -c test.pl
51 prove -e $(RUN_CLR) obj/MAIN.exe
52
53 p6eval: all
54 $(RUN_CLR) run/Niecza.exe -C CORE Test JSYNC
Something went wrong with that request. Please try again.