2018-05-10 21:22:34 -04:00
|
|
|
COMMON_OBJS = o/vt100.a o/ansi.a o/chars.a o/display.a o/screen.a
|
|
|
|
|
|
|
|
MARLENE_OBJS = o/marlene.a o/telnet.a o/marinetti.a
|
|
|
|
DARLENE_OBJS = o/darlene.a
|
2018-04-21 15:40:50 -04:00
|
|
|
|
|
|
|
CC = occ --gno
|
2018-04-21 15:30:26 -04:00
|
|
|
|
|
|
|
OPTIMIZE ?= 79
|
|
|
|
|
|
|
|
CFLAGS = -w-1 -O $(OPTIMIZE)
|
2018-04-21 15:40:50 -04:00
|
|
|
ASMFLAGS =
|
2018-04-21 15:30:26 -04:00
|
|
|
|
2018-05-10 17:25:12 -04:00
|
|
|
.PHONY: all clean clobber
|
|
|
|
|
2018-05-10 21:06:58 -04:00
|
|
|
all: marlene darlene
|
2018-05-10 17:25:12 -04:00
|
|
|
|
2018-05-10 21:22:34 -04:00
|
|
|
marlene: $(MARLENE_OBJS) $(COMMON_OBJS)
|
|
|
|
$(CC) -o $@ $^
|
2018-05-10 17:19:57 -04:00
|
|
|
|
2018-05-10 21:22:34 -04:00
|
|
|
darlene: $(DARLENE_OBJS) $(COMMON_OBJS)
|
|
|
|
$(CC) -lutil -o $@ $^
|
2019-10-03 00:05:21 -04:00
|
|
|
# iix chtyp -a 0xdc00 $@
|
2018-04-21 15:30:26 -04:00
|
|
|
|
|
|
|
|
2018-05-10 17:19:57 -04:00
|
|
|
|
|
|
|
marlene.o: marlene.c
|
|
|
|
darlene.o: darlene.c
|
2018-04-21 15:40:50 -04:00
|
|
|
vt100.o: vt100.c CLAGS+=-r
|
|
|
|
marinetti.o: marinetti.c CLAGS+=-r
|
|
|
|
telnet.o: telnet.c CLAGS+=-r
|
2018-05-10 21:06:58 -04:00
|
|
|
screen.o: screen.c CLAGS+=-r
|
2018-05-10 17:19:57 -04:00
|
|
|
ansi.o: ansi.asm
|
|
|
|
chars.o: chars.asm
|
2018-04-21 15:30:26 -04:00
|
|
|
|
2018-04-21 15:40:50 -04:00
|
|
|
o :
|
|
|
|
mkdir o
|
2018-04-21 15:30:26 -04:00
|
|
|
|
2018-04-21 15:40:50 -04:00
|
|
|
o/%.a : %.c | o
|
2018-04-21 15:30:26 -04:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $^
|
|
|
|
|
2018-04-21 15:40:50 -04:00
|
|
|
o/%.a : %.asm | o
|
|
|
|
$(CC) -c $(ASMFLAGS) -o $@ $^
|
2018-05-10 17:19:57 -04:00
|
|
|
$(RM) o/$*.root
|
2018-04-21 15:40:50 -04:00
|
|
|
|
2018-04-21 15:30:26 -04:00
|
|
|
|
|
|
|
clean:
|
2018-04-21 15:40:50 -04:00
|
|
|
$(RM) -rf o
|
2018-04-21 15:30:26 -04:00
|
|
|
clobber: clean
|
2018-05-10 21:06:58 -04:00
|
|
|
$(RM) -f marlene darlene
|