annotate cos/hello/Makefile @ 25:d3c4bf3720a3

Beginning of multitasking
author windel
date Tue, 27 Dec 2011 13:31:38 +0100
parents
children 3a6a9b929db0
rev   line source
25
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
1 # vim: set noexpandtab:
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
2
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
3 CFLAGS = -m64 \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
4 -nostdinc \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
5 -nostdlib \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
6 -nostartfiles \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
7 -mno-red-zone \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
8 -fno-builtin \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
9 -mcmodel=large \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
10 -Wall \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
11 -Wextra \
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
12 -Werror
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
13
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
14 hello.bin: hello.o
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
15 ld -T hello.ld -s -o hello.bin hello.o
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
16
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
17 %.o: %.c
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
18 gcc $(CFLAGS) -o $@ -c $<
d3c4bf3720a3 Beginning of multitasking
windel
parents:
diff changeset
19