3 --- makefile.orig 2006-03-05 14:39:37.000000000 +0100
10 +MPEG4_ENABLE = $(WITH_FAAD)
13 # no need to touch anything below this line
14 # -----------------------------------------
18 MAKE = $(MAKE_COMMAND)
20 DEPS = daaplib_ libhttpd_
21 OBJS = daapd.o db.o dboutput.o songcache.o parsemp3.o util.o
22 LIBS = -ldaaplib -lhttpd-persistent -lid3tag -lz
23 -LIBPATH = -L. -L./daaplib/src -L./libhttpd/src -L/usr/local/lib
24 -INCPATH = -I. -I./daaplib/include -I./libhttpd/src -I/usr/local/include
26 -CFLAGS = -Wall -Wno-multichar
27 +LIBPATH = -L. -L./daaplib/src -L./libhttpd/src -L$(PREFIX)/lib $(LDFLAGS)
28 +INCPATH = -I. -I./daaplib/include -I./libhttpd/src -I$(PREFIX)/include
30 +CFLAGS += -Wall -Wno-multichar
33 ifeq ($(HOWL_ENABLE),1)
34 - HOWLDIRS := $(sort $(wildcard /usr/local/include/howl*) )
35 + HOWLDIRS := $(sort $(wildcard $(PREFIX)/include/howl*) )
36 ifeq ($(words $(HOWLDIRS) ), 0)
37 -$(error howl not found in /usr/local/include. Install howl or disable it in the makefile)
38 +$(error howl not found in $(PREFIX)/include. Install howl or disable it in the makefile)
40 HOWLRECENT := $(word $(words $(HOWLDIRS)),$(HOWLDIRS) )
41 INCPATH := $(INCPATH) -I$(HOWLRECENT)
42 @@ -46,11 +46,7 @@ ifneq ($(shell $(CC) -E -dM - < /dev/nul
43 LIBS := $(LIBS) -lsocket -lnsl
46 -ifneq ($(shell $(CC) -E -dM - < /dev/null | grep __FreeBSD__),)
47 - LIBS := $(LIBS) -pthread
49 - LIBS := $(LIBS) -lpthread
51 +LIBS+= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
53 ifneq ($(shell $(CC) -E -dM - < /dev/null | grep __sgi__),)
54 LIBS := $(LIBS) /usr/lib/snprintf.o
55 @@ -80,8 +76,6 @@ clean:
58 install: $(DEPS) $(TARGET)
59 - cd libhttpd && $(MAKE) install
60 - cd daaplib/src && $(MAKE) install
61 cp $(TARGET) $(DEPLOY)/bin
62 chmod a+rx $(DEPLOY)/bin/$(TARGET)
63 cp $(TARGET).8 $(DEPLOY)/man/man8