forked from EtchedPixels/ubasic
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.z80
30 lines (21 loc) · 788 Bytes
/
Makefile.z80
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
all: tests use-ubasic ubx
CFLAGS=-O2 -Dstatic= -DVISUAL
CC=fcc
.SUFFIXES: .c .rel
SRCS = ubx.c tests.c tokenizer.c ubasic. use-ubasic.c
OBJS = $(SRCS:.c=.rel)
tests: tests.rel ubasic.rel tokenizer.rel
$(CC) $(CFLAGS) $(PLATFORM) ubasic.rel tests.rel tokenizer.rel -o $@
use-ubasic: use-ubasic.rel ubasic.rel tokenizer.rel
$(CC) $(CFLAGS) $(PLATFORM) ubasic.rel tokenizer.rel use-ubasic.rel -o $@
ubx: ubx.rel ubasic.rel tokenizer.rel
$(CC) $(CFLAGS) --nostdio $(PLATFORM) ubasic.rel tokenizer.rel ubx.rel -o $@ -ltermcap
clean:
rm -f *.rel tests use-ubasic ubx core *~ *.asm *.lst *.sym *.map *.noi *.lk *.ihx *.tmp *.bin
ubx.c: ubasic.h
tests.c: ubasic.h
use-ubasic.c: ubasic.h
ubasic.c: ubasic.h tokenizer.h
tokenizer.c: ubasic.h tokenizer.h
.c.rel:
$(CC) $(CFLAGS) -c $<