1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add warnings to userspace compile flags.

This commit is contained in:
Jonas 'Sortie' Termansen 2012-09-08 20:33:52 +02:00
parent b0807e8c7a
commit d855c6cec7
4 changed files with 19 additions and 13 deletions

View file

@ -2,6 +2,8 @@
OSROOT=.. OSROOT=..
include ../crosscompilemakefile.mak include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd INITRDDIR:=../initrd
LOCALBINARIES:=\ LOCALBINARIES:=\
benchsyscall \ benchsyscall \

View file

@ -16,21 +16,21 @@ ifeq ($(CPU),x64)
CPULDFLAGS=-melf_x86_64 CPULDFLAGS=-melf_x86_64
endif endif
LIBMAXSIROOT=$(OSROOT)/libmaxsi LIBMAXSIROOT:=$(OSROOT)/libmaxsi
SORTIXROOT=$(OSROOT)/sortix SORTIXROOT:=$(OSROOT)/sortix
LIBC=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a LIBC:=$(LIBMAXSIROOT)/start.o $(LIBMAXSIROOT)/libc.a
LIBS=$(LIBC) LIBS:=$(LIBC)
CPPFLAGS=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix CPPFLAGS:=$(CPUDEFINES) -U_GNU_SOURCE -Ulinux -Dsortix
FLAGS=-nostdinc -nostdlib -fno-builtin -nostartfiles -nodefaultlibs FLAGS:=-nostdinc -nostdlib -nostartfiles -nodefaultlibs
INCLUDES=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include INCLUDES:=-I $(LIBMAXSIROOT)/preproc -I $(SORTIXROOT)/include
LD=ld LD:=ld
LDFLAGS=$(CPULDFLAGS) LDFLAGS:=$(CPULDFLAGS)
CC=gcc CC:=gcc
CFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES) CFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES)
CXX=g++ CXX:=g++
CXXFLAGS=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti CXXFLAGS:=$(CPUFLAGS) $(FLAGS) $(INCLUDES) -fno-exceptions -fno-rtti

View file

@ -2,6 +2,8 @@
OSROOT=.. OSROOT=..
include ../crosscompilemakefile.mak include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd INITRDDIR:=../initrd
LOCALBINARIES:=\ LOCALBINARIES:=\
pong \ pong \

View file

@ -2,6 +2,8 @@
OSROOT=.. OSROOT=..
include ../crosscompilemakefile.mak include ../crosscompilemakefile.mak
CXXFLAGS:=$(CXXFLAGS) -Wall -Wextra
INITRDDIR:=../initrd INITRDDIR:=../initrd
LOCALBINARIES:=\ LOCALBINARIES:=\
init \ init \