| 1 | # $Id: kNIX-bootstrap.kmk 3620 2008-04-25 03:07:35Z bird $ | 
|---|
| 2 | ## @file | 
|---|
| 3 | # | 
|---|
| 4 | # kNIX Boostrap Makefile for textinfo | 
|---|
| 5 | # | 
|---|
| 6 | # Copyright (c) 2007 knut st. osmundsen <bird-src-spam@anduin.net> | 
|---|
| 7 | # | 
|---|
| 8 | # | 
|---|
| 9 | # This file is part of kLIBC. | 
|---|
| 10 | # | 
|---|
| 11 | # kLIBC is free software; you can redistribute it and/or modify | 
|---|
| 12 | # it under the terms of the GNU General Public License as published by | 
|---|
| 13 | # the Free Software Foundation; either version 2 of the License, or | 
|---|
| 14 | # (at your option) any later version. | 
|---|
| 15 | # | 
|---|
| 16 | # kLIBC is distributed in the hope that it will be useful, | 
|---|
| 17 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 
|---|
| 18 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
|---|
| 19 | # GNU General Public License for more details. | 
|---|
| 20 | # | 
|---|
| 21 | # You should have received a copy of the GNU General Public License | 
|---|
| 22 | # along with kLIBC; if not, write to the Free Software | 
|---|
| 23 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA | 
|---|
| 24 | # | 
|---|
| 25 | # | 
|---|
| 26 |  | 
|---|
| 27 | DEPTH = ../../.. | 
|---|
| 28 | include $(PATH_KBUILD)/header.kmk | 
|---|
| 29 |  | 
|---|
| 30 | # | 
|---|
| 31 | # The texinfo template. | 
|---|
| 32 | # | 
|---|
| 33 | TEMPLATE_texinfo = texinfo template | 
|---|
| 34 | TEMPLATE_texinfo_EXTENDS = usr.bin | 
|---|
| 35 | TEMPLATE_texinfo_DEFS = $(TEMPLATE_usr.bin_DEFS) \ | 
|---|
| 36 | LOCALEDIR=\"/@unixroot/usr/share/locale\" \ | 
|---|
| 37 | INFODIR=\"/@unixroot/usr/info\" \ | 
|---|
| 38 | INFODIR2=\"/@unixroot/usr/share/info\" \ | 
|---|
| 39 | HAVE_CONFIG_H | 
|---|
| 40 | TEMPLATE_texinfo_INCS = $(TEMPLATE_usr.bin_INCS) \ | 
|---|
| 41 | $(PATH_TARGET) \ | 
|---|
| 42 | $(PATH_SUB_ROOT)/lib \ | 
|---|
| 43 | $(PATH_SUB_ROOT)/intl # needed ?? | 
|---|
| 44 | TEMPLATE_texinfo_LIBS = $(TEMPLATE_usr.bin_LIBS) \ | 
|---|
| 45 | $(TARGET_libtxi) | 
|---|
| 46 | TEMPLATE_texinfo_ORDERDEPS = $(TEMPLATE_usr.bin_ORDERDEPS) \ | 
|---|
| 47 | $(PATH_TARGET)/config.h \ | 
|---|
| 48 | $(PATH_TARGET)/funs.h \ | 
|---|
| 49 |  | 
|---|
| 50 | # | 
|---|
| 51 | # libtxi | 
|---|
| 52 | # | 
|---|
| 53 | LIBRARIES += libtxi | 
|---|
| 54 | libtxi_TEMPLATE = texinfo | 
|---|
| 55 | libtxi_NOINST = true | 
|---|
| 56 | libtxi_SOURCES =  \ | 
|---|
| 57 | lib/getopt.c \ | 
|---|
| 58 | lib/getopt1.c \ | 
|---|
| 59 | lib/substring.c \ | 
|---|
| 60 | lib/xexit.c \ | 
|---|
| 61 | lib/xmalloc.c \ | 
|---|
| 62 | lib/xstrdup.c \ | 
|---|
| 63 | lib/pc.c | 
|---|
| 64 |  | 
|---|
| 65 | # | 
|---|
| 66 | # texinfo | 
|---|
| 67 | # | 
|---|
| 68 | PROGRAMS += info | 
|---|
| 69 | info_TEMPLATE = texinfo | 
|---|
| 70 | info_INCS = $(PATH_SUB_ROOT)/info | 
|---|
| 71 | info_LIBS = ncurses | 
|---|
| 72 | info_SOURCES = \ | 
|---|
| 73 | info/dir.c \ | 
|---|
| 74 | info/display.c \ | 
|---|
| 75 | info/dribble.c \ | 
|---|
| 76 | info/echo-area.c \ | 
|---|
| 77 | info/filesys.c \ | 
|---|
| 78 | info/footnotes.c\ | 
|---|
| 79 | info/gc.c \ | 
|---|
| 80 | info/indices.c \ | 
|---|
| 81 | info/info-utils.c \ | 
|---|
| 82 | info/info.c \ | 
|---|
| 83 | info/infodoc.c \ | 
|---|
| 84 | info/infomap.c \ | 
|---|
| 85 | info/m-x.c \ | 
|---|
| 86 | info/man.c \ | 
|---|
| 87 | info/nodemenu.c \ | 
|---|
| 88 | info/nodes.c \ | 
|---|
| 89 | info/search.c \ | 
|---|
| 90 | info/session.c \ | 
|---|
| 91 | info/signals.c \ | 
|---|
| 92 | info/terminal.c \ | 
|---|
| 93 | info/tilde.c \ | 
|---|
| 94 | info/variables.c \ | 
|---|
| 95 | info/window.c \ | 
|---|
| 96 | $(PATH_TARGET)/doc.c | 
|---|
| 97 |  | 
|---|
| 98 | # | 
|---|
| 99 | # infokey | 
|---|
| 100 | # | 
|---|
| 101 | PROGRAMS += infokey | 
|---|
| 102 | infokey_TEMPLATE = texinfo | 
|---|
| 103 | infokey_INCS = $(PATH_SUB_ROOT)/info | 
|---|
| 104 | infokey_SOURCES = \ | 
|---|
| 105 | info/infokey.c \ | 
|---|
| 106 | $(PATH_TARGET)/key.c | 
|---|
| 107 |  | 
|---|
| 108 |  | 
|---|
| 109 | # | 
|---|
| 110 | # makeinfo | 
|---|
| 111 | # | 
|---|
| 112 | PROGRAMS += makeinfo | 
|---|
| 113 | makeinfo_TEMPLATE = texinfo | 
|---|
| 114 | makeinfo_INCS = $(PATH_SUB_ROOT)/makeinfo | 
|---|
| 115 | makeinfo_SOURCES = \ | 
|---|
| 116 | makeinfo/cmds.c \ | 
|---|
| 117 | makeinfo/defun.c \ | 
|---|
| 118 | makeinfo/files.c \ | 
|---|
| 119 | makeinfo/float.c \ | 
|---|
| 120 | makeinfo/footnote.c \ | 
|---|
| 121 | makeinfo/html.c \ | 
|---|
| 122 | makeinfo/index.c \ | 
|---|
| 123 | makeinfo/insertion.c \ | 
|---|
| 124 | makeinfo/lang.c \ | 
|---|
| 125 | makeinfo/macro.c \ | 
|---|
| 126 | makeinfo/makeinfo.c \ | 
|---|
| 127 | makeinfo/multi.c \ | 
|---|
| 128 | makeinfo/node.c \ | 
|---|
| 129 | makeinfo/sectioning.c \ | 
|---|
| 130 | makeinfo/toc.c \ | 
|---|
| 131 | makeinfo/xml.c \ | 
|---|
| 132 | makeinfo/xref.c | 
|---|
| 133 |  | 
|---|
| 134 | # | 
|---|
| 135 | # install-info | 
|---|
| 136 | # | 
|---|
| 137 | PROGRAMS += install-info | 
|---|
| 138 | install-info_TEMPLATE = texinfo | 
|---|
| 139 | install-info_INCS = $(PATH_SUB_ROOT)/util | 
|---|
| 140 | install-info_SOURCES = \ | 
|---|
| 141 | util/install-info.c | 
|---|
| 142 |  | 
|---|
| 143 | # | 
|---|
| 144 | # texindex | 
|---|
| 145 | # | 
|---|
| 146 | PROGRAMS += texindex | 
|---|
| 147 | texindex_TEMPLATE = texinfo | 
|---|
| 148 | texindex_INCS = $(PATH_SUB_ROOT)/util | 
|---|
| 149 | texindex_SOURCES = \ | 
|---|
| 150 | util/texindex.c | 
|---|
| 151 |  | 
|---|
| 152 | # | 
|---|
| 153 | # scripts | 
|---|
| 154 | # | 
|---|
| 155 | INSTALLS += texinfo-scripts | 
|---|
| 156 | texinfo-scripts_TEMPLATE = usr.bin | 
|---|
| 157 | texinfo-scripts_SOURCES = \ | 
|---|
| 158 | util/texi2dvi \ | 
|---|
| 159 | util/texi2pdf \ | 
|---|
| 160 |  | 
|---|
| 161 | # | 
|---|
| 162 | # config.h, funs.h and doc.c | 
|---|
| 163 | # | 
|---|
| 164 | $(PATH_TARGET)/config.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-config.h | 
|---|
| 165 | $(INSTALL) $< $@ | 
|---|
| 166 | $(PATH_TARGET)/funs.h: kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-funs.h | 
|---|
| 167 | $(INSTALL) $< $@ | 
|---|
| 168 | $(PATH_TARGET)/doc.c:  kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-doc.c | 
|---|
| 169 | $(INSTALL) $< $@ | 
|---|
| 170 | $(PATH_TARGET)/key.c:  kNIX-bootstrap-$(BUILD_TARGET).$(BUILD_TARGET_ARCH)-key.c | 
|---|
| 171 | $(INSTALL) $< $@ | 
|---|
| 172 |  | 
|---|
| 173 | include $(PATH_KBUILD)/footer.kmk | 
|---|
| 174 |  | 
|---|