Commit d855c6ce authored by Jonas Termansen's avatar Jonas Termansen

Add warnings to userspace compile flags.

parent b0807e8c
......@@ -2,6 +2,8 @@
OSROOT=..
include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd
LOCALBINARIES:=\
benchsyscall \
......
......@@ -16,21 +16,21 @@ ifeq ($(CPU),x64)
CPULDFLAGS=-melf_x86_64
endif
LIBMAXSIROOT=$(OSROOT)/libmaxsi
SORTIXROOT=$(OSROOT)/sortix
LIBC=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a
LIBS=$(LIBC)
CPPFLAGS=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix
FLAGS=-nostdinc -nostdlib -fno-builtin -nostartfiles -nodefaultlibs
INCLUDES=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include
LD=ld
LDFLAGS=$(CPULDFLAGS)
CC=gcc
CFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES)
CXX=g++
CXXFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti
LIBMAXSIROOT:=$(OSROOT)/libmaxsi
SORTIXROOT:=$(OSROOT)/sortix
LIBC:=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a
LIBS:=$(LIBC)
CPPFLAGS:=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix
FLAGS:=-nostdinc -nostdlib -nostartfiles -nodefaultlibs
INCLUDES:=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include
LD:=ld
LDFLAGS:=$(CPULDFLAGS)
CC:=gcc
CFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES)
CXX:=g++
CXXFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti
......@@ -2,6 +2,8 @@
OSROOT=..
include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd
LOCALBINARIES:=\
pong \
......
......@@ -2,6 +2,8 @@
OSROOT=..
include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd
LOCALBINARIES:=\
init \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment