summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorMichael Brown2005-03-08 19:53:11 +0100
committerMichael Brown2005-03-08 19:53:11 +0100
commit3d6123e69ab879c72ff489afc5bf93ef0b7a94ce (patch)
tree9f3277569153a550fa8d81ebd61bd88f266eb8da /src/Makefile
downloadipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.gz
ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.tar.xz
ipxe-3d6123e69ab879c72ff489afc5bf93ef0b7a94ce.zip
Initial revision
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 00000000..afb1618e
--- /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