summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-10-29 12:15:35 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-10-29 12:15:35 +0100
commitbc1d737e80aeb09577ec936509da7241e245b173 (patch)
tree516e1ff98e1ae655b4df4f4d42418cea678ba5d4
parent9b5760aa26108d5dd8ef6a4defadeeba0efc9630 (diff)
kfs: updated Makefile
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 66da24e..6cf0bc5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,16 @@
NAME = kfs
SRC = $(wildcard src/*.c src/crt0.S)
-LDSCRIPT = kfs.ld
+LDSCRIPT = kfs.ld
CPPFLAGS +=
LDFLAGS += -T $(LDSCRIPT) -nostdlib -Wl,--build-id=none -m32
CFLAGS += -W -Wall -Wextra -std=gnu99 -g \
- -nostdinc -fno-builtin -fno-stack-protector -m32
+ -nostdinc -fno-builtin -fno-stack-protector -m32
+QEMUFLAGS =
CC = gcc
+QEMU = qemu-system-i386
OBJ = $(SRC:.c=.o)
@@ -28,10 +30,10 @@ distclean: mrproper
$(RM) $(wildcard $(addsuffix .sw*,$(addprefix .,$(SRC))))
boot: all
- qemu-system-i386 -kernel $(NAME)
+ $(QEMU) -kernel $(NAME)
debug: all
- qemu-system-i386 -kernel $(NAME) -s -S
+ $(QEMU) -kernel $(NAME) -s -S
.PHONY: all clean mrproper distclean boot