annotate cos/kernel/Makefile @ 28:47b7df514243

Moved Makefiles
author windel
date Wed, 28 Dec 2011 13:38:43 +0100
parents cos/Makefile@7f74363f4c82
children 7e3bdcb391dc
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
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
10 CRT0 = goto64.o
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
11
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
12 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
13 -fno-builtin -mcmodel=large -Wall -Wextra -Werror
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
14
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
15 OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
16 klib.o malloc.o task.o mm.o timer.o
14
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
17
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
18 lcfosc.bin: $(CRT0) $(OBJECTS) link.ld
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
19 ld -T link.ld -s -o lcfosc.bin $(CRT0) $(OBJECTS)
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
20
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
21 %.o : %.asm Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
22 nasm -f elf64 -o $@ $<
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
23
12
fcdae30b2782 Fixup of variable argument things
windel
parents: 11
diff changeset
24 %.o : %.c Makefile
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
25 gcc $(CFLAGS) -o $@ -c $<
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
26
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
27 clean:
20
b1fed2171e1a Now working with 2 MB pages
windel
parents: 18
diff changeset
28 rm $(OBJECTS) $(CRT0) lcfosc.bin
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
29