Permalink
Browse files

initial version of autotool-ized build system

  • Loading branch information...
1 parent df77e3e commit c4807e1f7be2626ad02fde35515ada4f8cdaaada @tony2001 tony2001 committed May 13, 2008
Showing with 7,165 additions and 428 deletions.
  1. +2 −0 Makefile.am
  2. +37 −0 build.mk
  3. +38 −0 buildconf.sh
  4. +0 −428 configure
  5. +187 −0 configure.in
  6. +9 −0 include/Makefile.am
  7. +6,871 −0 ltmain.sh
  8. +21 −0 src/Makefile.am
View
@@ -0,0 +1,2 @@
+AUTOMAKE_OPTIONS=foreign no-dependencies
+SUBDIRS=src include
View
@@ -0,0 +1,37 @@
+
+SUPPRESS_WARNINGS = 2>&1 | (egrep -v '(AC_TRY_RUN called without default to allow cross compiling|AC_PROG_CXXCPP was called before AC_PROG_CXX|defined in acinclude.m4 but never used|AC_PROG_LEX invoked multiple times|AC_DECL_YYTEXT is expanded from...|the top level)'||true)
+
+AUTOCONF ?= 'autoconf'
+ACLOCAL ?= 'aclocal'
+AUTOHEADER ?= 'autoheader'
+AUTOMAKE ?= 'automake'
+AUTOUPDATE ?= 'autoupdate'
+
+config_h_in = src/hpdf_config.h.in
+targets = $(config_h_in) configure makefiles
+
+all: $(targets)
+
+aclocal.m4:
+ $(ACLOCAL)
+
+$(config_h_in): configure
+ @echo rebuilding $@
+ @rm -f $@
+ $(AUTOHEADER) $(SUPPRESS_WARNINGS)
+
+configure: aclocal.m4 configure.in
+ @echo rebuilding $@
+ $(AUTOUPDATE)
+ $(AUTOCONF) $(SUPPRESS_WARNINGS)
+
+makefiles: configure Makefile.am src/Makefile.am
+ @echo rebuilding Makefile.in files
+ $(AUTOMAKE) --add-missing --copy
+
+cvsclean:
+ @rm -rf src/*.lo src/*.la src/*.o src/*.a src/.libs src/Makefile src/Makefile.in include/Makefile include/Makefile.in
+ rm -rf src/stamp-h1 src/test include/hpdf_config.h* include/stamp-h1
+ rm -rf aclocal.m4 autom4te.cache install.sh libtool Makefile Makefile.in 'configure.in~' missing config.h* configure
+ rm -f config.guess config.log config.status config.sub cscope.out install-sh
+
View
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+eval `grep '^HPDF_EXTRA_VERSION=' configure.in`
+case "$HPDF_EXTRA_VERSION" in
+ *-dev)
+ rebuildok=1
+ ;;
+ *)
+ rebuildok=0
+ ;;
+esac
+
+cvsclean=0
+
+while test $# -gt 0; do
+ if test "$1" = "--force"; then
+ rebuildok=1
+ echo "Forcing buildconf"
+ fi
+ if test "$1" = "--clean"; then
+ cvsclean=1
+ fi
+ shift
+done
+
+if test "$rebuildok" = "0"; then
+ echo "You should not run buildconf in a release package."
+ echo "use buildconf --force to override this check."
+ exit 1
+fi
+
+if test "$cvsclean" = "1"; then
+ echo "Cleaning autogenerated files"
+ ${MAKE:-make} -s -f build.mk cvsclean
+else
+ ${MAKE:-make} -s -f build.mk
+fi
+
Oops, something went wrong.

0 comments on commit c4807e1

Please sign in to comment.