gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: gnokii/win32/mingw-cross mingw-cross.sh,NONE,1.1


From: BORBELY Zoltan <address@hidden>
Subject: CVS: gnokii/win32/mingw-cross mingw-cross.sh,NONE,1.1
Date: Sun, 14 Sep 2003 08:02:21 -0400

Update of /cvsroot/gnokii/gnokii/win32/mingw-cross
In directory subversions:/tmp/cvs-serv25065/win32/mingw-cross

Added Files:
        mingw-cross.sh 
Log Message:
mingw cross compilation support


--- NEW FILE ---
#!/bin/sh

##### config begin #####
MINGW_PREFIX=mingw-
LEX=flex
MAKE=make
SECURITY='SECURITY'
NO_SHARED=
##### config end #######

CC="$MINGW_PREFIX"gcc
AR="$MINGW_PREFIX"ar
RANLIB="$MINGW_PREFIX"ranlib
VERSION=`cat VERSION`
confsubst=config.cache

cat <<EOF >$confsubst
address@hidden@%$VERSION%g
address@hidden@%/bin/sh%g
address@hidden@%rm%g
address@hidden@%find%g
address@hidden@%$MAKE%g
address@hidden@%$CC%g
address@hidden@%-Wall -g%g
address@hidden@%%g
address@hidden@%$AR%g
address@hidden@%$RANLIB%g
address@hidden@%%g
address@hidden@%$LEX%g
address@hidden@%1%g
address@hidden@%$NO_SHARED%g
address@hidden@%1%g
address@hidden@%1%g
address@hidden@%no%g
address@hidden@%%g
address@hidden@%%g
address@hidden@%%g
EOF
sed -f $confsubst <Makefile.global.in > Makefile.global

cat <<EOF >$confsubst
s%#undef VERSION%#define VERSION "$VERSION"%g
s%#undef const%#define const const%g
EOF
for i in $SECURITY WIN32 \
        HAVE_ALLOCA HAVE_ALLOCA_H \
        HAVE_CTYPE_H HAVE_FCNTL_H HAVE_INTTYPES_H HAVE_LIMITS_H HAVE_MALLOC_H \
        HAVE_MEMORY_H HAVE_STDARG_H HAVE_STDDEF_H HAVE_STDINT_H HAVE_STDLIB_H \
        HAVE_STRING_H HAVE_SYS_FILE_H HAVE_SYS_PARAM_H HAVE_SYS_STAT_H \
        HAVE_SYS_TIME_H HAVE_SYS_TYPES_H \
        HAVE_LONG_LONG HAVE_LONG_DOUBLE HAVE_INTTYPES_H_WITH_UINTMAX \
        HAVE_UNSIGNED_LONG_LONG \
        HAVE_SNPRINTF HAVE_VSNPRINTF HAVE_GETCWD HAVE_MEMCPY HAVE_MKTIME \
        HAVE_PUTENV HAVE_STRCASECMP HAVE_STRDUP HAVE_STRFTIME HAVE_STRSTR \
        HAVE_STRTOK HAVE_STRTOL HAVE_STRTOUL
do
    echo "s%^#undef $i$%#define $i 1%g"
done >>$confsubst
sed -f $confsubst <include/config.h.in >include/config.h

rm $confsubst





reply via email to

[Prev in Thread] Current Thread [Next in Thread]