QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.5
}
-INCLUDEPATH += ../include/
+INCLUDEPATH += ../src/include/
SOURCES += main.cpp\
- ../src/utils.c \
- ../src/sdp.c \
- ../src/rsapem.c \
- ../src/rsakey.c \
- ../src/raop.c \
- ../src/raop_rtp.c \
- ../src/raop_buffer.c \
- ../src/netutils.c \
- ../src/httpd.c \
- ../src/http_response.c \
- ../src/http_request.c \
- ../src/http_parser.c \
- ../src/dnssd.c \
- ../src/base64.c \
- ../src/alac/alac.c \
- ../src/crypto/sha1.c \
- ../src/crypto/rc4.c \
- ../src/crypto/md5.c \
- ../src/crypto/hmac.c \
- ../src/crypto/bigint.c \
- ../src/crypto/aes.c \
+ ../src/lib/utils.c \
+ ../src/lib/sdp.c \
+ ../src/lib/rsapem.c \
+ ../src/lib/rsakey.c \
+ ../src/lib/raop.c \
+ ../src/lib/raop_rtp.c \
+ ../src/lib/raop_buffer.c \
+ ../src/lib/netutils.c \
+ ../src/lib/httpd.c \
+ ../src/lib/http_response.c \
+ ../src/lib/http_request.c \
+ ../src/lib/http_parser.c \
+ ../src/lib/dnssd.c \
+ ../src/lib/base64.c \
+ ../src/lib/alac/alac.c \
+ ../src/lib/crypto/sha1.c \
+ ../src/lib/crypto/rc4.c \
+ ../src/lib/crypto/md5.c \
+ ../src/lib/crypto/hmac.c \
+ ../src/lib/crypto/bigint.c \
+ ../src/lib/crypto/aes.c \
+ ../src/lib/logger.c \
audiooutput.cpp \
raopservice.cpp \
mainapplication.cpp \
- raopcallbackhandler.cpp \
- ../src/logger.c
+ raopcallbackhandler.cpp
HEADERS += \
audiooutput.h \
-CFLAGS:=-g -Wall -Iinclude/
+CFLAGS:=-g -Wall -Isrc/include/
LDFLAGS:=-lm
-LIB_OBJS=src/alac/alac.o src/crypto/aes.o src/crypto/bigint.o src/crypto/hmac.o src/crypto/md5.o src/crypto/rc4.o src/crypto/sha1.o src/sdp.o src/raop_buffer.o src/raop_rtp.o src/http_response.o src/http_request.o src/http_parser.o src/httpd.o src/raop.o src/rsakey.o src/rsapem.o src/dnssd.o src/netutils.o src/utils.o src/base64.o src/logger.o
+LIB_OBJS=src/lib/alac/alac.o src/lib/crypto/aes.o src/lib/crypto/bigint.o src/lib/crypto/hmac.o src/lib/crypto/md5.o src/lib/crypto/rc4.o src/lib/crypto/sha1.o src/lib/sdp.o src/lib/raop_buffer.o src/lib/raop_rtp.o src/lib/http_response.o src/lib/http_request.o src/lib/http_parser.o src/lib/httpd.o src/lib/raop.o src/lib/rsakey.o src/lib/rsapem.o src/lib/dnssd.o src/lib/netutils.o src/lib/utils.o src/lib/base64.o src/lib/logger.o
all: example
-example: test/example.o $(LIB_OBJS)
- $(CC) $(CFLAGS) test/example.o $(LIB_OBJS) -o $@ $(LDFLAGS)
+example: src/test/example.o $(LIB_OBJS)
+ $(CC) $(CFLAGS) src/test/example.o $(LIB_OBJS) -o $@ $(LDFLAGS)
clean:
- rm -f example test/*.o $(LIB_OBJS)
+ rm -f example src/test/*.o $(LIB_OBJS)
while(1) {
int volume_changed;
- float volume;
+ float volume = 0.0;
int flush;
fd_set rfds;
while (1) {
int volume_changed;
- float volume;
+ float volume = 0.0;
fd_set rfds;
struct timeval tv;