diff options
-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 |