2018-04-21 19:40:50 +00:00
|
|
|
PROG = marlene
|
2018-05-10 21:19:57 +00:00
|
|
|
OBJS = o/vt100.a o/telnet.a o/ansi.a o/chars.a o/marinetti.a o/display.a
|
2018-04-21 19:40:50 +00:00
|
|
|
|
|
|
|
CC = occ --gno
|
2018-04-21 19:30:26 +00:00
|
|
|
|
|
|
|
OPTIMIZE ?= 79
|
|
|
|
|
|
|
|
CFLAGS = -w-1 -O $(OPTIMIZE)
|
2018-04-21 19:40:50 +00:00
|
|
|
ASMFLAGS =
|
2018-04-21 19:30:26 +00:00
|
|
|
|
2018-05-10 21:19:57 +00:00
|
|
|
marlene: o/marlene.a $(OBJS)
|
|
|
|
$(CC) $(OBJS) -o $@
|
|
|
|
|
|
|
|
darlene: o/darlene.a $(OBJS)
|
2018-04-21 19:30:26 +00:00
|
|
|
$(CC) $(OBJS) -o $@
|
|
|
|
|
|
|
|
|
2018-05-10 21:19:57 +00:00
|
|
|
|
|
|
|
marlene.o: marlene.c
|
|
|
|
darlene.o: darlene.c
|
2018-04-21 19:40:50 +00:00
|
|
|
vt100.o: vt100.c CLAGS+=-r
|
|
|
|
marinetti.o: marinetti.c CLAGS+=-r
|
|
|
|
telnet.o: telnet.c CLAGS+=-r
|
2018-05-10 21:19:57 +00:00
|
|
|
ansi.o: ansi.asm
|
|
|
|
chars.o: chars.asm
|
2018-04-21 19:30:26 +00:00
|
|
|
|
2018-04-21 19:40:50 +00:00
|
|
|
o :
|
|
|
|
mkdir o
|
2018-04-21 19:30:26 +00:00
|
|
|
|
2018-04-21 19:40:50 +00:00
|
|
|
o/%.a : %.c | o
|
2018-04-21 19:30:26 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $^
|
|
|
|
|
2018-04-21 19:40:50 +00:00
|
|
|
o/%.a : %.asm | o
|
|
|
|
$(CC) -c $(ASMFLAGS) -o $@ $^
|
2018-05-10 21:19:57 +00:00
|
|
|
$(RM) o/$*.root
|
2018-04-21 19:40:50 +00:00
|
|
|
|
2018-04-21 19:30:26 +00:00
|
|
|
|
|
|
|
clean:
|
2018-04-21 19:40:50 +00:00
|
|
|
$(RM) -rf o
|
2018-04-21 19:30:26 +00:00
|
|
|
clobber: clean
|
|
|
|
$(RM) -f $(PROG)
|