Initial commit

This commit is contained in:
Pin
2021-10-22 22:04:38 -04:00
commit d050bdd5da
6 changed files with 224 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
LIBRARIES = -Iinclude
OUTPUT_DIR = ./bin
OUTPUT_BIN = ${OUTPUT_DIR}/PROG
OUTPUT = -o ${OUTPUT_BIN}
SOURCES = ./src/* ./cmd/shell.c
build: output_dir
gcc -Wall ${LIBRARIES} ${SOURCES} ${OUTPUT:PROG=rshell}
debug: output_dir
gcc -Wall -g ${LIBRARIES} ${SOURCES} ${OUTPUT:PROG=rshell}
output_dir:
mkdir -p ${OUTPUT_DIR}
install: build
mv ${OUTPUT_BIN:PROG=rshell} /usr/sbin/rshell