sectorlisp/Makefile
2021-10-08 21:26:31 -07:00

28 lines
599 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 -mtune=i386 -o $@ $<
sectorlisp.bin.dbg: sectorlisp.o
$(LD) -oformat:binary -Ttext=0x7600 -o $@ $<
sectorlisp.bin: sectorlisp.bin.dbg
objcopy -S -O binary sectorlisp.bin.dbg sectorlisp.bin