mirror of
https://github.com/leahneukirchen/mblaze
synced 2024-11-11 13:10:32 +00:00
GNUmakefile: detect OS
This commit is contained in:
parent
7b5533f518
commit
1fbebe4d16
11
GNUmakefile
11
GNUmakefile
@ -1,12 +1,17 @@
|
||||
.error : This Makefile needs GNU make
|
||||
|
||||
CFLAGS+=-g -O2 -Wall -Wno-switch -Wextra -fstack-protector-strong -D_FORTIFY_SOURCE=2
|
||||
LDLIBS=-lrt
|
||||
ifdef OPENBSD
|
||||
|
||||
OS := $(shell uname)
|
||||
|
||||
ifeq ($(OS),OpenBSD)
|
||||
CFLAGS+=-I/usr/local/include -pthread
|
||||
LDLIBS=-L/usr/local/lib -liconv -pthread
|
||||
endif
|
||||
|
||||
ifeq ($(OS),Darwin)
|
||||
LDLIBS=-liconv
|
||||
endif
|
||||
|
||||
DESTDIR=
|
||||
PREFIX=/usr/local
|
||||
BINDIR=$(PREFIX)/bin
|
||||
|
Loading…
Reference in New Issue
Block a user