1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY unifdef-download-http "https://dotat.at/prog/unifdef/unifdef-&unifdef-version;.tar.gz">
|
---|
8 | <!ENTITY unifdef-download-ftp " ">
|
---|
9 | <!ENTITY unifdef-md5sum "b225312c110cd2600ca7166bd0419751">
|
---|
10 | <!ENTITY unifdef-size "88 KB">
|
---|
11 | <!ENTITY unifdef-buildsize "1.9 MB">
|
---|
12 | <!ENTITY unifdef-time "less than 0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="unifdef" xreflabel="unifdef-&unifdef-version;">
|
---|
16 | <?dbhtml filename="unifdef.html"?>
|
---|
17 |
|
---|
18 | <title>unifdef-&unifdef-version;</title>
|
---|
19 |
|
---|
20 | <indexterm zone="unifdef">
|
---|
21 | <primary sortas="a-unifdef">unifdef</primary>
|
---|
22 | </indexterm>
|
---|
23 |
|
---|
24 | <sect2 role="package">
|
---|
25 | <title>Introduction to unifdef</title>
|
---|
26 |
|
---|
27 | <para>
|
---|
28 | The <application>unifdef</application> package contains a utility that
|
---|
29 | is useful for removing preprocessor conditionals from code.
|
---|
30 | </para>
|
---|
31 |
|
---|
32 | &lfs122_checked;
|
---|
33 |
|
---|
34 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
35 | <itemizedlist spacing="compact">
|
---|
36 | <listitem>
|
---|
37 | <para>
|
---|
38 | Download (HTTP): <ulink url="&unifdef-download-http;"/>
|
---|
39 | </para>
|
---|
40 | </listitem>
|
---|
41 | <listitem>
|
---|
42 | <para>
|
---|
43 | Download (FTP): <ulink url="&unifdef-download-ftp;"/>
|
---|
44 | </para>
|
---|
45 | </listitem>
|
---|
46 | <listitem>
|
---|
47 | <para>
|
---|
48 | Download MD5 sum: &unifdef-md5sum;
|
---|
49 | </para>
|
---|
50 | </listitem>
|
---|
51 | <listitem>
|
---|
52 | <para>
|
---|
53 | Download size: &unifdef-size;
|
---|
54 | </para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>
|
---|
58 | Estimated disk space required: &unifdef-buildsize;
|
---|
59 | </para>
|
---|
60 | </listitem>
|
---|
61 | <listitem>
|
---|
62 | <para>
|
---|
63 | Estimated build time: &unifdef-time;
|
---|
64 | </para>
|
---|
65 | </listitem>
|
---|
66 | </itemizedlist>
|
---|
67 |
|
---|
68 | </sect2>
|
---|
69 |
|
---|
70 | <sect2 role="installation">
|
---|
71 | <title>Installation of unifdef</title>
|
---|
72 |
|
---|
73 | <para>
|
---|
74 | Install <application>unifdef</application> by running the following
|
---|
75 | commands:
|
---|
76 | </para>
|
---|
77 |
|
---|
78 | <screen><userinput>make</userinput></screen>
|
---|
79 |
|
---|
80 | <para>
|
---|
81 | To test the results, issue: <command>make test</command>.
|
---|
82 | </para>
|
---|
83 |
|
---|
84 | <para>
|
---|
85 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
86 | </para>
|
---|
87 |
|
---|
88 | <screen role="root"><userinput>make prefix=/usr install</userinput></screen>
|
---|
89 | </sect2>
|
---|
90 |
|
---|
91 | <sect2 role="content">
|
---|
92 | <title>Contents</title>
|
---|
93 |
|
---|
94 | <segmentedlist>
|
---|
95 | <segtitle>Installed Programs</segtitle>
|
---|
96 | <segtitle>Installed Libraries</segtitle>
|
---|
97 | <segtitle>Installed Directories</segtitle>
|
---|
98 |
|
---|
99 | <seglistitem>
|
---|
100 | <seg>
|
---|
101 | unifdef and unifdefall
|
---|
102 | </seg>
|
---|
103 | <seg>
|
---|
104 | None
|
---|
105 | </seg>
|
---|
106 | <seg>
|
---|
107 | None
|
---|
108 | </seg>
|
---|
109 | </seglistitem>
|
---|
110 | </segmentedlist>
|
---|
111 |
|
---|
112 | <variablelist>
|
---|
113 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
114 | <?dbfo list-presentation="list"?>
|
---|
115 | <?dbhtml list-presentation="table"?>
|
---|
116 |
|
---|
117 | <varlistentry id="unifdef-prog">
|
---|
118 | <term><command>unifdef</command></term>
|
---|
119 | <listitem>
|
---|
120 | <para>
|
---|
121 | removes preprocessor conditionals from code
|
---|
122 | </para>
|
---|
123 | <indexterm zone="unifdef unifdef-prog">
|
---|
124 | <primary sortas="b-unifdef">unifdef</primary>
|
---|
125 | </indexterm>
|
---|
126 | </listitem>
|
---|
127 | </varlistentry>
|
---|
128 |
|
---|
129 | <varlistentry id="unifdefall">
|
---|
130 | <term><command>unifdefall</command></term>
|
---|
131 | <listitem>
|
---|
132 | <para>
|
---|
133 | removes preprocessor conditionals from code across a whole tree
|
---|
134 | </para>
|
---|
135 | <indexterm zone="unifdef unifdefall">
|
---|
136 | <primary sortas="b-unifdefall">unifdefall</primary>
|
---|
137 | </indexterm>
|
---|
138 | </listitem>
|
---|
139 | </varlistentry>
|
---|
140 | </variablelist>
|
---|
141 | </sect2>
|
---|
142 | </sect1>
|
---|