summaryrefslogtreecommitdiff
path: root/userspace/Makefile
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-11-23 23:26:26 +0100
committerMichal Idziorek <m.i@gmx.at>2014-11-23 23:26:26 +0100
commitec0ba7bc40854eab6a1cdb41364f41f9c11407e1 (patch)
tree88f3896c70ac32bc1b70dcd7ebddbbe595c6608f /userspace/Makefile
parent50300fa573bf2bc00f9732e812d54ab77cf03dd7 (diff)
foolshell and syscalls improvememets
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 55e78bc..3327375 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -4,7 +4,7 @@ CFLAGS=
CFLAGS+=-w
CFLAGS+=-std=gnu11
-PROGS=shell simple brainfuck add checker ls clear
+PROGS=foolshell simple brainfuck add checker ls clear
ext2.img: $(PROGS)
dd if=/dev/zero of=ext2.img bs=512 count=5000
@@ -12,17 +12,19 @@ ext2.img: $(PROGS)
mkdir mnt
sudo mount ext2.img mnt
sudo chown miguel mnt
- mkdir mnt/miguel
- echo "hello one" > mnt/miguel/test1.txt
- echo "hello two" > mnt/test2.txt
- cp $^ mnt
- cp ~/temp/fool-os-stuff/binutils-build-host-foolos/binutils/readelf mnt
+ mkdir -p mnt/home/miguel
+ echo "hello one" > mnt/home/miguel/test1.txt
+ mkdir -p mnt/bin
+ cp $^ mnt/bin
+ cp ~/temp/fool-os-stuff/binutils-build-host-foolos/binutils/readelf mnt/bin
+ mkdir -p mnt/etc
+ echo "127.0.0.1 localhost" > mnt/etc/hosts
sync
sudo umount mnt
rm mnt -rf
brainfuck: brainfuck.o
-shell: shell.o
+foolshell: foolshell.o
simple: simple.o
add: add.o
checker: checker.o