From bc1d737e80aeb09577ec936509da7241e245b173 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 29 Oct 2015 12:15:35 +0100 Subject: kfs: updated Makefile Signed-off-by: Olivier Gayot --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3