Add recursive cleaning to makefile

This commit is contained in:
Baptiste Wicht 2013-10-29 21:01:27 +01:00
parent b8c34a8067
commit eccfab07d8
4 changed files with 14 additions and 2 deletions

View File

@ -29,6 +29,8 @@ force_look:
true
clean:
cd bootloader; $(MAKE) clean
cd kernel; $(MAKE) clean
cd micro_kernel; $(MAKE) clean
rm -f *.bin
rm -f *.flp
rm -f *.o
rm -f *.flp

View File

@ -1,2 +1,5 @@
bootloader.bin: bootloader.asm
nasm -w+all -f bin -o bootloader.bin bootloader.asm
clean:
rm -f bootloader.bin

View File

@ -24,3 +24,7 @@ timer.o: src/timer.cpp
shell.o: src/shell.cpp
g++ $(KERNEL_FLAGS) -c src/shell.cpp -o shell.o
clean:
rm -f *.o
rm -f *.bin

View File

@ -3,3 +3,6 @@ MICRO_KERNEL_UTILS_SRC=$(wildcard utils/*.asm)
micro_kernel.bin: $(MICRO_KERNEL_SRC) $(MICRO_KERNEL_UTILS_SRC)
nasm -w+all -f bin -o micro_kernel.bin micro_kernel.asm
clean:
rm -f micro_kernel.bin