comparison cos/kernel/Makefile @ 32:3a6a9b929db0

Added initial ramdisk and some virtual file system functions
author windel
date Fri, 13 Jan 2012 18:18:17 +0100
parents 0148f55bfe24
children d8185ddb6c7b
comparison
equal deleted inserted replaced
31:88590c42320f 32:3a6a9b929db0
6 6
7 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \ 7 CFLAGS = -m64 -nostdinc -nostdlib -nostartfiles -mno-red-zone \
8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror 8 -fno-builtin -mcmodel=large -Wall -Wextra -Werror
9 9
10 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 \
11 klib.o malloc.o task.o mm.o timer.o 11 klib.o malloc.o task.o mm.o timer.o fs.o initrd.o
12 12
13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld 13 lcfos.bin: $(CRT0) $(OBJECTS) link.ld
14 ld -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS) 14 ld -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS)
15 15
16 %.o : %.asm 16 %.o : %.asm
18 18
19 %.o : %.c kernel.h 19 %.o : %.c kernel.h
20 gcc $(CFLAGS) -o $@ -c $< 20 gcc $(CFLAGS) -o $@ -c $<
21 21
22 clean: 22 clean:
23 rm $(OBJECTS) $(CRT0) lcfosc.bin 23 rm $(OBJECTS) $(CRT0) lcfos.bin
24 24