OSSP CVS Repository

ossp - ossp-pkg/l2/Makefile.in 1.1.1.1
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/l2/Makefile.in 1.1.1.1
##
##  L2 - OSSP Logging Library
##  Copyright (c) 2001 The OSSP Project (http://www.ossp.org/)
##  Copyright (c) 2001 Cable & Wireless Deutschland (http://www.cw.com/de/)
##
##  This file is part of OSSP L2, a flexible logging library which
##  can be found at http://www.ossp.com/pkg/l2/.
##
##  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.
##
##  Makefile.in: Autoconf Makefile skeleton
##

@SET_MAKE@

TOP         = .
prefix      = @prefix@
exec_prefix = @exec_prefix@
bindir      = @bindir@
libdir      = @libdir@
includedir  = @includedir@
mandir      = @mandir@

CC          = @CC@
CXX         = @CXX@
CFLAGS      = @CFLAGS@ -I.
CXXFLAGS    = @CXXFLAGS@ -I.
LDFLAGS     = @LDFLAGS@ -L.
LIBS        = @LIBS@
AR          = @AR@
RANLIB      = @RANLIB@
RM          = rm -f
POD2MAN     = pod2man
SHTOOL      = ./shtool
LIBTOOL     = ./libtool

SRCS=\
l2_stream.c    \
l2_channel.c   \
l2_ch_fd.c     \
l2_ch_file.c   \
l2_ch_pipe.c   \
l2_ch_syslog.c \
l2_ch_socket.c \
l2_ch_null.c   \
l2_ch_filter.c \
l2_ch_prefix.c \
l2_ch_buffer.c

OBJS=\
l2_stream.lo    \
l2_channel.lo   \
l2_ch_fd.lo     \
l2_ch_file.lo   \
l2_ch_pipe.lo   \
l2_ch_syslog.lo \
l2_ch_socket.lo \
l2_ch_null.lo   \
l2_ch_filter.lo \
l2_ch_prefix.lo \
l2_ch_buffer.lo

_VERSION_FILE = \
	$(S)l2_version.c

_VERSION = \
	$(SHTOOL) version -lc -nL2 -pl2_ $$OPT $(_VERSION_FILE);\
	V=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE)`;\
	sed -e "s/Version .*(.*)/Version $$V/g" <README >README.n && mv README.n README

_MANPAGE = \
	V1=`$(SHTOOL) version -lc -dshort $(_VERSION_FILE)`; \
	V2=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE)`; \
	D=`$(SHTOOL) version -lc -dlong $(_VERSION_FILE) |\
	   sed -e 's;.*(;;' -e 's;).*;;'`; \
	$(POD2MAN) --section=$${SEC} --center="$${ONELINE}" \
	           --release="$$D" --date="$${NAME} $$V1" $(S)$${BASENAME}.pod |\
	sed -e "s;STR_VERSION_STR;$$V2;" >$${BASENAME}.$${SEC}

.SUFFIXES:
.SUFFIXES: .c .o .lo
.c.o:
	$(CC) -c $(CFLAGS) $<
.c.lo:
	$(LIBTOOL) --mode=compile --quiet $(CC) -c $(CFLAGS) $<

all: libl2.la l2_test l2.3 l2-config.1

libl2.la: $(OBJS) 
	$(LIBTOOL) --mode=link --quiet $(CC) -o libl2.la $(OBJS) -rpath $(libdir) \
	-version-info `$(SHTOOL) version -l c -d libtool l2_version.c`

l2_test: l2_test.o libl2.la
	$(LIBTOOL) --mode=link --quiet $(CC) $(LDFLAGS) -o l2_test l2_test.o libl2.la $(LIBS)

l2-config.1: l2-config.pod $(_VERSION_FILE)
	BASENAME="l2-config"; SEC=1; \
	NAME="L2"; ONELINE="Logging Library"; \
	$(_MANPAGE)
l2.3: l2.pod $(_VERSION_FILE)
	BASENAME="l2"; SEC=3; \
	NAME="L2"; ONELINE="Logging Library"; \
	$(_MANPAGE)

check: test
test: l2_test
	$(LIBTOOL) --mode=execute ./l2_test

install: all
	$(SHTOOL) mkdir -p -f -m 755 $(bindir)
	$(SHTOOL) mkdir -p -f -m 755 $(includedir)
	$(SHTOOL) mkdir -p -f -m 755 $(libdir)
	$(SHTOOL) mkdir -p -f -m 755 $(mandir)/man1
	$(SHTOOL) mkdir -p -f -m 755 $(mandir)/man3
	$(SHTOOL) install -c -m 755 l2-config $(bindir)/l2-config
	$(SHTOOL) install -c -m 644 l2-config.1 $(mandir)/man1/l2-config.1
	$(SHTOOL) install -c -m 644 l2.3 $(mandir)/man3/l2.3
	$(SHTOOL) install -c -m 644 l2.h $(includedir)/l2.h
	@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libl2.la $(libdir)/libl2.la

clean:
	$(RM) *.lo *.o
	$(RM) l2_test.o l2_test
	$(RM) libl2.la
	$(RM) -r .libs
	
distclean: clean
	$(RM) l2-config
	$(RM) l2_config.h
	$(RM) config.log config.cache config.status
	$(RM) libtool
	$(RM) Makefile

dist: distclean
	@$(SHTOOL) fixperm -v .; \
	V=`$(SHTOOL) version -l c -d short l2_version.c`; \
	$(SHTOOL) tarball -o l2-$${V}.tar.gz -d str-$${V} -u ossp -g ossp \
	                  -e 'CVS,\.cvsignore,\.[ao],^\.' -c 'gzip --best' .

#   increase or update version information
new-version:
	@V="$(VERSION)"; \
	if [ ".$$V" != . ]; then \
		OPT="-s$$V"; \
	else \
		OPT="-e"; \
	fi; \
	$(_VERSION)
update-version:
	@OPT="-s`$(SHTOOL) version -lc -dshort $(_VERSION_FILE)`" && $(_VERSION)

update:
	@$(RM) ltmain.sh ltconfig shtool
	@$(MAKE) $(MFLAGS) ltmain.sh ltconfig configure shtool
configure: configure.in aclocal.m4
	$(RM) configure
	autoconf
ltmain.sh:
	@F=`libtoolize -n -c -f | grep 'cp.*ltmain.sh' |\
	    sed -e 's;[^/]*;;' -e 's; .*;;'`; \
	echo "ltmain.sh <-- $$F"; cat $$F |\
	sed -e 's:/bin/sh; then:/bin/sh || test "$$nonopt" = ./shtool;then:' \
	    -e 's:exec \$$SHELL \$$0 --finish:exit 0 #:' >ltmain.sh
ltconfig:
	@F=`libtoolize -n -c -f | grep 'cp.*ltconfig' | sed -e 's;[^/]*;;' -e 's; .*;;'`; \
	echo "ltconfig <-- $$F"; cp $$F .
shtool:
	shtoolize -o shtool echo version mkdir install fixperm tarball

#   create dependencies
depend:
	cp Makefile.in Makefile.in.bak \
	&& sed -ne '1,/^# DO NOT REMOVE/p' Makefile.in > Makefile.new \
	&& $(CC) -MM $(CPPFLAGS) $(CFLAGS) *.c |\
	   sed -e 's/^\(pth_.*\)\.o:/\1.lo:/' >> Makefile.new \
	&& cp Makefile.new Makefile.in
	&& rm -f Makefile.new

##
##  ____ DEPENDENCY AREA ____________________________________________
##  (AUTOMATICALLY UPDATED - DO NOT EDIT)
##

$(LOBJS): Makefile

l2_ch_buffer.o: l2_ch_buffer.c l2.h l2_p.h
l2_ch_fd.o: l2_ch_fd.c l2.h l2_p.h
l2_ch_file.o: l2_ch_file.c l2.h l2_p.h
l2_ch_filter.o: l2_ch_filter.c l2.h l2_p.h
l2_ch_null.o: l2_ch_null.c l2.h l2_p.h
l2_ch_pipe.o: l2_ch_pipe.c l2.h l2_p.h
l2_ch_prefix.o: l2_ch_prefix.c l2.h l2_p.h
l2_ch_socket.o: l2_ch_socket.c l2.h l2_p.h
l2_ch_syslog.o: l2_ch_syslog.c l2.h l2_p.h
l2_channel.o: l2_channel.c l2.h l2_p.h
l2_stream.o: l2_stream.c l2.h l2_p.h
l2_test.o: l2_test.c l2.h
l2_version.o: l2_version.c l2_version.c

CVSTrac 2.0.1