aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-03 23:36:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-03 23:36:57 +0100
commit62002b4ff842e51d4a6fd24c1c04cf225d7af1ce (patch)
treeccc0744b23da823a2e0d55f920a5397983bff4a8 /Makefile
parentMakefile update (diff)
downloadlowbat-gnu-62002b4ff842e51d4a6fd24c1c04cf225d7af1ce.tar.gz
lowbat-gnu-62002b4ff842e51d4a6fd24c1c04cf225d7af1ce.tar.bz2
lowbat-gnu-62002b4ff842e51d4a6fd24c1c04cf225d7af1ce.tar.xz
lowbat-gnu-62002b4ff842e51d4a6fd24c1c04cf225d7af1ce.tar.zst
lowbat-gnu-62002b4ff842e51d4a6fd24c1c04cf225d7af1ce.zip
Makefile comments
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 29 insertions, 14 deletions
diff --git a/Makefile b/Makefile
index 36f2566..63d50e7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,37 +1,52 @@
+#==============================================================================#
+#-------------------------------- Makefile ------------------------------------#
+#==============================================================================#
.POSIX:
default: all
-
+#==============================================================================#
+#--------------------------------- Shell --------------------------------------#
+#==============================================================================#
SHELL := /bin/sh
+#==============================================================================#
+#------------------------------ Directories -----------------------------------#
+#==============================================================================#
SRCS_DIR = src/
INCS_DIR = inc/
OBJS_DIR = obj/
TRGT_DIR = bin/
-
+#==============================================================================#
+#--------------------------------- Files --------------------------------------#
+#==============================================================================#
SRCS = ${SRCS_DIR}main.cpp
SRCS += ${SRCS_DIR}jo_exec.cpp
SRCS += ${SRCS_DIR}jo_notify.cpp
-
+#------------------------------------------------------------------------------#
INCS = ${INCS_DIR}jo_lowbat.hpp
-
+#------------------------------------------------------------------------------#
OBJS = $(patsubst ${SRCS_DIR}%.cpp,${OBJS_DIR}%.o,${SRCS})
-
+#==============================================================================#
+#-------------------------------- Compiler ------------------------------------#
+#==============================================================================#
CC = g++
-CFLAGS = -Wall
-CFLAGS += -Wextra
-CFLAGS += -Werror
-
+#------------------------------------------------------------------------------#
DEBUG = -g3
FSANITIZE = -fsanitize=address
-
+#------------------------------------------------------------------------------#
OPTIMIZE = -O2
-
+#------------------------------------------------------------------------------#
+CFLAGS = -Wall
+CFLAGS += -Wextra
+CFLAGS += -Werror
CFLAGS += ${OPTIMIZE}
-
+#------------------------------------------------------------------------------#
NAME = ${TRGT_DIR}lowbat
-
+#==============================================================================#
+#--------------------------------- UNIX ---------------------------------------#
+#==============================================================================#
MKDIR = mkdir -p
-
+RM = rm -rf
+#------------------------------------------------------------------------------#
OS = $(shell uname -s)
ifeq ($(OS), Darwin)
PREFIX = /usr/local