From 91cc9a11a5b3d5e48304252e29e4168fad033a38 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 15 Jul 2017 17:50:59 +0200 Subject: added an OPT parameter to the build makefile, default is -O0 --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 75d6948..b7321c3 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,8 @@ CC := gcc DEFINES = -DOS_ABAOS +OPT := -O0 INCLUDES = -I. -Ilibc -Ihardware -Idrivers -Idrivers/hdi -Idrivers/hdi/ps2 -Idrivers/video -Ikernel -Igui -CFLAGS := -std=c99 -m32 -march=i486 -ffreestanding -O0 -g -Werror $(INCLUDES) $(DEFINES) +CFLAGS := -std=c99 -m32 -march=i486 -ffreestanding $(OPT) -g -Werror $(INCLUDES) $(DEFINES) LD := ld LDFLAGS := -lgcc NASMFLAGS := -f elf32 -- cgit v1.2.3-54-g00ecf