summaryrefslogtreecommitdiff
path: root/userspace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index ceba7d0..1663d1d 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -8,8 +8,8 @@ LDFLAGS=-L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/newlib/ \
-L/home/miguel/temp/fool-os-stuff/newlib-build-clean/i686-elf/libgloss/libnosys/ \
-lnosys
-ext2.img: shell simple
- dd if=/dev/zero of=ext2.img bs=512 count=200
+ext2.img: shell simple brainfuck
+ dd if=/dev/zero of=ext2.img bs=512 count=500
sudo mkfs.ext2 -O none ext2.img -F
mkdir mnt
sudo mount ext2.img mnt
@@ -19,10 +19,14 @@ ext2.img: shell simple
echo "hello two" > mnt/test2.txt
cp shell mnt
cp simple mnt
+ cp brainfuck mnt
sync
sudo umount mnt
rm mnt -rf
+brainfuck: brainfuck.o crt0.o
+ ${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o brainfuck
+
shell: foolshell.o crt0.o
${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o shell
@@ -30,7 +34,7 @@ simple: simple.o crt0.o
${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o simple
clean:
- -rm *.o *.out shell simple ext2.img
+ -rm *.o *.out shell simple ext2.img brainfuck
umount:
sudo umount mnt