aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:36:03 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:36:03 +0100
commit1aeed2fdde697479f9e819f078bb06cfa7386dc9 (patch)
tree0ffb038905f3e3bb3cde4da44fabab7963035fae /Makefile
parentMakefile update (diff)
downloadlowbat-gnu-1aeed2fdde697479f9e819f078bb06cfa7386dc9.tar.gz
lowbat-gnu-1aeed2fdde697479f9e819f078bb06cfa7386dc9.tar.bz2
lowbat-gnu-1aeed2fdde697479f9e819f078bb06cfa7386dc9.tar.xz
lowbat-gnu-1aeed2fdde697479f9e819f078bb06cfa7386dc9.tar.zst
lowbat-gnu-1aeed2fdde697479f9e819f078bb06cfa7386dc9.zip
Makefile rework in progress
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 8af806e..420183b 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,11 @@ INCS_DIR = inc/
OBJS_DIR = obj/
TRGT_DIR = bin/
-SRCS = ${SRCS_DIR}main.cpp
-SRCS += ${SRCS_DIR}jo_exec.cpp
-SRCS += ${SRCS_DIR}jo_notify.cpp
+SRCS_NAME = main.cpp
+SRCS_NAME += jo_exec.cpp
+SRCS_NAME += jo_notify.cpp
+
+SRCS = $(addprefix ${SRCS_DIR}, ${SRCS_NAME})
INCS = jo_lowbat.hpp
@@ -29,7 +31,9 @@ OPTIMIZE += -pipe
CXXFLAGS = -Wall
CXXFLAGS += -Wextra
CXXFLAGS += -Werror
-CXXFLAGS += ${OPTIMIZE}
+#CXXFLAGS += ${OPTIMIZE}
+CXXFLAGS += ${DEBUG}
+CXXFLAGS += ${FSANITIZE}
NAME = lowbat
@@ -46,11 +50,11 @@ MANPREFIX = $(PREFIX)/share/man
${OBJS_DIR}%.o: ${SRCS_DIR}%.cpp ${INCS_DIR}${INCS}
- @${MKDIR} ${OBJS_DIR}
+ ${MKDIR} ${OBJS_DIR}
${CXX} ${CXXFLAGS} -I${INCS_DIR} -c -o $@ $<
${NAME}: ${OBJS}
- @${MKDIR} ${TRGT_DIR}
+ ${MKDIR} ${TRGT_DIR}
${CXX} ${CXXFLAGS} -o ${TRGT_DIR}${NAME} ${OBJS}
all: ${NAME}