diff options
author | Hummer12007 <hilobakho@gmail.com> | 2017-10-23 17:48:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 17:48:02 +0300 |
commit | ec0664a2814947e9e75316c5f893448286250a53 (patch) | |
tree | 476539c70a2096b8638b235243b765efbf58c868 | |
parent | b71a36b63cf0d0766f34c373ad585fea5e0b63f2 (diff) |
Specify -lm after the main executable symbol
Specifying it before may cause issues with some compilers
Minor ws cleanup in makefile
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |