1 LIBUSB_CFLAGS := $(shell pkg-config --cflags libusb-1.0)
2 LIBUSB_LIBS := $(shell pkg-config --libs libusb-1.0)
4 LIBPULSE_CFLAGS := $(shell pkg-config --cflags libpulse)
5 LIBPULSE_LIBS := $(shell pkg-config --libs libpulse)
7 LIBUCW_PKG := /home/mj/src/libucw/run/lib/pkgconfig
8 LIBUCW_CFLAGS := $(shell PKG_CONFIG_PATH=$(LIBUCW_PKG) pkg-config --cflags libucw)
9 LIBUCW_LIBS := $(shell PKG_CONFIG_PATH=$(LIBUCW_PKG) pkg-config --libs libucw)
11 CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(LIBUCW_CFLAGS) $(LIBUSB_CFLAGS) $(LIBPULSE_CFLAGS) -g2
12 LDLIBS=$(LIBUCW_LIBS) $(LIBUSB_LIBS) $(LIBPULSE_LIBS)
16 ursaryd: ursaryd.o mpd.o nocturn.o pulse.o pulse-ucw.o
18 ursaryd.o: ursaryd.c ursaryd.h
19 mpd.o: mpd.c ursaryd.h
20 nocturn.o: nocturn.c ursaryd.h
21 pulse.o: pulse.c ursaryd.h
22 pulse-ucw.o: pulse-ucw.c ursaryd.h
25 rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`