summaryrefslogtreecommitdiff
path: root/src/cmd/echo
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-03-05 18:46:44 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-03-05 18:46:44 -0500
commitc40f400f6ab879e08d54de753aabc987fd6ba07a (patch)
tree295f95070362d14d987638b558ad6bb1ba2415e2 /src/cmd/echo
parente32262d86c90e2ac73b2c38a47a1bb6b60935098 (diff)
Added a simple shell, jsh
Diffstat (limited to 'src/cmd/echo')
-rw-r--r--src/cmd/echo/echo.c2
-rwxr-xr-x[-rw-r--r--]src/cmd/echo/makefile10
2 files changed, 7 insertions, 5 deletions
diff --git a/src/cmd/echo/echo.c b/src/cmd/echo/echo.c
index 3dc8334..4733830 100644
--- a/src/cmd/echo/echo.c
+++ b/src/cmd/echo/echo.c
@@ -14,4 +14,4 @@ main (int argc, char *argv[])
printf("%s%c", argv[i], (i == argc) ? ((nflag == 1) ? '\0' : '\n') : ' ');
}
return 0;
-} \ No newline at end of file
+}
diff --git a/src/cmd/echo/makefile b/src/cmd/echo/makefile
index 0301f23..59f976f 100644..100755
--- a/src/cmd/echo/makefile
+++ b/src/cmd/echo/makefile
@@ -1,10 +1,12 @@
-all: echo
+CFLAGS=-Wall -Werror
+
+build: echo
@cp echo $(PROROOT)/build/bin/echo
echo: echo.c
- $(CC) -o echo echo.c
+ $(CC) $(CFLAGS) -o echo echo.c
clean:
@rm -r echo
-
-.PHONY: all clean \ No newline at end of file
+
+.PHONY: build clean