forked from KolibriOS/kolibrios
man2html: Added to autobuild
git-svn-id: svn://kolibrios.org@9652 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
ee7c61f931
commit
8b6d8d592b
@ -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)
|
|
15
programs/other/man2html/Tupfile.lua
Normal file
15
programs/other/man2html/Tupfile.lua
Normal file
@ -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");
|
Loading…
Reference in New Issue
Block a user