michael@428: .\" Automatically generated by Pod::Man 2.25 (Pod::Simple 3.22) michael@13: .\" michael@13: .\" Standard preamble: michael@13: .\" ======================================================================== michael@13: .de Sp \" Vertical space (when we can't use .PP) michael@13: .if t .sp .5v michael@13: .if n .sp michael@13: .. michael@13: .de Vb \" Begin verbatim text michael@13: .ft CW michael@13: .nf michael@13: .ne \\$1 michael@13: .. michael@13: .de Ve \" End verbatim text michael@13: .ft R michael@13: .fi michael@13: .. michael@13: .\" Set up some character translations and predefined strings. \*(-- will michael@13: .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left michael@428: .\" double quote, and \*(R" will give a right double quote. \*(C+ will michael@428: .\" give a nicer C++. Capital omega is used to do unbreakable dashes and michael@428: .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, michael@428: .\" nothing in troff, for use with C<>. michael@428: .tr \(*W- michael@13: .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' michael@13: .ie n \{\ michael@13: . ds -- \(*W- michael@13: . ds PI pi michael@13: . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch michael@13: . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch michael@13: . ds L" "" michael@13: . ds R" "" michael@13: . ds C` michael@13: . ds C' michael@13: 'br\} michael@13: .el\{\ michael@13: . ds -- \|\(em\| michael@13: . ds PI \(*p michael@13: . ds L" `` michael@13: . ds R" '' michael@13: 'br\} michael@13: .\" michael@428: .\" Escape single quotes in literal strings from groff's Unicode transform. michael@428: .ie \n(.g .ds Aq \(aq michael@428: .el .ds Aq ' michael@428: .\" michael@13: .\" If the F register is turned on, we'll generate index entries on stderr for michael@428: .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index michael@13: .\" entries marked with X<> in POD. Of course, you'll have to process the michael@13: .\" output yourself in some meaningful fashion. michael@428: .ie \nF \{\ michael@13: . de IX michael@13: . tm Index:\\$1\t\\n%\t"\\$2" michael@13: .. michael@13: . nr % 0 michael@13: . rr F michael@13: .\} michael@428: .el \{\ michael@428: . de IX michael@428: .. michael@428: .\} michael@13: .\" michael@13: .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). michael@13: .\" Fear. Run. Save yourself. No user-serviceable parts. michael@13: . \" fudge factors for nroff and troff michael@13: .if n \{\ michael@13: . ds #H 0 michael@13: . ds #V .8m michael@13: . ds #F .3m michael@13: . ds #[ \f1 michael@13: . ds #] \fP michael@13: .\} michael@13: .if t \{\ michael@13: . ds #H ((1u-(\\\\n(.fu%2u))*.13m) michael@13: . ds #V .6m michael@13: . ds #F 0 michael@13: . ds #[ \& michael@13: . ds #] \& michael@13: .\} michael@13: . \" simple accents for nroff and troff michael@13: .if n \{\ michael@13: . ds ' \& michael@13: . ds ` \& michael@13: . ds ^ \& michael@13: . ds , \& michael@13: . ds ~ ~ michael@13: . ds / michael@13: .\} michael@13: .if t \{\ michael@13: . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" michael@13: . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' michael@13: . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' michael@13: . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' michael@13: . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' michael@13: . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' michael@13: .\} michael@13: . \" troff and (daisy-wheel) nroff accents michael@13: .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' michael@13: .ds 8 \h'\*(#H'\(*b\h'-\*(#H' michael@13: .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] michael@13: .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' michael@13: .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' michael@13: .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] michael@13: .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] michael@13: .ds ae a\h'-(\w'a'u*4/10)'e michael@13: .ds Ae A\h'-(\w'A'u*4/10)'E michael@13: . \" corrections for vroff michael@13: .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' michael@13: .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' michael@13: . \" for low resolution devices (crt and lpr) michael@13: .if \n(.H>23 .if \n(.V>19 \ michael@13: \{\ michael@13: . ds : e michael@13: . ds 8 ss michael@13: . ds o a michael@13: . ds d- d\h'-1'\(ga michael@13: . ds D- D\h'-1'\(hy michael@13: . ds th \o'bp' michael@13: . ds Th \o'LP' michael@13: . ds ae ae michael@13: . ds Ae AE michael@13: .\} michael@13: .rm #[ #] #H #V #F C michael@13: .\" ======================================================================== michael@13: .\" michael@13: .IX Title "RPM-CONFIG 8" michael@13: .TH RPM-CONFIG 8 "OpenPKG" "RPM-CONFIG(8)" "OpenPKG" michael@428: .\" For nroff, turn off justification. Always turn off hyphenation; it makes michael@428: .\" way too many mistakes in technical documents. michael@428: .if n .ad l michael@428: .nh michael@13: .SH "NAME" michael@428: rpm\-config \- OpenPKG RPM library build utility michael@13: .SH "VERSION" michael@13: .IX Header "VERSION" michael@13: OpenPKG \s-1RPM\s0 \s-1RPM_VERSION\s0 michael@13: .SH "SYNOPSIS" michael@13: .IX Header "SYNOPSIS" michael@13: \&\fBrpm-config\fR michael@13: [\fB\-\-help\fR] michael@13: [\fB\-\-version\fR] michael@13: [\fB\-\-cc\fR] michael@13: [\fB\-\-cppflags\fR] michael@13: [\fB\-\-cflags\fR] michael@13: [\fB\-\-ldflags\fR] michael@13: [\fB\-\-libs\fR] michael@13: .SH "DESCRIPTION" michael@13: .IX Header "DESCRIPTION" michael@13: The \fBrpm-config\fR program is a little helper utility for easy michael@13: configuring and building applications based on the OpenPKG \s-1RPM\s0 library. michael@13: It can be used to query the C compiler and linker flags which are michael@13: required to correctly compile and link the application against the michael@13: \&\s-1RPM\s0 library. michael@13: .SH "OPTIONS" michael@13: .IX Header "OPTIONS" michael@13: \&\fBrpm-config\fR accepts the following options: michael@13: .IP "\fB\-\-help\fR" 4 michael@13: .IX Item "--help" michael@13: Prints the short usage information. michael@13: .IP "\fB\-\-version\fR" 4 michael@13: .IX Item "--version" michael@13: Prints the version number and date of the installed \s-1RPM\s0 library. michael@13: .IP "\fB\-\-cc\fR" 4 michael@13: .IX Item "--cc" michael@13: .PD 0 michael@13: .IP "\fB\-\-cppflags\fR" 4 michael@13: .IX Item "--cppflags" michael@13: .PD michael@13: Prints the C pre-processor flags (\f(CW\*(C`\-I\*(C'\fR) which are needed to compile the michael@13: RPM-based application. The output is usually added to the \f(CW\*(C`CPPFLAGS\*(C'\fR michael@13: variable of the applications \f(CW\*(C`Makefile\*(C'\fR. michael@13: .IP "\fB\-\-cflags\fR" 4 michael@13: .IX Item "--cflags" michael@13: Prints the C compiler flags which are needed to compile the RPM-based michael@13: application. The output is usually added to the \f(CW\*(C`CFLAGS\*(C'\fR variable of the michael@13: applications \f(CW\*(C`Makefile\*(C'\fR. michael@13: .IP "\fB\-\-ldflags\fR" 4 michael@13: .IX Item "--ldflags" michael@13: Prints the linker flags (\f(CW\*(C`\-L\*(C'\fR) which are needed to link the application with michael@13: the \s-1RPM\s0 library. The output is usually added to the \f(CW\*(C`LDFLAGS\*(C'\fR variable of michael@13: the applications \f(CW\*(C`Makefile\*(C'\fR. michael@13: .IP "\fB\-\-libs\fR" 4 michael@13: .IX Item "--libs" michael@13: Prints the library flags (\f(CW\*(C`\-l\*(C'\fR) which are needed to link the application with michael@13: the \s-1RPM\s0 library. The output is usually added to the \f(CW\*(C`LIBS\*(C'\fR variable of the michael@13: applications \f(CW\*(C`Makefile\*(C'\fR. michael@13: .SH "EXAMPLE" michael@13: .IX Header "EXAMPLE" michael@13: .Vb 5 michael@428: \& CC = \`rpm\-config \-\-cc\` michael@428: \& CPPFLAGS = \`rpm\-config \-\-cppflags\` michael@428: \& CFLAGS = \`rpm\-config \-\-cflags\` michael@428: \& LDFLAGS = \`rpm\-config \-\-ldflags\` michael@428: \& LIBS = \`rpm\-config \-\-libs\` michael@428: \& michael@13: \& all: foo michael@428: \& michael@13: \& foo: foo.o michael@428: \& $(CC) $(LDFLAGS) \-o foo foo.o $(LIBS) michael@428: \& michael@13: \& foo.o: foo.c michael@428: \& $(CC) $(CPPFLAGS) $(CFLAGS) \-o foo.o \-c foo.c michael@13: .Ve michael@13: .SH "SEE ALSO" michael@13: .IX Header "SEE ALSO" michael@13: \&\fIrpm\fR\|(1), \fIcc\fR\|(1). michael@13: .SH "AUTHOR" michael@13: .IX Header "AUTHOR" michael@13: .Vb 3 michael@13: \& Ralf S. Engelschall michael@13: \& rse@engelschall.com michael@13: \& www.engelschall.com michael@13: .Ve