view cos/kernel/Makefile @ 29:7e3bdcb391dc

Added get_page function to mm
author windel
date Thu, 29 Dec 2011 19:34:01 +0100
parents 47b7df514243
children 0148f55bfe24
line wrap: on
line source

# vim: set noexpandtab:

all: lcfos.bin Makefile

CRT0 = goto64.o

CFLAGS = -m64 -nostdinc	-nostdlib -nostartfiles -mno-red-zone \
	-fno-builtin -mcmodel=large -Wall -Wextra -Werror

OBJECTS = video.o snprintf.o kernel.o asmcode.o handlers.o keyboard.o \
			klib.o malloc.o task.o mm.o timer.o

lcfos.bin: $(CRT0) $(OBJECTS) link.ld
	ld -T link.ld -s -o lcfos.bin $(CRT0) $(OBJECTS)

%.o : %.asm
	nasm -f elf64 -o $@ $<

%.o : %.c
	gcc $(CFLAGS) -o $@ -c $<

clean:
	rm $(OBJECTS) $(CRT0) lcfosc.bin