Mercurial > lcfOS
comparison cos/kernel/Makefile @ 29:7e3bdcb391dc
Added get_page function to mm
author | windel |
---|---|
date | Thu, 29 Dec 2011 19:34:01 +0100 |
parents | 47b7df514243 |
children | 0148f55bfe24 |
comparison
equal
deleted
inserted
replaced
28:47b7df514243 | 29:7e3bdcb391dc |
---|---|
1 # vim: set noexpandtab: | 1 # vim: set noexpandtab: |
2 | 2 |
3 all: bootdisk.img Makefile | 3 all: lcfos.bin Makefile |
4 | |
5 bootdisk.img: lcfosc.bin grub/menu.lst Makefile | |
6 cp grub/emptybootdisk.img bootdisk.img | |
7 mcopy -D o -i bootdisk.img lcfosc.bin :: | |
8 mcopy -D o -i bootdisk.img grub/menu.lst ::/grub | |
9 | 4 |
10 CRT0 = goto64.o | 5 CRT0 = goto64.o |
11 | 6 |
12 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ | 7 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ |
13 -fno-builtin -mcmodel=large -Wall -Wextra -Werror | 8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror |
14 | 9 |
15 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 \ |
16 klib.o malloc.o task.o mm.o timer.o | 11 klib.o malloc.o task.o mm.o timer.o |
17 | 12 |
18 lcfosc.bin: $(CRT0) $(OBJECTS) link.ld | 13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld |
19 ld -T link.ld -s -o lcfosc.bin $(CRT0) $(OBJECTS) | 14 ld -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS) |
20 | 15 |
21 %.o : %.asm Makefile | 16 %.o : %.asm |
22 nasm -f elf64 -o $@ $< | 17 nasm -f elf64 -o $@ $< |
23 | 18 |
24 %.o : %.c Makefile | 19 %.o : %.c |
25 gcc $(CFLAGS) -o $@ -c $< | 20 gcc $(CFLAGS) -o $@ -c $< |
26 | 21 |
27 clean: | 22 clean: |
28 rm $(OBJECTS) $(CRT0) lcfosc.bin | 23 rm $(OBJECTS) $(CRT0) lcfosc.bin |
29 | 24 |