--- makefile	2011-08-04 14:19:01.000000000 +0200
+++ makefile	2011-09-12 20:51:17.000000000 +0200
@@ -1,3 +1,4 @@
+include flags
 # Makefile for compiling, testing, and installing Mathomatic.
 # Requires the GNU make utility, in BSD Unix this is called "gmake".
 # Remove the -DUNIX define in CFLAGS when not using Mathomatic for desktop UNIX/Linux.
@@ -17,19 +18,15 @@
 # This makefile does create and install most of the Mathomatic documentation.
 
 SHELL		= /bin/sh # from "http://www.gnu.org/prep/standards/", do not change
-CC		?= gcc # C compiler to use; this statement doesn't work usually, instead using cc.
 M4		?= m4 # Change this to gm4 in Unix or a non-GNU system.
 INSTALL		?= install # installer utility to use
 INSTALL_PROGRAM	?= $(INSTALL) -Cv # command to install executable program files; compare to see any differences, first.
 INSTALL_DATA	?= $(INSTALL) -m 0644 # command to install data files
 
-CC_OPTIMIZE	?= -O3 # Default C compiler optimization flags that are safe.
 # Be sure and run tests to see if Mathomatic works and runs faster, if you uncomment the following line:
 #CC_OPTIMIZE	+= -fno-signaling-nans -fno-trapping-math -fomit-frame-pointer # Possible additional optimizations, not tested.
 
 VERSION		= `cat VERSION`
-OPTFLAGS	?= $(CC_OPTIMIZE) -Wall -Wshadow -Wno-char-subscripts # optional gcc specific flags
-CFLAGS		?= $(OPTFLAGS)
 CFLAGS		+= -DUNIX -DVERSION=\"$(VERSION)\"
 LDLIBS		+= -lm # libraries to link with to create the Mathomatic executable
 
