Browse Source

Clean up files generated by build-kernel in make clean.

tags/v0.99.beta17
Sam Hocevar sam 15 years ago
parent
commit
f5ba6b4a04
2 changed files with 10 additions and 5 deletions
  1. +6
    -5
      build-kernel
  2. +4
    -0
      kernel/Makefile.am

+ 6
- 5
build-kernel View File

@@ -9,10 +9,10 @@ set -e
CFLAGS="-fno-builtin -O0 -I. -I.. -I../caca/ -Wall -D__KERNEL__ -fno-stack-protector -m32" CFLAGS="-fno-builtin -O0 -I. -I.. -I../caca/ -Wall -D__KERNEL__ -fno-stack-protector -m32"
LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000" LDFLAGS="-nostdlib -Wl,-N -Wl,-Ttext -Wl,100000"


#./configure --disable-slang --disable-ncurses --disable-win32 \
# --disable-conio --disable-x11 --disable-gl --disable-network \
# --enable-vga --disable-imlib2 --disable-doc \
# --host i386
./configure --disable-slang --disable-ncurses --disable-win32 \
--disable-conio --disable-x11 --disable-gl --disable-network \
--enable-vga --disable-imlib2 --disable-doc \
--host i386


# Compile cacademo, leave it as an object # Compile cacademo, leave it as an object
cd caca && make && cd .. cd caca && make && cd ..
@@ -63,4 +63,5 @@ ls -ail kern.bin
cd .. cd ..


# Copy bootsector at the very beginning of the floppy (first sector/512 bytes of the image), then kernel right after # Copy bootsector at the very beginning of the floppy (first sector/512 bytes of the image), then kernel right after
cat kernel/bootsect.bin kernel/kern.bin /dev/zero | dd of=cacademo.img bs=512 count=2500
cat kernel/bootsect.bin kernel/kern.bin /dev/zero | dd of=cacademo.img bs=512 count=2500


+ 4
- 0
kernel/Makefile.am View File

@@ -17,3 +17,7 @@ libkernel_la_SOURCES = \
libkernel_la_LDFLAGS = -no-undefined libkernel_la_LDFLAGS = -no-undefined
AM_CPPFLAGS = -I$(top_srcdir) AM_CPPFLAGS = -I$(top_srcdir)


clean: clean-local
clean-local:
rm -f bootsect.bin kern.bin kernel.map


Loading…
Cancel
Save