make: resolve LDFLAGS based on system
This commit is contained in:
parent
9494b18325
commit
2e181319ed
5
makefile
5
makefile
@ -1,7 +1,10 @@
|
|||||||
|
.POSIX:
|
||||||
|
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
CFLAGS = -Wall -pedantic --std=c99 -O2
|
CFLAGS = -Wall -pedantic --std=c99 -O2
|
||||||
DBG_CFLAGS = -Wall -Werror -pedantic --std=c99 -O0 -g
|
DBG_CFLAGS = -Wall -Werror -pedantic --std=c99 -O0 -g
|
||||||
LDFLAGS != if [ "$(uname)" = 'Linux' ]; then printf '-lcrypt'; fi
|
SYSTEM != uname
|
||||||
|
LDFLAGS != if [ '${SYSTEM}' = 'Linux' ]; then echo '-lcrypt'; fi
|
||||||
PREFIX = /usr/local
|
PREFIX = /usr/local
|
||||||
MANPREFIX = ${PREFIX}/share/man
|
MANPREFIX = ${PREFIX}/share/man
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user