Initial commit
This commit is contained in:
17
Makefile
Normal file
17
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user