sectorlisp/Makefile
Justine Tunney c549796f78 Make C impl match latest asm tactics
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
2021-11-22 16:43:03 -08:00

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