Initial code commit

This commit is contained in:
Pin
2022-03-22 09:32:08 -04:00
parent 0a6f36e4ea
commit aa0528664c
5 changed files with 412 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
LIBRARIES = -lreadline
RELEASE_ARGS = -DRELEASEBUILD
SOURCES = ./msh.c
OUTPUT_DIR = ./bin
OUTPUT_BIN = ${OUTPUT_DIR}/PROG
OUTPUT = -o ${OUTPUT_BIN}
build: output_dir
gcc -Wall -std=gnu99 ${RELEASE_ARGS} ${SOURCES} ${OUTPUT:PROG=mash} ${LIBRARIES}
debug: output_dir
gcc -Wall -std=gnu99 -g ${SOURCES} ${OUTPUT:PROG=mash} ${LIBRARIES}
output_dir:
mkdir -p ${OUTPUT_DIR}
install:
mv ${OUTPUT_BIN:PROG=mash} /usr/sbin/mash