apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: apr-iconv/lib .cvsignore Makefile.in
Date Fri, 26 Sep 2003 07:10:36 GMT
jerenkrantz    2003/09/26 00:10:36

  Modified:    .        Tag: API_0_9_BRANCH Makefile.in buildconf
                        configure.in
               build    Tag: API_0_9_BRANCH .cvsignore
               lib      Tag: API_0_9_BRANCH .cvsignore Makefile.in
  Log:
  Take another pass at a build system and have it *really* use exports.
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.1   +13 -36    apr-iconv/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/apr-iconv/Makefile.in,v
  retrieving revision 1.5
  retrieving revision 1.5.2.1
  diff -u -u -r1.5 -r1.5.2.1
  --- Makefile.in	24 Apr 2003 08:08:31 -0000	1.5
  +++ Makefile.in	26 Sep 2003 07:10:36 -0000	1.5.2.1
  @@ -1,20 +1,19 @@
   #
   # Top-level Makefile for APRICONV
   #
  -abs_srcdir=@abs_srcdir@
  -abs_builddir=@abs_builddir@
  +abs_srcdir=@api_srcdir@
  +abs_builddir=@api_builddir@
   VPATH = @srcdir@
   
   # bring in rules.mk for standard functionality
   @INCLUDE_RULES@
   
  -SUBDIRS = lib ccs ces
  -CLEAN_SUBDIRS = . lib ccs ces
  +SUBDIRS = lib ccs ces util
  +CLEAN_SUBDIRS = . lib ccs ces util
   
  -TARGET_LIB = lib/libapriconv.la
  +TARGET_LIB = libapriconv.la
   
  -CLEAN_TARGETS = $(TARGET_EXPORTS)
  -DISTCLEAN_TARGETS = config.cache config.log config.status export_vars.sh
  +DISTCLEAN_TARGETS = config.cache config.log config.status
   EXTRACLEAN_TARGETS = configure libtool aclocal.m4
   
   ### install location
  @@ -26,26 +25,17 @@
   
   MKINSTALLDIRS=$(abs_srcdir)/build/mkdir.sh
   
  -delete-lib:
  -	@if test -f $(TARGET_LIB); then \
  -	    objects="`find $(SUBDIRS) -name '*.lo' -a -newer $(TARGET_LIB)`" ; \
  -	    if test -n "$$objects"; then \
  -		echo Found newer objects. Will relink $(TARGET_LIB). ; \
  -		echo $(RM) -f $(TARGET_LIB) ; \
  -		$(RM) -f $(TARGET_LIB) ; \
  -	    fi \
  -	fi
  -
  -install: $(TARGET_LIB)
  +install:
   	if [ ! -d $(includedir) ]; then \
   	    $(MKINSTALLDIRS) $(includedir); \
   	fi; \
  +	cp -p $(abs_srcdir)/include/*.h $(includedir); \
   	cp -p $(abs_srcdir)/lib/*.h $(includedir); \
   	cp -p $(abs_builddir)/lib/*.h $(includedir); \
   	if [ ! -d $(lib_prefix) ]; then \
   	    $(MKINSTALLDIRS) $(lib_prefix); \
  -	fi; \
  -	$(LIBTOOL) --mode=install cp $(TARGET_LIB) $(lib_prefix)
  +	fi;
  +	(cd lib; $(LIBTOOL) --mode=install cp $(TARGET_LIB) $(lib_prefix))
   	if [ ! -d $(libdir) ]; then \
   	    $(MKINSTALLDIRS) $(libdir); \
   	fi; \
  @@ -54,23 +44,10 @@
   	if [ ! -d $(exec_prefix) ]; then \
   	    $(MKINSTALLDIRS) $(exec_prefix); \
   	fi; \
  -	(cd util/.libs; $(LIBTOOL) --mode=install cp iconv $(exec_prefix))
  -
  -delete-exports:
  -	@if test -f $(TARGET_EXPORTS); then \
  -	    headers="`find lib/*.h -newer $(TARGET_EXPORTS)`" ; \
  -	    if test -n "$$headers"; then \
  -		echo Found newer headers. Will rebuild $(TARGET_EXPORTS). ; \
  -		echo $(RM) -f $(TARGET_EXPORTS) ; \
  -		$(RM) -f $(TARGET_EXPORTS) ; \
  -	    fi \
  -	fi
  -
  -$(TARGET_EXPORTS):
  -	$(AWK) -f @APR_SOURCE_DIR@/build/make_export.awk lib/*.h > $@ ;
  +	(cd util; $(LIBTOOL) --mode=install cp iconv $(exec_prefix))
   
   docs:
   	mkdir ./docs
  -	perl @APR_SOURCE_DIR@/build/scandoc.pl -i./build/default.pl -p./docs/ ./lib/*.h
  +	perl $(abs_srcdir)/build/scandoc.pl -i./build/default.pl -p./docs/ ./lib/*.h
   
  -.PHONY: delete-lib delete-exports
  +.PHONY: delete-lib
  
  
  
  1.2.2.1   +5 -2      apr-iconv/buildconf
  
  Index: buildconf
  ===================================================================
  RCS file: /home/cvs/apr-iconv/buildconf,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -u -r1.2 -r1.2.2.1
  --- buildconf	24 Apr 2003 08:08:31 -0000	1.2
  +++ buildconf	26 Sep 2003 07:10:36 -0000	1.2.2.1
  @@ -35,10 +35,13 @@
   
   # Remove some files, then copy them from apr source tree
   rm -f build/apr_common.m4 build/find_apr.m4 build/install.sh \
  -      build/config.guess build/config.sub build/mkdir.sh
  +      build/config.guess build/config.sub build/mkdir.sh \
  +      build/make_exports.awk build/make_var_export.awk
   cp $apr_src_dir/build/apr_common.m4 $apr_src_dir/build/find_apr.m4 \
      $apr_src_dir/build/install.sh $apr_src_dir/build/config.guess  \
  -   $apr_src_dir/build/config.sub $apr_src_dir/build/mkdir.sh build
  +   $apr_src_dir/build/config.sub $apr_src_dir/build/mkdir.sh \
  +   $apr_src_dir/build/make_exports.awk $apr_src_dir/build/make_var_export.awk \
  +   build
   
   # Remove aclocal.m4 as it'll break some builds...
   rm -rf aclocal.m4 autom4te*.cache
  
  
  
  1.7.2.1   +13 -15    apr-iconv/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/apr-iconv/configure.in,v
  retrieving revision 1.7
  retrieving revision 1.7.2.1
  diff -u -u -r1.7 -r1.7.2.1
  --- configure.in	24 Apr 2003 08:08:31 -0000	1.7
  +++ configure.in	26 Sep 2003 07:10:36 -0000	1.7.2.1
  @@ -17,15 +17,13 @@
   AC_PROG_AWK
   
   dnl compute the top directory of the build
  -abs_srcdir=`(cd $srcdir && pwd)`
  -abs_builddir=`pwd`
  -top_builddir="$abs_builddir"
  -
  -AC_SUBST(abs_srcdir)
  -AC_SUBST(abs_builddir)
  -AC_SUBST(top_builddir)
  +# Absolute source/build directory
  +api_srcdir=`(cd $srcdir && pwd)`
  +api_builddir=`pwd`
  +AC_SUBST(api_srcdir)
  +AC_SUBST(api_builddir)
   
  -if test "$abs_builddir" != "$abs_srcdir"; then
  +if test "$api_builddir" != "$api_srcdir"; then
     USE_VPATH=1
   fi
   
  @@ -33,17 +31,17 @@
   API_FIND_APR
   
   dnl copy apr's rules.mk into our build directory.
  -if test ! -d $abs_builddir/build ; then
  -  mkdir $abs_builddir/build
  +if test ! -d $api_builddir/build ; then
  +  mkdir $api_builddir/build
   fi
  -cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk
  +dnl cp $APR_BUILD_DIR/apr_rules.mk $api_builddir/build/rules.mk
   
   dnl
   dnl set up the compilation flags and stuff
   dnl
  -API_INCLUDES="-I$abs_builddir/lib -I$abs_builddir/include"
  +API_INCLUDES="-I$api_builddir/lib -I$api_builddir/include"
   if test -n "$USE_VPATH"; then
  -  API_INCLUDES="$API_INCLUDES -I$abs_srcdir/lib -I$abs_srcdir/include"
  +  API_INCLUDES="$API_INCLUDES -I$api_srcdir/lib -I$api_srcdir/include"
   fi
   
   AC_SUBST(API_INCLUDES)
  @@ -61,10 +59,10 @@
   dnl
   case "$host_alias" in
   *bsdi*)
  -    INCLUDE_RULES=".include \"$abs_builddir/build/rules.mk\""
  +    INCLUDE_RULES=".include \"$api_builddir/build/rules.mk\""
       ;;
   *)
  -    INCLUDE_RULES="include $abs_builddir/build/rules.mk"
  +    INCLUDE_RULES="include $api_builddir/build/rules.mk"
       ;;
   esac
   AC_SUBST(INCLUDE_RULES)
  
  
  
  No                   revision
  No                   revision
  1.2.2.1   +2 -0      apr-iconv/build/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  RCS file: /home/cvs/apr-iconv/build/.cvsignore,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -u -r1.2 -r1.2.2.1
  --- .cvsignore	24 Apr 2003 08:08:31 -0000	1.2
  +++ .cvsignore	26 Sep 2003 07:10:36 -0000	1.2.2.1
  @@ -4,3 +4,5 @@
   find_apr.m4
   install.sh
   mkdir.sh
  +make_exports.awk
  +make_var_export.awk
  
  
  
  No                   revision
  No                   revision
  1.1.2.1   +1 -0      apr-iconv/lib/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  RCS file: /home/cvs/apr-iconv/lib/.cvsignore,v
  retrieving revision 1.1
  retrieving revision 1.1.2.1
  diff -u -u -r1.1 -r1.1.2.1
  --- .cvsignore	22 May 2001 13:45:35 -0000	1.1
  +++ .cvsignore	26 Sep 2003 07:10:36 -0000	1.1.2.1
  @@ -3,5 +3,6 @@
   *.lo
   *.slo
   apriconv.exports
  +exports.c
   apr_iconv_private.h.in
   apr_iconv_private.h
  
  
  
  1.3.2.1   +26 -1     apr-iconv/lib/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  RCS file: /home/cvs/apr-iconv/lib/Makefile.in,v
  retrieving revision 1.3
  retrieving revision 1.3.2.1
  diff -u -u -r1.3 -r1.3.2.1
  --- Makefile.in	24 Apr 2003 08:08:32 -0000	1.3
  +++ Makefile.in	26 Sep 2003 07:10:36 -0000	1.3.2.1
  @@ -1,14 +1,26 @@
   # Generated automatically from Makefile.in by configure.
  +abs_srcdir=@api_srcdir@
  +abs_builddir=@api_builddir@
   VPATH = @srcdir@
   
  +prefix=@prefix@
  +exec_prefix=@exec_prefix@
  +libdir=@libdir@
  +
   INCLUDES = @API_INCLUDES@ @APR_INCLUDES@
   
   TARGET_LIB = libapriconv.la
   SUBDIRS = .
   
  +EXPORT_FILES = $(abs_srcdir)/include/*.h $(abs_srcdir)/lib/*.h
  +TARGET_EXPORTS = apriconv.exports
  +
  +CLEAN_TARGETS = exports.c
  +
   # May need to do something for apriconv.exports
   TARGETS = iconv_module.lo iconv.lo iconv_int.lo iconv_uc.lo \
  -	iconv_ces.lo iconv_ces_euc.lo iconv_ces_iso2022.lo $(TARGET_LIB)
  +	iconv_ces.lo iconv_ces_euc.lo iconv_ces_iso2022.lo api_version.lo \
  +	exports.lo $(TARGET_LIB)
   
   #OBJECTS=
   
  @@ -20,3 +32,16 @@
   	tmpcmd="$(LINK) @APR_LIB_TARGET@"; \
   	echo $$tmpcmd; \
   	$$tmpcmd && touch $@
  +
  +exports.c:
  +	$(AWK) -f $(abs_srcdir)/build/make_exports.awk $(EXPORT_FILES) > $@
  +
  +export_vars.h:
  +	$(AWK) -f $(abs_srcdir)/build/make_var_export.awk $(EXPORT_FILES) > $@
  +
  +$(TARGET_EXPORTS): exports.c export_vars.h
  +	@echo "#! lib@APR_LIBNAME@.so" > $@
  +	@echo "* This file was AUTOGENERATED at build time." >> $@
  +	@echo "* Please do not edit by hand." >> $@
  +	$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) exports.c | grep "ap_hack_" | sed -e 's/^.*[)]\(.*\);$$/\1/'
>> $@
  +	$(CPP) $(ALL_CPPFLAGS) $(ALL_INCLUDES) export_vars.h | sed -e 's/^\#[^!]*//' | sed -e
'/^$$/d' >> $@
  
  
  

Mime
View raw message