Commit 0f73b43e authored by Matthias Braun's avatar Matthias Braun
Browse files

do not include config.h anymore

It has been empty for nearly all systems. People who used to put stuff
in config.h can still create a config.h on their own and inject
-include (gcc) or /FI (msvc) into their CPPFLAGS.
parent 330c5b95
......@@ -61,12 +61,6 @@ all: firm
%.h:
@:
# A very naive way to create a config.h if it is missing
$(srcdir)config.h:
@echo MakeConfig $@
$(Q)rm -f $@
$(Q)touch $@
# libFirm
libfirm_SOURCES = $(wildcard ir/*/*.c)
libfirm_DIRS = $(sort $(dir $(libfirm_SOURCES)))
......@@ -162,7 +156,7 @@ UNUSED := $(shell mkdir -p $(libfirm_DIRS:%=$(builddir)/%))
QUICKCHECK ?= $(shell which cparser-beta || echo true) -fsyntax-only
QUICKCHECK_FLAGS ?= -Wno-shadow -Wno-shadow-local
$(builddir)/%.o: %.c $(IR_SPEC_GENERATED_FILES) config.h
$(builddir)/%.o: %.c $(IR_SPEC_GENERATED_FILES)
@echo CC $@
$(Q)$(QUICKCHECK) $(CFLAGS) $(CPPFLAGS) $(libfirm_CPPFLAGS) $(QUICKCHECK_FLAGS) $<
$(Q)$(CC) $(CFLAGS) $(CPPFLAGS) $(libfirm_CPPFLAGS) -MMD -c -o $@ $<
......
......@@ -48,6 +48,7 @@ AC_SUBST([LIBTOOL_DEPS])
dnl generate the config header file
AC_CONFIG_HEADER([config.h])
CPPFLAGS=$CPPFLAGS" -include config.h"
AC_DEFINE([FIRM_BUILD], [], [Defined when firm library is built])
AC_DEFINE([FIRM_DLL], [], [Define when a dynamically loadable shared library is built])
......
......@@ -8,9 +8,6 @@
* @brief Array --- dynamic & flexible arrays.
* @author Markus Armbruster
*/
#include "config.h"
#include <stdlib.h>
#include "array_t.h"
......
......@@ -8,8 +8,6 @@
* @brief Specialized implementation for perfect bipartite matching.
* @author Sebastian Hack
*/
#include "config.h"
#include <stdio.h>
#include <assert.h>
......
......@@ -11,8 +11,6 @@
* This implements a set of pointers which allows to specify custom callbacks
* for comparing and hashing its elements.
*/
#include "config.h"
#include "cpset.h"
#define HashSet cpset_t
......
......@@ -32,8 +32,6 @@
/* returns 0 if successful */
/* returns -1 if ill-conditioned matrix */
/*------------------------------------------------------*/
#include "config.h"
#include <math.h>
#include <stdlib.h>
#include "xmalloc.h"
......
#include "config.h"
#include <assert.h>
#include <math.h>
#include <string.h>
......
......@@ -28,8 +28,6 @@
* @file
* @brief Solving the Minimum Assignment Problem using the Hungarian Method.
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
......
......@@ -9,8 +9,6 @@
* @author Christian von Roques
* @date 1999 by getting from fiasco
*/
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -9,8 +9,6 @@
* @author Hubert Schmid
* @date 09.06.2002
*/
#include "config.h"
#include "pmap.h"
#include "set.h"
#include "hashptr.h"
......
......@@ -8,8 +8,6 @@
* @author Christian Wuerdig, Matthias Braun
* @brief Priority Queue implementation based on the heap datastructure
*/
#include "config.h"
#include "array.h"
#include "pqueue.h"
#include "error.h"
......
......@@ -8,8 +8,6 @@
* @brief implementation of pset_new
* @author Matthias Braun
*/
#include "config.h"
#include "pset_new.h"
/** probing method: quadratic probing */
......
......@@ -28,8 +28,6 @@
TODO: Fix Esmond's ugly MixedCapsIdentifiers ;->
*/
#include "config.h"
#ifdef PSET
# define SET pset
# define PMANGLE(pre) pre##_pset
......
......@@ -8,8 +8,6 @@
* @brief implementation of xmalloc & friends
* @author Markus Armbruster
*/
#include "config.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
......
......@@ -11,8 +11,6 @@
*
* Abstract graph implementations for the CFG of a ir_graph.
*/
#include <config.h>
#include "irgraph_t.h"
#include "iredges_t.h"
#include "absgraph.h"
......
......@@ -8,8 +8,6 @@
* @brief read/write analyze of graph argument, which have mode reference.
* @author Beyhan Veliev
*/
#include "config.h"
#include <stdlib.h>
#include "irouts.h"
......
......@@ -9,8 +9,6 @@
* @author Goetz Lindenmaier
* @date 21.7.2004
*/
#include "config.h"
#include <stdlib.h>
#include "callgraph.h"
......
......@@ -16,8 +16,6 @@
* methods that are 'free', i.e., their adress is handled by
* the program directly, or they are visible external.
*/
#include "config.h"
#include "cgana.h"
#include "xmalloc.h"
#include "irnode_t.h"
......
......@@ -8,8 +8,6 @@
* @brief Data-flow driven minimal fixpoint value range analysis
* @author Christoph Mallon
*/
#include "config.h"
#include <assert.h>
#include <stdbool.h>
......
......@@ -19,8 +19,6 @@
* There is a commented-out walker at the end of this file that might
* be useful when revising this code.
*/
#include "config.h"
#include "debug.h"
#include "tv.h"
#include "irtypes.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment