mirror of
https://github.com/samsonjs/sectorlisp.git
synced 2026-03-25 09:05:48 +00:00
The C code now has garbage collection. It now uses negative memory for storing cons cells. Function arguments have been inlined since undefined evaluation order shouldn't matter since it is immutable. Compiler warnings have been turned off so we can use traditional C
31 lines
618 B
Makefile
31 lines
618 B
Makefile
CFLAGS = -w -Os
|
|
LDFLAGS = -s
|
|
|
|
CLEANFILES = \
|
|
lisp \
|
|
lisp.o \
|
|
bestline.o \
|
|
sectorlisp.o \
|
|
sectorlisp.bin \
|
|
sectorlisp.bin.dbg
|
|
|
|
.PHONY: all
|
|
all: lisp \
|
|
sectorlisp.bin \
|
|
sectorlisp.bin.dbg
|
|
|
|
.PHONY: clean
|
|
clean:; $(RM) lisp lisp.o bestline.o sectorlisp.o sectorlisp.bin sectorlisp.bin.dbg
|
|
|
|
lisp: lisp.o bestline.o
|
|
lisp.o: lisp.c bestline.h
|
|
bestline.o: bestline.c bestline.h
|
|
|
|
sectorlisp.o: sectorlisp.S
|
|
$(AS) -g -o $@ $<
|
|
|
|
sectorlisp.bin.dbg: sectorlisp.o
|
|
$(LD) -oformat:binary -Ttext=0x0000 -o $@ $<
|
|
|
|
sectorlisp.bin: sectorlisp.bin.dbg
|
|
objcopy -S -O binary sectorlisp.bin.dbg sectorlisp.bin
|