diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-03 23:36:57 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2019-12-03 23:36:57 +0100 |
commit | 62002b4ff842e51d4a6fd24c1c04cf225d7af1ce (patch) | |
tree | ccc0744b23da823a2e0d55f920a5397983bff4a8 /Makefile | |
parent | Makefile update (diff) | |
download | lowbat-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-- | Makefile | 43 |
1 files changed, 29 insertions, 14 deletions
@@ -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 |