diff cos/hello/Makefile @ 25:d3c4bf3720a3

Beginning of multitasking
author windel
date Tue, 27 Dec 2011 13:31:38 +0100
parents
children 3a6a9b929db0
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/cos/hello/Makefile	Tue Dec 27 13:31:38 2011 +0100
@@ -0,0 +1,19 @@
+# vim: set noexpandtab:
+
+CFLAGS = -m64 \
+			-nostdinc \
+			-nostdlib \
+			-nostartfiles \
+			-mno-red-zone \
+			-fno-builtin \
+			-mcmodel=large \
+			-Wall \
+			-Wextra \
+			-Werror
+
+hello.bin: hello.o
+	ld -T hello.ld -s -o hello.bin hello.o
+
+%.o: %.c
+	gcc $(CFLAGS) -o $@ -c $<
+