aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Hummer12007 <hilobakho@gmail.com>2017-10-23 17:48:02 +0300
committerGravatar GitHub <noreply@github.com>2017-10-23 17:48:02 +0300
commitec0664a2814947e9e75316c5f893448286250a53 (patch)
tree476539c70a2096b8638b235243b765efbf58c868 /Makefile
parentb71a36b63cf0d0766f34c373ad585fea5e0b63f2 (diff)
Specify -lm after the main executable symbol
Specifying it before may cause issues with some compilers Minor ws cleanup in makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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