From ec0664a2814947e9e75316c5f893448286250a53 Mon Sep 17 00:00:00 2001 From: Hummer12007 Date: Mon, 23 Oct 2017 17:48:02 +0300 Subject: Specify -lm after the main executable symbol Specifying it before may cause issues with some compilers Minor ws cleanup in makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index acbea1a..5980be1 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ VERSION = 0.3 -CFLAGS += -std=c99 -g -Wall -Wextra -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L -lm +CFLAGS += -std=c99 -g -Wall -Wextra -DVERSION=\"${VERSION}\" -D_POSIX_C_SOURCE=200809L +LDLIBS = -lm PREFIX ?= /usr BINDIR = ${DESTDIR}${PREFIX}/bin @@ -23,7 +24,6 @@ install_udev_rules: install -d ${DESTDIR}${UDEVDIR} install -m 0644 90-brightnessctl.rules ${DESTDIR}${UDEVDIR} - clean: rm -f brightnessctl -- cgit v1.2.3