ObjFW  Artifact [6034b81739]

Artifact 6034b817392ef3f067cfeebaaf20530d74a0451941e6e3ee2aaa83bc50258f7e:


.\"
.\" Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
.\"
.\" All rights reserved.
.\"
.\" This program is free software: you can redistribute it and/or modify it
.\" under the terms of the GNU Lesser General Public License version 3.0 only,
.\" as published by the Free Software Foundation.
.\"
.\" This program is distributed in the hope that it will be useful, but WITHOUT
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
.\" version 3.0 for more details.
.\"
.\" You should have received a copy of the GNU Lesser General Public License
.\" version 3.0 along with this program. If not, see
.\" <https://www.gnu.org/licenses/>.
.\"
.TH OBJFW-CONFIG 1
.SH NAME
objfw-config - print flags required for compiling with ObjFW
.SH SYNOPSIS
.B objfw-config
[\fBoptions\fR]
.SH DESCRIPTION
.B objfw-config
is a program which outputs various flags needed to compile software using ObjFW.
.SH OPTIONS
.TP
.BR \-\-all
Outputs all flags + libs.
.TP
.BR \-\-arc
Outputs the required \fIOBJCFLAGS\fR to use ARC.
.TP
.BR \-\-cflags
Outputs the required \fICFLAGS\fR.
.TP
.BR \-\-cppflags
Outputs the required \fICPPFLAGS\fR.
.TP
.BR \-\-cxxflags
Outputs the required \fICXXFLAGS\fR.
.TP
.BR \-\-framework-libs
Outputs the required \fILIBS\fR, preferring frameworks.
.TP
.BR \-\-help
Prints the help.
.TP
.BR \-\-ldflags
Outputs the required \fILDFLAGS\fR.
.TP
.BR \-\-libs
Outputs the required \fILIBS\fR.
.TP
.BR \-\-lib-cflags
Outputs \fICFLAGS\fR for building a library.
.TP
.BR \-\-lib-ldflags
Outputs \fILDFLAGS\fR for building a library.
.TP
.BR \-\-lib-prefix
Outputs the prefix for libraries.
.TP
.BR \-\-lib-suffix
Outputs the suffix for libraries.
.TP
.BR \-\-objc
Outputs the \fIOBJC\fR used to compile ObjFW. It is required to use the same
\fIOBJC\fR that was used to compile ObjFW.
.TP
.BR \-\-objcflags
Outputs the required \fIOBJCFLAGS\fR.
.TP
.BR \-\-package \fINAME\fR
Additionally outputs the flags for the specified package.
.TP
.BR \-\-packages-dir
Outputs the directory where flags for packages are stored.
.TP
.BR \-\-plugin-cflags
Outputs \fICFLAGS\fR for building a plugin.
.TP
.BR \-\-plugin-ldflags
Outputs \fILDFLAGS\fR for building a plugin.
.TP
.BR \-\-plugin-suffix
Outputs the suffix for plugins.
.TP
.BR \-\-prog-suffix
Outputs the suffix for binaries.
.TP
.BR \-\-reexport
Outputs \fILDFLAGS\fR to reexport ObjFW.
.TP
.BR \-\-rpath
Outputs \fILDFLAGS\fR for using rpath.
.TP
.BR \-\-static-libs
Outputs the required \fILIBS\fR to link ObjFW statically.
.TP
.BR \-\-version
Outputs the installed ObjFW version.
.SH EXAMPLES
Print \fIOBJCFLAGS\fR and \fICPPFLAGS\fR:
.PP
	objfw-config \-\-objcflags \-\-cppflags
.PP
Print \fILIBS\fR and \fILDFLAGS\fR for ObjFW and ObjFWTLS:
.PP
	objfw-config \-\-libs \-\-ldflags --package ObjFWTLS
.SH SEE ALSO
\fIobjfw-compile\fR(1)