This commit is contained in:
Pin
2022-03-30 21:26:17 -04:00
parent 5224c62e35
commit 28940ba8ee
5 changed files with 81 additions and 13 deletions

View File

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