summaryrefslogtreecommitdiff
path: root/userspace/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 1663d1d..c6bfb3f 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -8,7 +8,7 @@ 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 brainfuck
+ext2.img: shell simple brainfuck add
dd if=/dev/zero of=ext2.img bs=512 count=500
sudo mkfs.ext2 -O none ext2.img -F
mkdir mnt
@@ -20,6 +20,7 @@ ext2.img: shell simple brainfuck
cp shell mnt
cp simple mnt
cp brainfuck mnt
+ cp add mnt
sync
sudo umount mnt
rm mnt -rf
@@ -33,8 +34,11 @@ shell: foolshell.o crt0.o
simple: simple.o crt0.o
${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o simple
+add: add.o crt0.o
+ ${CC} -T linker.ld ${LDFLAGS} $< -Wl,--oformat,binary -o add
+
clean:
- -rm *.o *.out shell simple ext2.img brainfuck
+ -rm *.o *.out shell simple ext2.img brainfuck add
umount:
sudo umount mnt