summaryrefslogtreecommitdiff
path: root/userspace/Makefile
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2015-05-13 23:58:39 +0200
committerMichal Idziorek <m.i@gmx.at>2015-05-13 23:58:39 +0200
commitb74c5c8fb4de3b2847bc942e57dcf8f0dea705be (patch)
treefa0a9001cffa64c9193689066bf296dc3df7f844 /userspace/Makefile
parent9a60edf72a3112adae4a914134da1adaf472ad5d (diff)
fixed libc and 'userspace'
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 f112e67..8e97ac8 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -7,13 +7,16 @@ CFLAGS+=-w
CFLAGS+=-std=gnu11
CFLAGS+=-O3
CFLAGS+=-g
+LDFLAGS=
+LDFLAGS=-lfool
+#CFLAGS+=$(SYSROOT)/usr/lib/crt0.o
-PROGS=foolshell ls simple brainfuck add checker clear task1 task2 init
+PROGS=foolshell ls simple brainfuck add checker clear task1 task2 init cat
ext2.img: $(PROGS)
dd if=/dev/zero of=ext2.img bs=512 count=10000
- sudo mkfs.ext2 -O none ext2.img -F
+ sudo mkfs.ext2 -O none ext2.img -F
mkdir mnt
sudo mount ext2.img mnt
sudo chown miguel mnt
@@ -35,11 +38,12 @@ brainfuck: brainfuck.o
foolshell: foolshell.o
simple: simple.o
add: add.o
- $(CC) -o $@ $< -lm
+ $(CC) -o $@ $< -lm -lfool
checker: checker.o
task1: task1.o
task2: task2.o
init: init.o
+cat: cat.o
clean:
-rm *.o $(PROGS) ext2.img