diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-10-29 12:15:35 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-10-29 12:15:35 +0100 |
commit | bc1d737e80aeb09577ec936509da7241e245b173 (patch) | |
tree | 516e1ff98e1ae655b4df4f4d42418cea678ba5d4 | |
parent | 9b5760aa26108d5dd8ef6a4defadeeba0efc9630 (diff) |
kfs: updated Makefile
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |