sectorlisp/Makefile
Justine Tunney 814c61aeae Shave another sixteen bytes (now 426 bytes)
The flag bit is now removed from atoms in favor of the sign bit.
That let us remove shifts. It also means NIL can be zero, which
freed up the %cx register. Using %cx to call Eval saved 2 bytes.
Saved six bytes removing bss memset as it's not needed anymore.
2021-11-17 08:41:36 -08:00

28 lines
587 B
Makefile

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