]> mj.ucw.cz Git - ursary.git/blobdiff - Makefile
Better IR control of lights
[ursary.git] / Makefile
index 065d8e1d2cb5c1c280a9c95b0035e792b066b74f..b4af2b03de83ae21f73de2b9b7a3d65cd58232be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,12 @@ LIBPULSE_LIBS := $(shell $(PC) --libs libpulse)
 LIBUCW_CFLAGS := $(shell $(PC) --cflags libucw)
 LIBUCW_LIBS := $(shell $(PC) --libs libucw)
 
-CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(LIBUCW_CFLAGS) $(LIBUSB_CFLAGS) $(LIBPULSE_CFLAGS) -g2
-LDLIBS=$(LIBUCW_LIBS) $(LIBUSB_LIBS) $(LIBPULSE_LIBS) -lm
+CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wno-sign-compare -Wredundant-decls -std=gnu99 $(LIBUCW_CFLAGS) $(LIBUSB_CFLAGS) $(LIBPULSE_CFLAGS) -g2
+LDLIBS=$(LIBUCW_LIBS) $(LIBUSB_LIBS) $(LIBPULSE_LIBS) -lmosquitto
 
 all: ursaryd
 
-ursaryd: ursaryd.o mpd.o nocturn.o pulse.o pulse-ucw.o usb.o dmx.o
+ursaryd: ursaryd.o mpd.o nocturn.o pulse.o pulse-ucw.o usb.o mqtt.o
 
 ursaryd.o: ursaryd.c ursaryd.h usb.h
 mpd.o: mpd.c ursaryd.h
@@ -23,7 +23,7 @@ nocturn.o: nocturn.c ursaryd.h usb.h
 pulse.o: pulse.c ursaryd.h
 pulse-ucw.o: pulse-ucw.c ursaryd.h
 usb.o: usb.c ursaryd.h usb.h
-dmx.o: dmx.c ursaryd.h usb.h dmx-interface.h
+mqtt.o: mqtt.c ursaryd.h
 
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
@@ -31,4 +31,4 @@ clean:
 
 install: all
        install -m 755 ursaryd /usr/local/sbin/
-       install -m 755 burrow-ursary.service /etc/systemd/system/
+       install -m 755 burrow-ursary.service /etc/systemd/system/