diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-11-07 17:20:37 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2005-11-07 17:20:37 +0100 |
commit | d1d677615e12d759b6cdf7ce23a493bc055ef37f (patch) | |
tree | 4d8057d95746de6f409290486e37f96e4bec209d /win32/configure.mingw32 | |
parent | f7f3ada3350c2a0a99ed307350a230583802cfe0 (diff) |
Import win32 branch
Diffstat (limited to 'win32/configure.mingw32')
-rw-r--r-- | win32/configure.mingw32 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/win32/configure.mingw32 b/win32/configure.mingw32 new file mode 100644 index 00000000..678e9243 --- /dev/null +++ b/win32/configure.mingw32 @@ -0,0 +1,37 @@ +#!/bin/sh +DEPSDIR=$1 +export PKG_CONFIG_LIBDIR=$DEPSDIR/lib/pkgconfig +export PKG_CONFIG_OPTS=--define-variable=prefix=$DEPSDIR +export PKG_CONFIG="pkg-config $PKG_CONFIG_OPTS" + +cat<<EOF>config.h +/* BitlBee settings, generated by $0 + + Do *NOT* use any of these defines in your code without thinking twice, most + of them can/will be overridden at run-time */ +#define CPU "i386" +#define IPV6 +#define GLIB2 +#define ARCH "Windows" +EOF + +cat<<EOF>Makefile.settings +## BitlBee settings, generated by $0 +PREFIX= +BINDIR=\$(PREFIX)/sbin/ +ETCDIR=\$(PREFIX)/etc/bitlbee/ +MANDIR=\$(PREFIX)/share/man/ +DATADIR=\$(PREFIX)/share/bitlbee/ +CONFIG=\$(PREFIX)/lib/bitlbee/ +ARCH=Windows +CPU=i386 +OUTFILE=bitlbee.exe +STRIP=i586-mingw32msvc-strip + +DESTDIR= +LFLAGS=`$PKG_CONFIG --libs glib-2.0` -L$DEPSDIR/lib -lws2_32 -liconv +CFLAGS=`$PKG_CONFIG --cflags glib-2.0` -I$DEPSDIR/include -I`pwd` -I`pwd`/protocols +CC=i586-mingw32msvc-gcc +CXX=i586-mingw32msvc-g++ +LD=i586-mingw32msvc-ld +EOF |