mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Starting bootstrap process
This commit is contained in:
parent
48c66be292
commit
822cf7ff68
2 changed files with 23 additions and 0 deletions
22
Makefile
22
Makefile
|
@ -92,6 +92,28 @@ self2:
|
|||
./cyclone-self scheme/cyclone/cgen.sld
|
||||
./cyclone-self cyclone-self.scm
|
||||
|
||||
# TODO: this is ugly and needs lots of work yet...
|
||||
# would also need to call this after self2
|
||||
.PHONY: bootstrap
|
||||
bootstrap:
|
||||
$(MAKE) self2
|
||||
rm -rf tmp
|
||||
mkdir -p tmp/scheme/cyclone
|
||||
cp scheme/base.c tmp/scheme
|
||||
cp scheme/read.c tmp/scheme
|
||||
cp scheme/write.c tmp/scheme
|
||||
cp scheme/char.c tmp/scheme
|
||||
cp scheme/eval.c tmp/scheme
|
||||
cp scheme/file.c tmp/scheme
|
||||
cp scheme/cyclone/common.c tmp/scheme/cyclone
|
||||
cp icyc.c tmp
|
||||
cp scheme/cyclone/libraries.c tmp/scheme/cyclone
|
||||
cp scheme/cyclone/transforms.c tmp/scheme/cyclone
|
||||
cp scheme/cyclone/cgen.c tmp/scheme/cyclone
|
||||
cp cyclone-self.scm tmp
|
||||
cp Makefile-bootstrap tmp/Makefile
|
||||
|
||||
|
||||
.PHONY: test
|
||||
test: $(TESTFILES) cyclone
|
||||
$(foreach f,$(TESTSCM), echo tests/$(f) ; ./cyclone tests/$(f).scm && tests/$(f) && rm -rf tests/$(f);)
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
# TODO
|
||||
"gcc test2.c -I/home/justin/Documents/cyclone/ -g -c -o test2.o""gcc test2.o /home/justin/Documents/cyclone/scheme/base.o /home/justin/Documents/cyclone/scheme/write.o /home/justin/Documents/cyclone/scheme/file.o -L/home/justin/Documents/cyclone/ -lcyclone -lm -I/home/justin/Documents/cyclone/ -g -o test2
|
||||
|
|
Loading…
Add table
Reference in a new issue