diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 | 
1 files changed, 4 insertions, 3 deletions
| @@ -25,19 +25,20 @@ OBJS = \  	trap.o\  	uart.o\  	vectors.o\ +	vm.o\  # Cross-compiling (e.g., on Mac OS X) -#TOOLPREFIX = i386-jos-elf- +TOOLPREFIX = i386-jos-elf-  # Using native tools (e.g., on X86 Linux) -TOOLPREFIX =  +#TOOLPREFIX =   CC = $(TOOLPREFIX)gcc  AS = $(TOOLPREFIX)gas  LD = $(TOOLPREFIX)ld  OBJCOPY = $(TOOLPREFIX)objcopy  OBJDUMP = $(TOOLPREFIX)objdump -CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -O2 -Wall -MD -ggdb -m32 +CFLAGS = -fno-pic -static -fno-builtin -fno-strict-aliasing -O2 -Wall -MD -ggdb -m32 -Werror  CFLAGS += $(shell $(CC) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)  ASFLAGS = -m32 -gdwarf-2  # FreeBSD ld wants ``elf_i386_fbsd'' | 
