annotate cos/Makefile @ 26:dcce92b1efbc

Added mm.c
author windel
date Tue, 27 Dec 2011 17:36:52 +0100
parents d3c4bf3720a3
children 7f74363f4c82
rev   line source
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
1 # vim: set noexpandtab:
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
2
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
3 all: bootdisk.img Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
4
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
5 bootdisk.img: lcfosc.bin grub/menu.lst Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
6 cp grub/emptybootdisk.img bootdisk.img
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
7 mcopy -D o -i bootdisk.img lcfosc.bin ::
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
8 mcopy -D o -i bootdisk.img grub/menu.lst ::/grub
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
10 CRT0 = kernel/goto64.o
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
11
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
12 CFLAGS = -m64 \
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
13 -nostdinc \
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
14 -nostdlib \
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
15 -nostartfiles \
18
6129643f5c34 Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
windel
parents: 14
diff changeset
16 -mno-red-zone \
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
17 -fno-builtin \
22
69bc6d477b38 Added python run function
windel
parents: 20
diff changeset
18 -mcmodel=large
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
19
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
20 OBJECTS = \
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
21 kernel/video.o \
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
22 kernel/snprintf.o \
14
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
23 kernel/kernel.o \
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
24 kernel/asmcode.o \
24
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
25 kernel/handlers.o \
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
26 kernel/keyboard.o \
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
27 kernel/klib.o \
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
28 kernel/malloc.o \
25
d3c4bf3720a3 Beginning of multitasking
windel
parents: 24
diff changeset
29 kernel/task.o \
26
dcce92b1efbc Added mm.c
windel
parents: 25
diff changeset
30 kernel/mm.o \
24
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
31 kernel/timer.o
14
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
32
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
33 lcfosc.bin: $(CRT0) $(OBJECTS) linker.ld
22
69bc6d477b38 Added python run function
windel
parents: 20
diff changeset
34 ld -T linker.ld -s -o lcfosc.bin $(CRT0) $(OBJECTS)
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
35
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
36 %.o : %.asm Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
37 nasm -f elf64 -o $@ $<
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
38
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
39 %.o : %.c Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
40 gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
41
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
42 clean:
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
43 rm $(OBJECTS) $(CRT0) lcfosc.bin
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
44