aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2019-12-03 20:21:09 +0100
committerJoe <bousset.rudy@gmail.com>2019-12-03 20:21:09 +0100
commit89737ad005f4c066234a5282a1a46eb68b2c1ace (patch)
tree7b521091227050c84dca220715e20bf1347c39d3 /Makefile
parentREADME update (diff)
downloadlowbat-gnu-89737ad005f4c066234a5282a1a46eb68b2c1ace.tar.gz
lowbat-gnu-89737ad005f4c066234a5282a1a46eb68b2c1ace.tar.bz2
lowbat-gnu-89737ad005f4c066234a5282a1a46eb68b2c1ace.tar.xz
lowbat-gnu-89737ad005f4c066234a5282a1a46eb68b2c1ace.tar.zst
lowbat-gnu-89737ad005f4c066234a5282a1a46eb68b2c1ace.zip
cpp mode
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d7db2c4..eec2142 100644
--- a/Makefile
+++ b/Makefile
@@ -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