Index: utils/Makefile ================================================================== --- utils/Makefile +++ utils/Makefile @@ -3,10 +3,12 @@ SUBDIRS += ${OBJFW_NEW} \ ${OFARC} \ ${OFDNS} \ ${OFHASH} \ ${OFHTTP} + +MAN = objfw-config.1 include ../buildsys.mk DISTCLEAN = objfw-config ADDED utils/objfw-config.1 Index: utils/objfw-config.1 ================================================================== --- /dev/null +++ utils/objfw-config.1 @@ -0,0 +1,96 @@ +.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) Index: utils/objfw-config.in ================================================================== --- utils/objfw-config.in +++ utils/objfw-config.in @@ -52,11 +52,11 @@ --arc Outputs the required OBJCFLAGS to use ARC --cflags Outputs the required CFLAGS --cppflags Outputs the required CPPFLAGS --cxxflags Outputs the required CXXFLAGS --framework-libs Outputs the required LIBS, preferring frameworks - --help Print this help + --help Prints the help --ldflags Outputs the required LDFLAGS --libs Outputs the required LIBS --lib-cflags Outputs CFLAGS for building a library --lib-ldflags Outputs LDFLAGS for building a library --lib-prefix Outputs the prefix for libraries @@ -70,11 +70,11 @@ --plugin-suffix Outputs the suffix for plugins --prog-suffix Outputs the suffix for binaries --reexport Outputs LDFLAGS to reexport ObjFW --rpath Outputs LDFLAGS for using rpath --static-libs Outputs the required LIBS to link ObjFW statically - --version Outputs the installed version + --version Outputs the installed ObjFW version __EOF__ exit $1 } test -z "$1" && show_help 1