summarylogtreecommitdiffstats
path: root/cbp2make.1
blob: bae1cd2f656d28d71112d11dc9564a9d6c6ec426 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
.TH CBP2MAKE "1" "February 2014" "cbp2make" "User Commands"
.SH NAME
cbp2make \- code::blocks Makefile generation tool
.SH SYNOPSIS
\fBcbp2make\fR \-in <project_file> [\-cfg <configuration>] [\-out <makefile>] [\-unix] [\-windows] [\-mac] [\-\-all\-os] [\-targets "<target1>[,<target2>[, ...]]"] [\-\-flat\-objects] [\-\-flat\-objpath] [\-\-wrap\-objects] [\-\-wrap\-options] [\-\-with\-deps] [\-\-keep\-objdir] [\-\-keep\-outdir] [\-\-target\-case keep|lower|upper] [\-\-macros\-case keep|lower|upper] [\-\-quote\-path auto|never|always]

\fBcbp2make\fR \-list \-in <project_file_list> [\-cfg <configuration>]
[\-unix] [\-windows] [\-mac] [\-\-all\-os] [\-targets "<target1>[,<target2>[, ...]]"]
[\-\-flat\-objects] [\-\-flat\-objpath] [\-\-wrap\-objects] [\-\-wrap\-options]
[\-\-with\-deps] [\-\-keep\-objdir] [\-\-keep\-outdir] [\-\-target\-case keep|lower|upper]
[\-\-macros\-case keep|lower|upper] [\-\-quote\-path auto|never|always]
.SH DESCRIPTION
cbp2make is a stand-alone build tool that allows you to generate makefile(s)
for GNU Make out of Code::Blocks IDE project or workspace file.
.SH OPTIONS
.TP
\fB\-in <project_file>\fR
specifies an input file or a list of files;
.TP
\fB\-cfg <configuration>\fR
specifies a configuration file, see also \fB\-\-local\fR and \fB\-\-global\fR options;
.TP
\fB\-out <makefile>\fR
specifies the name of a makefile or a list of makefiles;
.TP
\fB\-unix\fR
enables Unix / Linux compatible makefile generation;
.TP
\fB\-windows\fR
enables Windows compatible makefile generation;
.TP
\fB\-mac\fR
enables Macintosh compatible makefile generation;
.TP
\fB\-\-all\-os\fR
enables all target platforms at once;
.TP
\fB\-targets "<target1>[,<target2>[, ...]]"\fR
specifies the only build targets that a makefile will be made for;
.TP
\fB\-\-flat\-objects\fR
forces "flat" names for object files with limited character set;
.TP
\fB\-\-flat\-objpath\fR
forces "flat" paths for object files with no subdirectories;
.TP
\fB\-\-wrap\-objects\fR
allows to use multiline lists of objects which makes a makefile easier to read;
.TP
\fB\-\-wrap\-options\fR
allows to use multiline macros;
.TP
\fB\-\-with\-deps\fR
allows a built\-in dependency scanner for C/C++ projects;
.TP
\fB\-\-keep\-objdir\fR
disables command that erase directories for object files in 'clean' target;
.TP
\fB\-\-keep\-outdir\fR
disables command that erase directory for an output binary file in 'clean' target;
.TP
\fB\-\-target\-case [keep|lower|upper]\fR
specifies style for makefile targets;
.SS
Common options:
.TP
\fB\-\-local\fR
use configuration from current directory
.TP
\fB\-\-global\fR
use configuration from home directory
.TP
\fB\-\-verbose\fR
show project information
.TP
\fB\-\-quiet\fR
hide all messages
.TP
\fB\-\-help\fR
display this message
.TP
\fB\-\-version\fR
display version information
.SH CONFIGURATION
Some installation- or project-specific options, primarily toolchain settings,
can be saved to a configuration file. By default (since rev.110), cbp2make
does not save any settings to a configuration file unless the user explicitly
specifies the \fB\-\-config\fR option. A configuration file can be either
global (stored in user profile / home directory) or local (stored in current
directory).

Please, keep in mind that since cbp2make is in early stage of development, an
old configuration file may become incompatible with new tool version and it
may be necessary to update it manually or initialize a new one.

When cbp2make is invoked, first it tries to load a local configuration
file. If a local configuration is missing, next attempt will be to load a
global one. If this attempt is not successful either, the default built-in
configuration is used. Configuration lookup order can be overridden with
\fB\-\-local\fR or \fB\-\-global\fR command line options. If one of options is
supplied to cbp2make, non-specified configuration is not picked up even if the
specified one is missing and non-specified do exists.
.SS
Manage toolchains
\fBcbp2make\fR \-\-config toolchain \-\-add [\-unix|\-windows|\-mac] \-chain <toolchain>

\fBcbp2make\fR \-\-config toolchain \-\-remove [\-unix|\-windows|\-mac] \-chain <toolchain>
.SS
Manage build tools
\fBcbp2make\fR \-\-config tool \-\-add [\-unix|\-windows|\-mac] \-chain <toolchain>
\fB\-tool <tool> \-type <type> <tool options>

\fBcbp2make\fR \-\-config tool \-\-remove [\-unix|\-windows|\-mac] \-chain <toolchain>
\fB\-tool <tool>
.SS
Manage platforms
\fBcbp2make\fR \-\-config platform [\-unix|\-windows|\-mac] [\-pwd <print_dir_command>]
[\-cd <change_dir_command>] [\-rm <remove_file_command>]
[\-rmf <remove_file_forced>] [\-rmd <remove_dir_command>]
[\-cp <copy_file_command>] [\-mv <move_file_command>]
[\-md <make_dir_command>] [\-mdf <make_dir_forced>]
[\-make <default_make_tool>]
.SS
Manage global compiler variables
\fBcbp2make\fR \-\-config variable \-\-add [\-set <set_name>] \-name <var_name> [\-desc <description>] [\-field <field_name>] \-value <var_value>

\fBcbp2make\fR \-\-config variable \-\-remove [\-set <set_name>] [\-name <var_name>] [\-field <field_name>]
.SS
Manage options
\fBcbp2make\fR \-\-config options \-\-default\-options "<options>"

\fBcbp2make\fR \-\-config show
.SS
Tool types:
.TP
pp
preprocessor
.TP
as
assembler
.TP
cc
compiler
.TP
rc
resource compiler
.TP
sl
static linker
.TP
dl
dynamic linker
.TP
el
executable linker
.TP
nl
native linker
.SS
Tool options (common):
.TP
\fB\-desc\fR <description>
.TP
\fB\-program\fR <executable>
.TP
\fB\-command\fR <command_template>
.TP
\fB\-mkv\fR <make_variable>
.TP
\fB\-srcext\fR <source_extensions>
.TP
\fB\-outext\fR <output_extension>
.TP
\fB\-quotepath\fR <yes|no>
.TP
\fB\-fullpath\fR <yes|no>
.TP
\fB\-unixpath\fR <yes|no>
.SS
Tool options (compiler):
.TP
\fB\-incsw\fR <include_switch>
.TP
\fB\-defsw\fR <define_switch>
.TP
\fB\-deps\fR <yes|no>
.SS
Tool options (linker):
.TP
\fB\-ldsw\fR <library_dir_switch>
.TP
\fB\-llsw\fR <link_library_switch>
.TP
\fB\-lpfx\fR <library_prefix>
.TP
\fB\-lext\fR <library_extension>
.TP
\fB\-objext\fR <object_extension>
.TP
\fB\-lflat\fR <yes|no>
.SH SEE ALSO
codeblocks (1)