We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c943d2e commit 34cbe66Copy full SHA for 34cbe66
Makefile
@@ -1,9 +1,15 @@
1
+UNAME_S := $(shell uname -s)
2
+
3
CFLAGS += $(shell pkg-config --cflags freetype2 x11 openal)
4
CFLAGS += $(shell pkg-config --cflags dbus-1)
5
CFLAGS += -g -pthread -std=gnu99
6
LDFLAGS += $(shell pkg-config --libs freetype2 x11 openal)
7
LDFLAGS += $(shell pkg-config --libs dbus-1)
-LDFLAGS += -lX11 -lXft -lXrender -ltoxcore -ltoxav -ltoxdns -lopenal -pthread -lresolv -ldl -lm -lfontconfig -lv4lconvert -lvpx -lXext
8
+LDFLAGS += -lX11 -lXft -lXrender -ltoxcore -ltoxav -ltoxdns -lopenal -pthread -lm -lfontconfig -lv4lconvert -lvpx -lXext
9
10
+ifeq ($(UNAME_S),Linux)
11
+ LDFLAGS += -lresolv -ldl
12
+endif
13
14
DESTDIR?= # empty
15
PREFIX?= /usr/local
0 commit comments