summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 000000000..afb1618eb
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,15 @@
+# Override ARCH here or on the command line
+# ARCH=i386
+# Additionally you can supply extra compilation arguments, e.g. for x86_64
+# EXTRA_CFLAGS=-m32
+# EXTRA_ASFLAGS=--32
+# EXTRA_LDFLAGS=-m elf_i386
+ifndef ARCH
+ARCH:=$(shell uname -m | sed -e s,i[3456789]86,i386,)
+endif
+MAKEDEPS:=
+SUFFIXES:=
+
+include Config
+include arch/$(ARCH)/Config
+include Makefile.main