view kernel/Makefile @ 14:8b2ce241f5f1 default tip

add files
author one
date Mon, 30 Jun 2014 00:38:55 +0900
parents f21ccddc12cb
children
line wrap: on
line source

CC = gcc
LD = ld

CFLAGS = -m64 \
		-ffreestanding \
		-fno-common \
		-fomit-frame-pointer \
		-Wall \

LDFLAGS = -arch x86_64 \
		-no_version_load_command \
		-static 

TARGET = kernel

$(TARGET): kernel.o
	$(LD) $(LDFLAGS) -o $(TARGET) $^

kernel.o: kernel.c
	$(CC) $(CFLAGS) -c -o $@ $^

clean:
	rm $(TARGET).o $(TARGET)