2021-10-05 21:07:15 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Specifically for windows, where installing autoconf looks suspiciously
|
|
|
|
# like boiling the ocean.
|
|
|
|
|
2023-06-24 19:27:28 +02:00
|
|
|
cat <<EOF >include/config.h.in
|
|
|
|
// Created by hack fake autoconf for windows
|
|
|
|
// not actually a config input
|
|
|
|
EOF
|
|
|
|
|
|
|
|
cat <<EOF >configure
|
|
|
|
#!/bin/sh
|
|
|
|
echo Created by hack fake autoconf for windows
|
|
|
|
echo not a confgure script
|
|
|
|
exit 1
|
|
|
|
EOF
|
|
|
|
chmod a+x configure
|
|
|
|
|
2023-04-30 21:50:10 +02:00
|
|
|
cat >config.mak <<EOF
|
2023-06-25 10:42:39 +02:00
|
|
|
CONFIG_HOST=x86_64-w64-mingw32
|
2023-04-30 21:50:10 +02:00
|
|
|
CC=gcc
|
|
|
|
AR=ar
|
2023-06-22 11:57:14 +02:00
|
|
|
WINDRES=windres
|
2023-06-25 02:10:17 +02:00
|
|
|
CFLAGS=$CFLAGS -g -O2
|
|
|
|
LDFLAGS=$LDFLAGS
|
2023-05-06 02:22:16 +02:00
|
|
|
LDLIBS_EXTRA=$LDLIBS
|
2023-04-30 21:50:10 +02:00
|
|
|
EOF
|
2021-10-05 21:07:15 +02:00
|
|
|
|
2023-05-01 01:07:40 +02:00
|
|
|
cat >tools/config.mak <<EOF
|
|
|
|
TOOLS_ADDITIONAL=
|
|
|
|
EOF
|
2021-10-05 21:07:15 +02:00
|
|
|
|
|
|
|
cat <<EOF >include/config.h
|
|
|
|
#define PACKAGE_VERSION "FIXME"
|
2023-05-08 00:02:57 +02:00
|
|
|
#define PACKAGE_BUILDDATE "$(date)"
|
2021-10-05 21:07:15 +02:00
|
|
|
EOF
|