2021-05-23 17:55:49 +02:00
|
|
|
KTCC_DIR=../ktcc/trunk
|
2021-11-02 23:27:40 +01:00
|
|
|
KLIBC_DIR = $(KTCC_DIR)/libc.obj
|
2021-05-23 17:55:49 +02:00
|
|
|
|
|
|
|
NAME=bin/tinybas.kex
|
|
|
|
|
|
|
|
KTCC=$(KTCC_DIR)/bin/kos32-tcc
|
|
|
|
KPACK=kpack
|
|
|
|
|
|
|
|
SRC= src/common.c \
|
|
|
|
src/errors.c \
|
|
|
|
src/expression.c \
|
|
|
|
src/formatter.c \
|
|
|
|
src/generatec.c \
|
|
|
|
src/interpret.c \
|
|
|
|
src/options.c \
|
|
|
|
src/parser.c \
|
|
|
|
src/statement.c \
|
|
|
|
src/tinybasic.c \
|
|
|
|
src/token.c \
|
|
|
|
src/tokeniser.c
|
|
|
|
|
|
|
|
CFLAGS= -D_KOLIBRI -I$(KLIBC_DIR)/include -I inc
|
|
|
|
LFLAGS= -nobss -nostdlib -L $(KLIBC_DIR)/lib $(KLIBC_DIR)/lib/crt0.o
|
|
|
|
LIBS = -ltcc -lc.obj
|
|
|
|
|
|
|
|
all:
|
|
|
|
$(KTCC) $(CFLAGS) $(SRC) $(LFLAGS) $(LIBS) -o $(NAME)
|
|
|
|
$(KPACK) $(NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(NAME)
|