Mercurial > lcfOS
comparison cos/kernel/Makefile @ 34:8012221dd740
Fixes for uninitialized data. This causes problems on real machines
author | windel |
---|---|
date | Mon, 16 Jan 2012 13:46:06 +0100 |
parents | d8185ddb6c7b |
children | 91f91ff07ea8 |
comparison
equal
deleted
inserted
replaced
33:d8185ddb6c7b | 34:8012221dd740 |
---|---|
2 | 2 |
3 all: lcfos.bin Makefile | 3 all: lcfos.bin Makefile |
4 | 4 |
5 CRT0 = goto64.o | 5 CRT0 = goto64.o |
6 | 6 |
7 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ | 7 CFLAGS = -g -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ |
8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror | 8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror |
9 | 9 |
10 OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \ | 10 OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \ |
11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o | 11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o |
12 | 12 |
13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld | 13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld |
14 ld -M -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS) | 14 ld -g -T link.ld -s --cref -Map=kernel.map -o lcfos.bin $(CRT0) $(OBJECTS) |
15 | 15 |
16 %.o : %.asm | 16 %.o : %.asm |
17 nasm -f elf64 -o $@ $< | 17 nasm -f elf64 -o $@ $< |
18 | 18 |
19 %.o : %.c kernel.h | 19 %.o : %.c kernel.h |