first commit

This commit is contained in:
BuildTools
2022-02-27 20:34:52 -05:00
commit 8ad3e917a4
4 changed files with 177 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
LIBRARIES = -Iinclude
SOURCES = ./cmd/strenc.c
OUTPUT_DIR = ./bin
OUTPUT = -o ${OUTPUT_DIR}/PROG
INSTALL_OUTPUT = ${OUTPUT_DIR}/PROG
build: output_dir
gcc -Wall ${SOURCES} ${OUTPUT:PROG=strenc} ${LIBRARIES}
debug: output_dir
gcc -Wall -g ${SOURCES} ${OUTPUT:PROG=strenc} ${LIBRARIES}
output_dir:
mkdir -p ${OUTPUT_DIR}
clean:
rm -rf $(OUTPUT_DIR) ${CERT_DIR} **.h.gch