rename a bit

This commit is contained in:
Kelvin Sherlock 2018-04-21 15:40:50 -04:00
parent 9cc53483ad
commit c956be1319
3 changed files with 22 additions and 16 deletions

View File

@ -1,10 +1,12 @@
PROG = fctelnet
OBJS = o/fctelnet.a o/vt100.a o/telnet.a o/ansi.a o/chars.a o/marinetti.a o/display.a
PROG = marlene
OBJS = o/main.a o/vt100.a o/telnet.a o/ansi.a o/chars.a o/marinetti.a o/display.a
CC = occ --gno
OPTIMIZE ?= 79
CFLAGS = -w-1 -O $(OPTIMIZE)
CC = occ --gno
ASMFLAGS =
$(PROG): $(OBJS)
$(RM) o/ansi.root
@ -12,21 +14,24 @@ $(PROG): $(OBJS)
$(CC) $(OBJS) -o $@
fctelnet.o: fctelnet.c marinetti.h
vt100.o: vt100.c CLAGS+=-r
ansi.o: ansi.asm
chars.o: chars.asm
marinetti.o: marinetti.c CLAGS+=-r
telnet.o: telnet.c CLAGS+=-r
main.o: main.c
vt100.o: vt100.c CLAGS+=-r
ansi.o: ansi.asm
chars.o: chars.asm
marinetti.o: marinetti.c CLAGS+=-r
telnet.o: telnet.c CLAGS+=-r
o/%.a : %.c
o :
mkdir o
o/%.a : %.c | o
$(CC) -c $(CFLAGS) -o $@ $^
o/%.a : %.asm
$(CC) -c $(CFLAGS) -o $@ $^
o/%.a : %.asm | o
$(CC) -c $(ASMFLAGS) -o $@ $^
clean:
$(RM) -f *.o *.root *.a *.r
$(RM) -rf o
clobber: clean
$(RM) -f $(PROG)

View File

View File

@ -1,5 +1,5 @@
PROG = fctelnet
OBJS = fctelnet.o vt100.o telnet.o ansi.o chars.o marinetti.o display.o
PROG = marlene
OBJS = main.o vt100.o telnet.o ansi.o chars.o marinetti.o display.o
OPTIMIZE *= 79
@ -11,12 +11,13 @@ $(PROG): $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $@
fctelnet.o: fctelnet.c marinetti.h
main.o: main.c
vt100.o: vt100.c
ansi.o: ansi.asm
chars.o: chars.asm
marinetti.o: marinetti.c
telnet.o: telnet.c
display.o: display.c
clean:
$(RM) -f *.o *.root *.a *.r