aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:27:38 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2019-12-29 12:27:38 +0100
commite33844407ba09d57824e1a46d4bb03ec256eb279 (patch)
treef64fa33c5c139a3e968a8d544e851c0457e09d0d /Makefile
parentBug fix (diff)
downloadlowbat-gnu-e33844407ba09d57824e1a46d4bb03ec256eb279.tar.gz
lowbat-gnu-e33844407ba09d57824e1a46d4bb03ec256eb279.tar.bz2
lowbat-gnu-e33844407ba09d57824e1a46d4bb03ec256eb279.tar.xz
lowbat-gnu-e33844407ba09d57824e1a46d4bb03ec256eb279.tar.zst
lowbat-gnu-e33844407ba09d57824e1a46d4bb03ec256eb279.zip
Makefile update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 12 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 406346e..8af806e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,17 +17,19 @@ INCS = jo_lowbat.hpp
OBJS = $(patsubst ${SRCS_DIR}%.cpp,${OBJS_DIR}%.o,${SRCS})
-CC = g++
-
-DEBUG = -g3
+DEBUG += Og -ggdb
+DEBUG = -ggdb
FSANITIZE = -fsanitize=address
-OPTIMIZE = -O3
+CXX = g++
+
+OPTIMIZE = -O2
+OPTIMIZE += -pipe
-CFLAGS = -Wall
-CFLAGS += -Wextra
-CFLAGS += -Werror
-CFLAGS += ${OPTIMIZE}
+CXXFLAGS = -Wall
+CXXFLAGS += -Wextra
+CXXFLAGS += -Werror
+CXXFLAGS += ${OPTIMIZE}
NAME = lowbat
@@ -45,11 +47,11 @@ MANPREFIX = $(PREFIX)/share/man
${OBJS_DIR}%.o: ${SRCS_DIR}%.cpp ${INCS_DIR}${INCS}
@${MKDIR} ${OBJS_DIR}
- ${CC} ${CFLAGS} -I${INCS_DIR} -c -o $@ $<
+ ${CXX} ${CXXFLAGS} -I${INCS_DIR} -c -o $@ $<
${NAME}: ${OBJS}
@${MKDIR} ${TRGT_DIR}
- ${CC} ${CFLAGS} -o ${TRGT_DIR}${NAME} ${OBJS}
+ ${CXX} ${CXXFLAGS} -o ${TRGT_DIR}${NAME} ${OBJS}
all: ${NAME}