2020-11-24 15:40:29 +01:00
|
|
|
KTCC_DIR=../../develop/ktcc/trunk
|
2021-05-01 00:28:05 +02:00
|
|
|
KLIBC_DIR = ../../develop/libraries/kolibri-libc
|
2020-11-24 15:40:29 +01:00
|
|
|
|
|
|
|
NAME=thashview
|
|
|
|
|
|
|
|
KTCC=$(KTCC_DIR)/bin/kos32-tcc
|
|
|
|
KPACK=kpack
|
|
|
|
|
2020-12-11 21:34:18 +01:00
|
|
|
SRC=thashview.c
|
2021-05-01 00:28:05 +02:00
|
|
|
|
|
|
|
CFLAGS= -I$(KLIBC_DIR)/include -I$(KTCC_DIR)/libc/include
|
|
|
|
LFLAGS= -nobss -nostdlib -L $(KLIBC_DIR)/lib $(KLIBC_DIR)/lib/crt0.o
|
2021-05-23 17:49:26 +02:00
|
|
|
LIBS = -ltcc -ldialog -lcryptal -lbox -lc.obj
|
2020-11-24 15:40:29 +01:00
|
|
|
|
|
|
|
all:
|
2021-05-01 00:28:05 +02:00
|
|
|
$(KTCC) $(CFLAGS) $(SRC) $(LFLAGS) $(LIBS) -o $(NAME)
|
2020-11-24 15:40:29 +01:00
|
|
|
$(KPACK) $(NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(NAME)
|