summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d03990e..6b88f2d 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,20 @@
-CC=i686-elf-gcc
INCLUDE?=-Iinclude
CFLAGS?=-O2 -ffreestanding -std=gnu11
LDFLAGS?=-nostdlib
LIBS?=-lgcc
+ARCH?=i386
# -- Do not edit below this line --
+CC:=i686-elf-gcc
VERSION:="$(shell git describe --abbrev=4 --dirty --always --tags)"
INCLUDE:=$(INCLUDE)
CFLAGS:=$(CFLAGS) -Wall -Wextra -DVERSION=\"$(VERSION)\" -ggdb
LDFLAGS:=$(LDFLAGS)
LIBS:=$(LIBS)
+ARCH:=$(ARCH)
-ARCHDIR=arch/i386
+ARCHDIR=arch/$(ARCH)
include $(ARCHDIR)/make.config