diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 22:41:33 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-06 22:41:33 +0200 |
commit | 5f1fdd425ad147efd33b54b39deb1d50459185c2 (patch) | |
tree | 408ca975011c6e7d62826891189d3a69da870d7f /Makefile | |
parent | Canceled system() remplacement for libnotify as it leaks a lot (diff) | |
download | lowbat-gnu-5f1fdd425ad147efd33b54b39deb1d50459185c2.tar.gz lowbat-gnu-5f1fdd425ad147efd33b54b39deb1d50459185c2.tar.bz2 lowbat-gnu-5f1fdd425ad147efd33b54b39deb1d50459185c2.tar.xz lowbat-gnu-5f1fdd425ad147efd33b54b39deb1d50459185c2.tar.zst lowbat-gnu-5f1fdd425ad147efd33b54b39deb1d50459185c2.zip |
ACPI is not required anymore
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -23,15 +23,15 @@ FSANITIZE = -fsanitize=address CXX = g++ -OPTIMIZE = -O2 +OPTIMIZE = -O2 OPTIMIZE += -pipe -CXXFLAGS = -Wall +CXXFLAGS = -Wall CXXFLAGS += -Wextra CXXFLAGS += -Werror CXXFLAGS += ${OPTIMIZE} -#CXXFLAGS += ${DEBUG} -#CXXFLAGS += ${FSANITIZE} +# CXXFLAGS += ${DEBUG} +# CXXFLAGS += ${FSANITIZE} NAME = lowbat @@ -41,13 +41,15 @@ RM = rm -rf OS = $(shell uname -s) ifeq ($(OS), Darwin) PREFIX = /usr/local +endif +ifeq ($(OS), FreeBSD) + PREFIX = /usr/local else PREFIX = /usr endif MANPREFIX = $(PREFIX)/share/man - ${OBJS_DIR}%.o: ${SRCS_DIR}%.cpp ${INCS_DIR}${INCS} @${MKDIR} ${OBJS_DIR} ${CXX} -c ${CXXFLAGS} -I${INCS_DIR} -o $@ $< @@ -56,17 +58,17 @@ ${TRGT_DIR}${NAME}: ${OBJS} @${MKDIR} ${TRGT_DIR} ${CXX} ${CXXFLAGS} -o ${TRGT_DIR}${NAME} ${OBJS} -all: ${TRGT_DIR}${NAME} +all: ${TRGT_DIR}${NAME} clean: ${RM} ${OBJS_DIR} -fclean: clean +fclean: clean ${RM} ${TRGT_DIR} -re: fclean all +re: fclean all -install: all +install: all mkdir -p $(DESTDIR)$(PREFIX)/bin cp -f bin/lowbat $(DESTDIR)$(PREFIX)/bin/ chmod 755 $(DESTDIR)$(PREFIX)/bin/lowbat |