annotate cos/Makefile @ 24:d8627924d40d

Split up in more files and reboot command
author windel
date Fri, 02 Dec 2011 14:00:02 +0100
parents 69bc6d477b38
children d3c4bf3720a3
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 \
d8627924d40d Split up in more files and reboot command
windel
parents: 22
diff changeset
29 kernel/timer.o
14
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
30
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
31 lcfosc.bin: $(CRT0) $(OBJECTS) linker.ld
22
69bc6d477b38 Added python run function
windel
parents: 20
diff changeset
32 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
33
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
34 %.o : %.asm Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
35 nasm -f elf64 -o $@ $<
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
36
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
37 %.o : %.c Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
38 gcc $(CFLAGS) -o $@ -c $< -Wall -Wextra -Werror
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
39
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
40 clean:
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
41 rm $(OBJECTS) $(CRT0) lcfosc.bin
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
42