From 8d453fb28dc7c07f0453d8d1063e5d2e72b9a320 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Dec 2019 13:13:07 +0100 Subject: oop rework in progress --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2d6149c..29219d6 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ TRGT_DIR = bin/ SRCS_NAME = main.cpp SRCS_NAME += jo_exec.cpp SRCS_NAME += jo_notify.cpp +SRCS_NAME += jo_lowbat.cpp SRCS = $(addprefix ${SRCS_DIR}, ${SRCS_NAME}) @@ -50,13 +51,11 @@ MANPREFIX = $(PREFIX)/share/man ${OBJS_DIR}%.o: ${SRCS_DIR}%.cpp ${INCS_DIR}${INCS} -ifeq ("$(wildcard ${OBJS_DIR})","") - ${MKDIR} ${OBJS_DIR} -endif + @${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} -- cgit v1.2.3