Index: ossp-pkg/val/Makefile.in RCS File: /v/ossp/cvs/ossp-pkg/val/Makefile.in,v rcsdiff -q -kk '-r1.4' '-r1.5' -u '/v/ossp/cvs/ossp-pkg/val/Makefile.in,v' 2>/dev/null --- Makefile.in 2002/03/13 18:35:58 1.4 +++ Makefile.in 2002/03/15 11:32:59 1.5 @@ -55,10 +55,22 @@ TST_NAME = val_test TST_OBJS = val_test.o +MAN_NAME = val-config.1 val.3 + +# helper macro for generating a Unix manual page +_MANPAGE = \ + V1=`$(SHTOOL) version -ltxt -dshort VERSION`; \ + V2=`$(SHTOOL) version -ltxt -dlong VERSION`; \ + D=`$(SHTOOL) version -ltxt -dlong VERSION |\ + sed -e 's;.*(;;' -e 's;).*;;'`; \ + $(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \ + --release="$$D" --date="$${NAME} $$V1" $(S)$${BASENAME}.pod |\ + sed -e "s;VAR_VERSION_STR;$$V2;" >$${BASENAME}.$${SEC} + .SUFFIXES: .SUFFIXES: .c .o .lo -all: $(LIB_NAME) $(TST_NAME) +all: $(LIB_NAME) $(TST_NAME) $(MAN_NAME) .c.o: $(CC) $(CPPFLAGS) $(CFLAGS) -c $< @@ -76,6 +88,15 @@ $(TST_NAME): $(TST_OBJS) $(LIB_NAME) @$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(TST_NAME) $(TST_OBJS) $(LIB_NAME) $(LIBS) +val-config.1: val-config.pod VERSION + BASENAME="val-config"; SEC=1; \ + NAME="VAL"; ONELINE="Value Access"; \ + $(_MANPAGE) +val.3: val.pod VERSION + BASENAME="val"; SEC=3; \ + NAME="VAL"; ONELINE="Value Access"; \ + $(_MANPAGE) + check: $(TST_NAME) @$(LIBTOOL) --mode=execute ./$(TST_NAME) @@ -84,14 +105,22 @@ $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir) $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir) + $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man1 + $(SHTOOL) mkdir -p -f -m 755 $(DESTDIR)$(mandir)/man3 $(SHTOOL) install -c -m 755 val-config $(DESTDIR)$(bindir)/ $(SHTOOL) install -c -m 644 val.h $(DESTDIR)$(includedir)/ @$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libval.la $(DESTDIR)$(libdir)/ + $(SHTOOL) install -c -m 644 var-config.1 $(DESTDIR)$(mandir)/man1/ + $(SHTOOL) install -c -m 644 var.3 $(DESTDIR)$(mandir)/man3/ uninstall: + -$(RM) $(DESTDIR)$(mandir)/man1/val-config.1 + -$(RM) $(DESTDIR)$(mandir)/man3/val.3 @$(LIBTOOL) --mode=uninstall $(RM) $(DESTDIR)$(libdir)/libval.la -$(RM) $(DESTDIR)$(includedir)/val.h -$(RM) $(DESTDIR)$(bindir)/val-config + -$(RMDIR) $(DESTDIR)$(mandir)/man3 >/dev/null 2>&1 || $(TRUE) + -$(RMDIR) $(DESTDIR)$(mandir)/man1 >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(libdir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(includedir) >/dev/null 2>&1 || $(TRUE) -$(RMDIR) $(DESTDIR)$(bindir) >/dev/null 2>&1 || $(TRUE) @@ -112,4 +141,5 @@ -$(RM) configure config.h.in -$(RM) shtool -$(RM) ltmain.sh libtool.m4 config.guess config.sub + -$(RM) val-config.1 val.3 Index: ossp-pkg/val/devtool.conf RCS File: /v/ossp/cvs/ossp-pkg/val/devtool.conf,v rcsdiff -q -kk '-r1.5' '-r1.6' -u '/v/ossp/cvs/ossp-pkg/val/devtool.conf,v' 2>/dev/null --- devtool.conf 2002/03/13 18:19:38 1.5 +++ devtool.conf 2002/03/15 11:32:59 1.6 @@ -31,5 +31,5 @@ ./shtool fixperm -v . V=`./shtool version -l txt -d short VERSION` ./shtool tarball -o val-${V}.tar.gz -d val-${V} -u ossp -g ossp \ - -e 'CVS,\.cvsignore,\.[ao],^\.,devtool.conf' -c 'gzip --best' . + -e 'CVS,\.cvsignore,\.[ao],^\.,devtool*' -c 'gzip --best' . Index: ossp-pkg/val/val-config.pod RCS File: /v/ossp/cvs/ossp-pkg/val/val-config.pod,v co -q -kk -p'1.1' '/v/ossp/cvs/ossp-pkg/val/val-config.pod,v' | diff -u /dev/null - -L'ossp-pkg/val/val-config.pod' 2>/dev/null --- ossp-pkg/val/val-config.pod +++ - 2024-05-17 20:16:48.383411075 +0200 @@ -0,0 +1,168 @@ +## +## OSSP val -- Value Access +## Copyright (c) 2001-2002 Ralf S. Engelschall +## Copyright (c) 2001-2002 The OSSP Project (http://www.ossp.org/) +## Copyright (c) 2001-2002 Cable & Wireless Deutschland (http://www.cw.com/de/) +## +## This file is part of OSSP val, a value access +## library which can be found at http://www.ossp.org/pkg/lib/val/. +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## +## val-config.pod: library build utility manual page +## + +=pod + +=head1 NAME + +B - OSSP val build utility + +=head1 VERSION + +OSSP val VAL_VERSION_STR + +=head1 SYNOPSIS + +B +[B<--help>] +[B<--version>] +[B<--all>] +[B<--prefix>] +[B<--exec-prefix>] +[B<--bindir>] +[B<--libdir>] +[B<--includedir>] +[B<--mandir>] +[B<--datadir>] +[B<--acdir>] +[B<--cflags>] +[B<--ldflags>] +[B<--libs>] +[B<--libs++>] + +=head1 DESCRIPTION + +The B program is a little helper utility for easy configuring and +building applications based on the val(3) library. It can be used to query the +C compiler and linker flags which are required to correctly compile and link +the application against the val(3) library. + +=head1 OPTIONS + +B accepts the following options: + +=over 4 + +=item B<--help> + +Prints the short usage information. + +=item B<--version> + +Prints the version number and date of the installed val(3) library. + +=item B<--all> + +Forces the output of all flags, that is, including extra flags which are not +B specific. + +=item B<--prefix> + +Prints the installation prefix of architecture independent files + +=item B<--exec-prefix> + +Prints the installation prefix of architecture dependent files. + +=item B<--bindir> + +Prints the installation directory of binaries. + +=item B<--libdir> + +Prints the installation directory of libraries. + +=item B<--includedir> + +Prints the installation directory of include headers. + +=item B<--mandir> + +Prints the installation directory of manual pages. + +=item B<--datadir> + +Prints the installation directory of shared data. + +=item B<--acdir> + +Prints the installation directory of B data. + +=item B<--cflags> + +Prints the C compiler flags which are needed to compile the val(3)-based +application. The output is usually added to the C variable of the +applications C. + +=item B<--ldflags> + +Prints the linker flags (C<-L>) which are needed to link the application with +the val(3) library. The output is usually added to the C variable of +the applications C. + +=item B<--libs> + +Prints the library flags (C<-l>) which are needed to link the application with +the C val(3) library. The output is usually added to the C variable of the +applications C. + +=item B<--libs++> + +Prints the library flags (C<-l>) which are needed to link the +application with the C++ val(3) library. The output is usually added to +the C variable of the applications C. + +=back + +=head1 EXAMPLE + + CC = cc + CFLAGS = -O `val-config --cflags` + LDFLAGS = `val-config --ldflags` + LIBS = -lm `val-config --libs` + + all: foo + foo: foo.o + $(CC) $(LDFLAGS) -o foo foo.o $(LIBS) + foo.o: foo.c + $(CC) $(CFLAGS) -c foo.c + +=head1 SEE ALSO + +val(3), cc(1). + +=head1 AUTHOR + + Ralf S. Engelschall + rse@engelschall.com + www.engelschall.com + +=cut +