summaryrefslogtreecommitdiffhomepage
path: root/config.default.mak
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-01-13 19:39:31 +0100
committerMatthias Braun <matze@braunis.de>2014-01-13 19:39:31 +0100
commitd0c808da6ac24962766f8c0a4908461ce62740b8 (patch)
treef932a664c2fa93124f2e4aec1c4425ce1846aef4 /config.default.mak
parent82e02dbc670261bff292a106852c6c5b97e6bc6a (diff)
add missing file
Diffstat (limited to 'config.default.mak')
-rw-r--r--config.default.mak32
1 files changed, 32 insertions, 0 deletions
diff --git a/config.default.mak b/config.default.mak
new file mode 100644
index 0000000..512447a
--- /dev/null
+++ b/config.default.mak
@@ -0,0 +1,32 @@
+# Use libfirm subdir if it exists, otherwise use pkg-config
+ifneq ("$(wildcard $(top_srcdir)/libfirm)", "")
+FIRM_HOME ?= $(top_srcdir)/libfirm
+FIRM_CPPFLAGS ?= -I$(FIRM_HOME)/include -I$(FIRM_HOME)/build/gen/include/libfirm
+FIRM_LIBS ?= -lm
+LIBFIRM_FILE_BASE ?= build/$(variant)/libfirm.a
+LIBFIRM_FILE ?= $(FIRM_HOME)/$(LIBFIRM_FILE_BASE)
+else
+FIRM_CPPFLAGS ?= `pkg-config --cflags libfirm`
+FIRM_LIBS ?= `pkg-config --libs libfirm`
+LIBFIRM_FILE =
+endif
+
+# location of the system/libc headers
+SYSTEM_INCLUDE_DIR ?= -DSYSTEM_INCLUDE_DIR=\"/usr/include\"
+# location of additional headers (may be undefined)
+LOCAL_INCLUDE_DIR ?= -DLOCAL_INCLUDE_DIR=\"/usr/local/include\"
+# location of the compiler provided headers
+COMPILER_INCLUDE_DIR ?= -DCOMPILER_INCLUDE_DIR=\"$(abspath $(srcdir))/include\"
+# if APPEND_MULTILIB_DIRS is defined, then we append a directory with the
+# machine triple to the system and local directory. i.e. if the target triple
+# is i386-linux-gnu we append $SYSTEM_INCLUDE_DIR/i386-linux-gnu and
+# $LOCAL_INCLUDE_DIR/i386-linux-gnu
+MULTILIB_INCLUDE_DIR ?= -DAPPEND_MULTILIB_DIRS
+# hardcoded machine triple for multiarch dir when just -m32 is given
+# (may be empty)
+MULTILIB_M32_TRIPLE ?= -DMULTILIB_M32_TRIPLE=\"i386-linux-gnu\"
+# hardcoded machine triple for multiarch dir when just -m64 is given
+# (may be empty)
+MULTILIB_M64_TRIPLE ?= -DMULTILIB_M64_TRIPLE=\"x86_64-linux-gnu\"
+# hardcoded machine triple for the host machine (may be undefined)
+HOST_TRIPLE ?=