summaryrefslogtreecommitdiff
path: root/src/common.make
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.make')
-rw-r--r--src/common.make10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common.make b/src/common.make
index 96a1a7f..71cea37 100644
--- a/src/common.make
+++ b/src/common.make
@@ -1,15 +1,15 @@
+.PHONY: clean, mrproper
+
# ============== ENVIRONMENT VARIABLES
CC = i586-elf-gcc
-CFLAGS = -nostdlib -nostartfiles -nodefaultlibs -fno-builtin -fno-stack-protector -Wall -Werror -g -Wno-error=main
+CFLAGS = -m32 -nostdlib -nostdinc -nostartfiles -nodefaultlibs -fno-builtin -ffreestanding -fno-stack-protector -Wall -Werror -g -Wno-error=main
CCFLAGS =
CXX = i586-elf-g++
-CXXFLAGS = -fno-rtti -fno-exceptions -Wall -Werror -Wno-write-strings -Wno-main -Wno-error=unused-parameter -Wno-error=main -g
+CXXFLAGS = -fno-rtti -fno-exceptions -Wno-write-strings -Wno-main -Wno-error=unused-parameter
LD = i586-elf-ld
-.PHONY: clean, mrproper
-
-LDFLAGS = -oformat=elf32-i386
+LDFLAGS = -oformat=elf32-i386 -m elf_i386
ASM = nasm
AFLAGS = -f elf