annotate cos/kernel/Makefile @ 410:6aa9743ed362 tip

Reflect change in c3 public modifier
author Windel Bouwman
date Mon, 23 Feb 2015 21:06:04 +0100
parents 5c20bd53cccd
children
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
29
7e3bdcb391dc Added get_page function to mm
windel
parents: 28
diff changeset
3 all: lcfos.bin Makefile
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
4
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
5 CRT0 = goto64.o
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
6
34
8012221dd740 Fixes for uninitialized data. This causes problems on real machines
windel
parents: 33
diff changeset
7 CFLAGS = -g -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror
9
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 OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \
37
5c20bd53cccd Cleanup
windel
parents: 36
diff changeset
11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o multiboot.o \
5c20bd53cccd Cleanup
windel
parents: 36
diff changeset
12 shell.o
14
a58904747019 Added asm interrupt handler things, not yet working
windel
parents: 12
diff changeset
13
36
91f91ff07ea8 Removed test variables
windel
parents: 34
diff changeset
14 lcfos.bin: $(CRT0) $(OBJECTS) kernel.ld
91f91ff07ea8 Removed test variables
windel
parents: 34
diff changeset
15 ld -g -T kernel.ld -s --cref -Map=kernel.map -o lcfos.bin $(CRT0) $(OBJECTS)
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
16
29
7e3bdcb391dc Added get_page function to mm
windel
parents: 28
diff changeset
17 %.o : %.asm
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
18 nasm -f elf64 -o $@ $<
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
19
30
0148f55bfe24 Added static asserts and fixed pages
windel
parents: 29
diff changeset
20 %.o : %.c kernel.h
28
47b7df514243 Moved Makefiles
windel
parents: 27
diff changeset
21 gcc $(CFLAGS) -o $@ -c $<
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
22
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
23 clean:
32
3a6a9b929db0 Added initial ramdisk and some virtual file system functions
windel
parents: 30
diff changeset
24 rm $(OBJECTS) $(CRT0) lcfos.bin
9
92ace1ca50a8 64 bits kernel without interrupts but with printf in C
windel
parents:
diff changeset
25