diff --git a/programs/other/man2html/Makefile.kos b/programs/other/man2html/Makefile.kos deleted file mode 100644 index 39d6bb1c77..0000000000 --- a/programs/other/man2html/Makefile.kos +++ /dev/null @@ -1,19 +0,0 @@ -KTCC_DIR = ../../develop/ktcc/trunk - -NAME = man2html - -KTCC = kos32-tcc -KPACK = kpack - -SRC = man2html.c cgibase.c abbrev.c strdefs.c - -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 -LIBS = -ltcc -lc.obj - -all: - $(KTCC) $(CFLAGS) $(SRC) $(LFLAGS) $(LIBS) -o $(NAME) - $(KPACK) $(NAME) - -clean: - rm $(NAME) diff --git a/programs/other/man2html/Tupfile.lua b/programs/other/man2html/Tupfile.lua new file mode 100644 index 0000000000..acb3a1b10e --- /dev/null +++ b/programs/other/man2html/Tupfile.lua @@ -0,0 +1,15 @@ +if tup.getconfig("NO_TCC") ~= "" then return end +if tup.getconfig("HELPERDIR") == "" +then + HELPERDIR = "../../../programs" +end +tup.include(HELPERDIR .. "/use_tcc.lua") + +SRCS = { + "man2html.c", + "cgibase.c", + "abbrev.c", + "strdefs.c" +} + +link_tcc(SRCS, "man2html");