summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-11-03 09:45:33 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-11-03 09:45:33 +0100
commit9ee01470ef6424ea448a7eddc00c1f936727b460 (patch)
tree223986fbbf5d49516b047ecf874469e328922e40 /kernel
parenta71fe5ed5d709ef0a3caefb744a99c575fb9dd29 (diff)
downloadjeyzuos-9ee01470ef6424ea448a7eddc00c1f936727b460.zip
jeyzuos-9ee01470ef6424ea448a7eddc00c1f936727b460.tar.gz
improve Makefiles
Diffstat (limited to 'kernel')
-rw-r--r--kernel/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index cc03386..9846422 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -1,11 +1,11 @@
all: kernel.elf
+.c.o :
+ gcc -std=gnu99 -m32 -fno-builtin -ffreestanding -nostdlib -Wall -Wextra -c $< -o $@
+
kernel.elf: kernel.o entry.o
ld -Tlinker.ld -melf_i386 entry.o kernel.o -o kernel.elf
-kernel.o: kernel.c
- gcc -std=gnu99 -m32 -fno-builtin -ffreestanding -nostdlib -Wall -Wextra -c kernel.c
-
# entry.o: entry.S
# as -32 $< -o entry.o