Support for setting target-specific CC options via AC_SUBST (and make use
of it on the mingw32 front -- 'resist' the temptation to use GMP's config/
story for this.)
CC = gcc
LOCAL_CC = $(CC)
-CFLAGS = -O
+CFLAGS = @CFLAGS@
XCFLAGS =
AR = ar
AR_FLAGS = rc
# This file is a shell script fragment that supplies the information
# necessary for a configure script to process the program in
# this directory. For more information, look at ../configure.
+AC_INIT(Makefile.in)
configdirs="mpn mpz mpf mpq mpbsd"
srctrigger=gmp-impl.h
srcname="GNU Multi-Precision library"
-# per-host:
+CFLAGS="-O"
# per-target:
;;
*-*-linux*)
target_makefile_frag=config/mt-linux ;;
-
+ *-*-mingw32)
+ CFLAGS="-mno-cygwin -O"
+ ;;
esac
+
+AC_SUBST(CFLAGS)
+AC_OUTPUT(Makefile)