diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1,5 +1,32 @@ .POSIX: +default: all + +SHELL +SRCS_DIR = src/ +INCS_DIR = inc/ +OBJS_DIR = obj/ + +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}) + +CC = g++ +CFLAGS = -Wall +CFLAGS += -Wextra +CFLAGS += -Werror + +DEBUG = -g3 +FSANITIZE = -fsanitize=address + +OPTIMIZE = -O2 + +TARGET = lowbat + OS = $(shell uname -s) ifeq ($(OS), Darwin) PREFIX = /usr/local |