35 lines
560 B
Makefile
35 lines
560 B
Makefile
CC = gcc
|
|
XSOPT =
|
|
SOPT = -Wall -O2 -fno-defer-pop
|
|
CPY = cp -a
|
|
DEL = rm -f
|
|
|
|
pdst.s: pdst.c
|
|
$(CC) $(XSOPT) $(SOPT) -S pdst.c
|
|
|
|
pdst.o: pdst.s
|
|
$(CC) -c pdst.s
|
|
|
|
pdst: pdst.o
|
|
$(CC) -o pdst pdst.o -lm
|
|
|
|
systemImage: initial.st
|
|
./pdst -c initial.st
|
|
|
|
.PHONY: test1
|
|
test1:
|
|
$(CPY) snapshot snapshot.1
|
|
./pdst -w snapshot <test1.kbd
|
|
|
|
.PHONY: test2
|
|
test2:
|
|
$(CPY) snapshot snapshot.2
|
|
./pdst -w snapshot <test2.kbd
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(DEL) snapshot.2 test2.one.out test2.all.out
|
|
$(DEL) snapshot.1
|
|
$(DEL) snapshot transcript systemImage
|
|
$(DEL) pdst pdst.o pdst.s
|