From 24b57a61d6a4e37eedb840d14c8a6cc45f57a942 Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Fri, 24 Oct 2014 19:13:10 +0200 Subject: added very simple example user prog for adding. --- userspace/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'userspace/Makefile') 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 -- cgit v1.2.3