Files
reverse_shell_shell/Makefile
2021-10-23 01:41:16 -04:00

18 lines
397 B
Makefile

LIBRARIES = -Iinclude
OUTPUT_DIR = ./bin
OUTPUT_BIN = ${OUTPUT_DIR}/PROG
OUTPUT = -o ${OUTPUT_BIN}
SOURCES = ./src/* ./cmd/shell.c
build: output_dir
gcc -Wall -std=gnu99 ${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