From b74c5c8fb4de3b2847bc942e57dcf8f0dea705be Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 13 May 2015 23:58:39 +0200 Subject: fixed libc and 'userspace' --- userspace/Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'userspace/Makefile') 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 -- cgit v1.2.3