2021-11-16 20:23:49 +01:00
|
|
|
KTCC_DIR = ../../develop/ktcc/trunk
|
2021-11-16 10:37:50 +01:00
|
|
|
|
|
|
|
NAME = man2html
|
|
|
|
|
2021-11-16 20:23:49 +01:00
|
|
|
KTCC = kos32-tcc
|
|
|
|
KPACK = kpack
|
|
|
|
|
2021-11-16 10:37:50 +01:00
|
|
|
SRC = man2html.c cgibase.c abbrev.c strdefs.c
|
|
|
|
|
2021-11-16 20:23:49 +01:00
|
|
|
CFLAGS = -D_KOLIBRI -DNOCGI -I$(KTCC_DIR)/libc.obj/include -I inc
|
|
|
|
LFLAGS = -nostdlib -L$(KTCC_DIR)/bin/lib $(KTCC_DIR)/bin/lib/crt0.o
|
2021-11-16 10:37:50 +01:00
|
|
|
LIBS = -ltcc -lc.obj
|
|
|
|
|
|
|
|
all:
|
2021-11-16 20:23:49 +01:00
|
|
|
$(KTCC) $(CFLAGS) $(SRC) $(LFLAGS) $(LIBS) -o $(NAME)
|
|
|
|
$(KPACK) $(NAME)
|
2021-11-16 10:37:50 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm $(NAME)
|