Initial commit
This commit is contained in:
21
Makefile
Normal file
21
Makefile
Normal file
@@ -0,0 +1,21 @@
|
||||
LIBRARIES = -Iinclude
|
||||
SOURCES = ./src/* ./cmd/server.c
|
||||
OUTPUT_DIR = ./bin
|
||||
OUTPUT = -o ${OUTPUT_DIR}/PROG
|
||||
INSTALL_OUTPUT = ${OUTPUT_DIR}/PROG
|
||||
|
||||
build: output_dir
|
||||
gcc -Wall -pthread ${LIBRARIES} ${SOURCES} ${OUTPUT:PROG=server}
|
||||
|
||||
debug: output_dir
|
||||
gcc -Wall -g -pthread ${LIBRARIES} ${SOURCES} ${OUTPUT:PROG=server}
|
||||
|
||||
install:
|
||||
mv ${INSTALL_OUTPUT:PROG=server} /usr/bin/
|
||||
|
||||
output_dir:
|
||||
mkdir -p ${OUTPUT_DIR}
|
||||
|
||||
clean:
|
||||
rm -rf $(OUTPUT_DIR) **.h.gch
|
||||
|
||||
Reference in New Issue
Block a user