summaryrefslogtreecommitdiff
blob: fd0de6dbe0402771a6c74315d40062f4c5a15d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- a/source/Makefile
+++ b/source/Makefile
@@ -6,10 +6,10 @@ LIB	:= libshellfm.so
 STATIC	:= libshellfm.a
 
 ifeq ($(shell uname -s), OpenBSD)
-	LDFLAGS += -lossaudio
+	LDLIBS += -lossaudio
 endif
 ifeq ($(shell uname -s), NetBSD)
-	LDFLAGS += -lossaudio
+	LDLIBS += -lossaudio
 endif
 ifeq ($(shell uname -s), Darwin)
 	CFLAGS += -D__darwin__
@@ -18,12 +18,12 @@ endif
 CFLAGS  += -Os -Wall -W -I./include/ -DLIBAO \
 	   $(shell pkg-config --cflags mad) \
 	   $(shell pkg-config --cflags ao)
-LDFLAGS += $(shell pkg-config --libs mad) \
+LDLIBS += $(shell pkg-config --libs mad) \
 	   $(shell pkg-config --libs ao)
 
 ifeq ($(shell pkg-config --exists taglib_c && echo 1), 1)
 	CFLAGS  += $(shell pkg-config --cflags taglib_c) -DTAGLIB
-	LDFLAGS += $(shell pkg-config --libs taglib_c)
+	LDLIBS += $(shell pkg-config --libs taglib_c)
 endif
 
 .PHONY: clean tags cscope
@@ -40,7 +40,7 @@ $(STATIC) : $(OBJECT)
 	$(AR) -cvq $(STATIC) $(OBJECT)
 
 $(BINARY)	: $(STATIC)
-	$(CC) -o $(BINARY) $(CFLAGS) $(MAIN) $(LDFLAGS) $(STATIC)
+	$(CC) $(CFLAGS) $(LDFLAGS) $(MAIN) $(STATIC) $(LDLIBS) -o $(BINARY)
 
 clean		:
 	rm -f $(OBJECT) $(BINARY) $(LIB) $(STATIC)