2021-01-27 20:37:12 +01:00
|
|
|
KTCC_DIR = ../../develop/ktcc/trunk
|
2021-05-23 19:21:26 +02:00
|
|
|
KLIBC = ../../develop/libraries/kolibri-libc
|
2021-01-27 20:37:12 +01:00
|
|
|
|
|
|
|
NAME = weather
|
|
|
|
|
|
|
|
KTCC=$(KTCC_DIR)/bin/kos32-tcc
|
|
|
|
KPACK = kpack
|
|
|
|
|
2021-05-23 19:21:26 +02:00
|
|
|
SRC= weather.c json/json.c
|
|
|
|
FLAGS= -nostdlib $(KLIBC)/lib/crt0.o -I $(KLIBC)/include -I $(KTCC_DIR)/libc/include -L$(KLIBC)/lib
|
|
|
|
LIBS =-ltcc -limg -lhttp -lc.obj
|
2021-01-27 20:37:12 +01:00
|
|
|
|
|
|
|
all:
|
2021-05-23 19:21:26 +02:00
|
|
|
$(KTCC) $(FLAGS) $(SRC) $(LIBS) -o $(NAME)
|
2021-01-27 20:37:12 +01:00
|
|
|
$(KPACK) $(NAME)
|
|
|
|
clean:
|
|
|
|
rm $(NAME)
|