Root/listener/patches/100-makefile.patch

1--- a/Makefile
2+++ b/Makefile
3@@ -2,7 +2,7 @@ VERSION=1.7.2
4 
5 INSTALL_PREFIX=/usr/local
6 
7-CFLAGS+=-g -O2 -Wall -DVERSION=\"$(VERSION)\"
8+CFLAGS+=-DVERSION=\"$(VERSION)\"
9 
10 OBJSsl=sl.o snd_dev.o error.o utils.o
11 OBJSli=listener.o snd_dev.o error.o utils.o lib.o
12@@ -11,13 +11,13 @@ OBJSsp=snd_dev.o lsp.o error.o utils.o
13 all: setlistener listener listenersoundpipe
14 
15 setlistener: $(OBJSsl)
16- $(CC) -g -Wall -W $(OBJSsl) -ldl -lncurses -o setlistener
17+ $(CC) $(CFLAGS) $(OBJSsl) $(LDFLAGS) -ldl -lncurses -o setlistener
18 
19 listener: $(OBJSli)
20- $(CC) -g -Wall -W $(OBJSli) -ldl -lm -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
21+ $(CC) $(CFLAGS) $(OBJSli) $(LDFLAGS) -ldl -lm -lsndfile -o listener -DCONFIGFILE=$(INSTALL_PREFIX)/etc/listener.conf
22 
23 listenersoundpipe: $(OBJSsp)
24- $(CC) -g -Wall -W $(OBJSsp) -o listenersoundpipe
25+ $(CC) $(CFLAGS) $(OBJSsp) -o listenersoundpipe
26 
27 install: setlistener listener listenersoundpipe
28     cp setlistener $(INSTALL_PREFIX)/bin
29

Archive Download this file



interactive