add ls; simpler pwd

This commit is contained in:
Connor Lane Smith
2011-05-26 04:01:20 +01:00
parent 273f150c84
commit 6ef3d9174b
9 changed files with 268 additions and 24 deletions

View File

@@ -1,8 +1,8 @@
include config.mk
LIB = util/afgets.o util/enmasse.o util/eprintf.o util/recurse.o
LIB = util/afgets.o util/agetcwd.o util/enmasse.o util/eprintf.o util/recurse.o
SRC = basename.c cat.c chown.c date.c dirname.c echo.c false.c grep.c head.c \
ln.c mkfifo.c pwd.c rm.c sleep.c tee.c touch.c true.c wc.c
ln.c ls.c mkfifo.c pwd.c rm.c sleep.c tee.c touch.c true.c wc.c
OBJ = $(SRC:.c=.o) $(LIB)
BIN = $(SRC:.c=)
MAN = $(SRC:.c=.1)
@@ -11,7 +11,7 @@ all: $(BIN)
$(OBJ): util.h
$(BIN): util.a
grep: text.h
grep.o: text.h
.o:
@echo CC -o $@