2021-01-04 21:34:25 +01:00
|
|
|
KTCC_DIR=../../develop/ktcc/trunk
|
2021-05-01 00:19:36 +02:00
|
|
|
KLIBC_DIR = ../../develop/libraries/kolibri-libc
|
2021-01-04 21:34:25 +01:00
|
|
|
|
|
|
|
NAME=whois
|
|
|
|
|
|
|
|
KTCC=$(KTCC_DIR)/bin/kos32-tcc
|
|
|
|
KPACK=kpack
|
|
|
|
|
|
|
|
SRC=whois.c
|
2021-05-01 00:19:36 +02:00
|
|
|
CFLAGS= -I$(KLIBC_DIR)/include
|
|
|
|
LFLAGS= -nostdlib -L $(KLIBC_DIR)/lib $(KLIBC_DIR)/lib/crt0.o
|
2021-05-23 17:44:58 +02:00
|
|
|
LIBS = -ltcc -lnetwork -lc.obj
|
2021-01-04 21:34:25 +01:00
|
|
|
|
|
|
|
all:
|
2021-04-26 23:15:40 +02:00
|
|
|
$(KTCC) $(CFLAGS) $(LFLAGS) $(SRC) $(LIBS) -o $(NAME)
|
2021-01-04 21:34:25 +01:00
|
|
|
$(KPACK) $(NAME)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(NAME)
|