--- file_not_specified_in_diff +++ file_not_specified_in_diff @@ -, +, @@ --- a/source/Makefile +++ b/source/Makefile @@ -6,10 +6,10 @@ LIB := libshellfm.so STATIC := libshellfm.a ifeq ($(shell uname -s), OpenBSD) - LDFLAGS += -lossaudio + LIBRARIES += -lossaudio endif ifeq ($(shell uname -s), NetBSD) - LDFLAGS += -lossaudio + LIBRARIES += -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) \ +LIBRARIES += $(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) + LIBRARIES += $(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) $(LIBRARIES) -o $(BINARY) clean : rm -f $(OBJECT) $(BINARY) $(LIB) $(STATIC)