Files
shairport-sync/Makefile
T
Paul LietarandJames Laird 3896909080 Reorganize mDNS advertisement
mDNS is now handled more or less in the same way audio is.
Multiple mDNS backends are available, shairport tries them all until one
works.

This makes it, IMHO, cleaner, and easier to add other mDNS backends in
the future, such as using tinysvcmdns or dns-sd library.
Also it will also allow to define mDNS backends as plugins, in a similar
way it is done in PR #230.
2013-10-22 10:33:41 +11:00

50 lines
837 B
Makefile

ifeq ($(wildcard config.mk),)
$(warning config.mk does not exist, configuring.)
config.mk:
sh ./configure
$(MAKE) shairport
endif
-include config.mk
PREFIX ?= /usr/local
SRCS := shairport.c daemon.c rtsp.c mdns.c mdns_external.c common.c rtp.c player.c alac.c audio.c audio_dummy.c audio_pipe.c
ifdef CONFIG_SNDIO
SRCS += audio_sndio.c
endif
ifdef CONFIG_AO
SRCS += audio_ao.c
endif
ifdef CONFIG_PULSE
SRCS += audio_pulse.c
endif
ifdef CONFIG_ALSA
SRCS += audio_alsa.c
endif
ifdef CONFIG_AVAHI
SRCS += mdns_avahi.c
endif
ifndef CONFIG_HAVE_GETOPT_H
SRCS += getopt_long.c
endif
# default target
all: shairport
install: shairport
install -m 755 -d $(PREFIX)/bin
install -m 755 shairport $(PREFIX)/bin/shairport
shairport: $(SRCS) config.h config.mk
$(CC) $(CFLAGS) $(SRCS) $(LDFLAGS) -o shairport
clean:
rm -f shairport