summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-18 17:33:01 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-18 17:33:01 (EDT)
commitacd7b177d002f416e1ef337b4bc8ed2ed3e1a87f (patch)
tree06825475e1ade589553e3bd773f3bb9e02fab2d4
parentbe4e2f7f0fd05e8ef35dab3e23e99451401d6f23 (diff)
targets.d/*.mk: New makefile fragments
-rw-r--r--targets.d/amd64-linux-glibc.mk5
-rw-r--r--targets.d/i686-linux-glibc.mk5
-rw-r--r--targets.d/~none.mk2
3 files changed, 12 insertions, 0 deletions
diff --git a/targets.d/amd64-linux-glibc.mk b/targets.d/amd64-linux-glibc.mk
new file mode 100644
index 0000000..0bfed2a
--- /dev/null
+++ b/targets.d/amd64-linux-glibc.mk
@@ -0,0 +1,5 @@
+gcc_config_file = i386/linux64.h
+gcc_config_interp_macro = GLIBC_DYNAMIC_LINKER64
+gcc_config_fragment = i386/t-linux64
+gcc_config_fragment_script = s|\(m64=.*\):x86_64-linux-gnu|\1:amd64-linux-glibc|
+target_opts =
diff --git a/targets.d/i686-linux-glibc.mk b/targets.d/i686-linux-glibc.mk
new file mode 100644
index 0000000..44a3a47
--- /dev/null
+++ b/targets.d/i686-linux-glibc.mk
@@ -0,0 +1,5 @@
+gcc_config_file = i386/linux.h
+gcc_config_interp_macro = GLIBC_DYNAMIC_LINKER
+gcc_config_fragment = i386/t-linux
+gcc_config_fragment_script =
+target_opts = --with-arch=i686 --with-tune=i686
diff --git a/targets.d/~none.mk b/targets.d/~none.mk
new file mode 100644
index 0000000..92ae97f
--- /dev/null
+++ b/targets.d/~none.mk
@@ -0,0 +1,2 @@
+# The "target" macro in the "build" makefile is "~none" in the top-level make
+# process, so this blank makefile fragment will be read.