new build system

master
Marc Wäckerlin 16 years ago
parent db91ab65fe
commit 191d8cf5e5
  1. 56
      configure.in
  2. 21
      install-64-and-32-bit-linux.sh
  3. 11
      makefile.am
  4. 0
      proxyface/autoproxy.hxx
  5. 34
      proxyface/makefile.am
  6. 4
      proxyface/proxy.hxx
  7. 0
      proxyface/proxy.ui
  8. 18
      uninstall-64-and-32-bit-linux.sh
  9. BIN
      winhttp.a

@ -6,10 +6,64 @@ LEAST=0
AM_INIT_AUTOMAKE($PACKAGENAME, $MAJOR.$MINOR.$LEAST, [marc@waeckerlin.org])
AC_CONFIG_FILES([makefile proxyface/makefile])
# programs
AC_PROG_CXX
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
# libtool versioning
LIB_MAJOR=$(($MAJOR+$MINOR))
LIB_MINOR=$LEAST
LIB_LEAST=$MINOR
LIB_VERSION="${LIB_MAJOR}:${LIB_MINOR}:${LIB_LEAST}"
AC_SUBST(LIB_VERSION)
AC_SUBST(PACKAGENAME)
AC_SUBST(MAJOR)
AC_SUBST(MINOR)
AC_SUBST(LEAST)
AC_CONFIG_FILES([makefile])
case $host in
*mingw*|*win*)
PROXYLIB="-lwinhttp"
;;
*)
PROXYLIB="-lproxy"
;;
esac
AC_SUBST(PROXYLIB)
# Qt Environment
CPPFLAGS+=" -DUNICODE -DQT_NO_DEBUG"
CPPFLAGS+=" -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB"
AC_CHECK_HEADER(QtCore/QString, [found="yes"], [found="no"])
if test "$found" == "no"; then
AC_MSG_CHECKING([looking for qt headers])
for file in /usr/include/qt4 /usr/local/include/qt4 /opt/include/qt4 \
/opt/local/include/qt4 /usr/include /usr/local/include \
/opt/include /opt/local/include; do
if test -d ${file}/QtCore; then
CPPFLAGS+=" -I$file"
found=$file
break;
fi
done
AC_MSG_RESULT([$found])
fi
if test "$found" == "no"; then
AC_MSG_ERROR([Qt Headers not found])
fi
AC_CHECK_PROGS([MOC], [moc-qt4 moc-mac moc])
test -n "$MOC" || AC_MSG_ERROR([moc for Qt 4 not found!])
AC_SUBST(MOC)
AC_CHECK_PROGS([UIC], [uic-qt4 uic-mac uic])
test -n "$UIC" || AC_MSG_ERROR([uic for Qt 4 not found!])
AC_SUBST(UIC)
AC_OUTPUT

@ -0,0 +1,21 @@
./bootstrap.sh && \
LDFLAGS="-L/usr/lib32 -m32" CXXFLAGS="-m32" ./configure \
--libdir=/usr/local/lib32 \
--build=x86_64 \
--host=i386 && \
make && \
sudo make install && \
make clean && \
LDFLAGS="-L/opt/local/i586-mingw32msvc/lib" \
CPPFLAGS="-I/opt/local/i586-mingw32msvc/include" \
./configure \
--prefix=/opt/local/i586-mingw32msvc \
--build=x86_64 \
--host=i586-mingw32msvc && \
make && \
sudo make install && \
make clean && \
./configure && \
make check && \
sudo make install

@ -1,5 +1,8 @@
nobase_include_HEADERS = autoproxy.hxx proxyface/unix.hxx \
proxyface/windoze.hxx proxyface/gui/proxy.hxx
SUBDIRS = proxyface
MAINTAINERCLEANFILES = configure makefile.in ltmain.sh missing \
aclocal.m4 install-sh
maintainer-clean-local:
- find . -name '*~' | xargs rm
- rm -r autom4te.cache
- rm aclocal.m4 config.guess config.sub configure \
depcomp install-sh ltmain.sh makefile makefile.in \
missing mkinstalldirs

@ -0,0 +1,34 @@
UISOURCES = proxy.ui
MOCHEADER = proxy.hxx autoproxy.hxx
UIHEADER = ui_proxy.hxx
MOCSOURCES = moc_proxy.cxx moc_autoproxy.cxx
BUILT_SOURCES = ${UIHEADER} ${MOCSOURCES}
proxyfacedir = ${includedir}/proxyface
proxyface_HEADERS = autoproxy.hxx unix.hxx windoze.hxx \
${MOCHEADER} ${UIHEADER}
lib_LTLIBRARIES = libproxyface.la
libproxyface_la_SOURCES = ${MOCSOURCES}
libproxyface_la_LIBADD = ${PROXYLIB}
libproxyface_la_LDFLAGS = -version-info ${LIB_VERSION}
AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir}
moc_%.cxx: %.hxx
${MOC} ${CPPFLAGS} ${AM_CPPFLAGS} -o $@ $<
ui_%.hxx: %.ui
${UIC} -o $@ $<
CLEANFILES = ${UIHEADER} ${MOCSOURCES}
maintainer-clean-local:
- find . -name '*~' | xargs rm
- rm -r autom4te.cache
- rm aclocal.m4 config.guess config.sub configure \
depcomp install-sh ltmain.sh makefile makefile.in \
missing mkinstalldirs

@ -8,8 +8,8 @@
#ifndef PROXY_HXX
#define PROXY_HXX
#include <autoproxy.hxx>
#include <ui_proxy.h>
#include <proxyface/autoproxy.hxx>
#include <proxyface/ui_proxy.hxx>
#include <QtGui/QDialog>
#include <QtGui/QPushButton>
#include <QtNetwork/QNetworkProxy>

@ -0,0 +1,18 @@
./bootstrap.sh && \
LDFLAGS="-L/usr/lib32 -m32" CXXFLAGS="-m32" ./configure \
--libdir=/usr/local/lib32 \
--build=x86_64 \
--host=i386 && \
sudo make uninstall && \
make clean && \
LDFLAGS="-L/opt/local/i586-mingw32msvc/lib" \
CPPFLAGS="-I/opt/local/i586-mingw32msvc/include" \
./configure \
--prefix=/opt/local/i586-mingw32msvc \
--build=x86_64 \
--host=i586-mingw32msvc && \
sudo make uninstall && \
make clean && \
./configure && \
sudo make uninstall

Binary file not shown.
Loading…
Cancel
Save