]> mj.ucw.cz Git - home-hw.git/blob - rainbow/desktop/Makefile
Bifrost: Install
[home-hw.git] / rainbow / desktop / Makefile
1 PC=pkg-config
2 UCW_CFLAGS := $(shell $(PC) --cflags libucw)
3 UCW_LIBS := $(shell $(PC) --libs libucw)
4 MOSQUITTO_CFLAGS := $(shell $(PC) --cflags libmosquitto)
5 MOSQUITTO_LIBS := $(shell $(PC) --libs libmosquitto)
6 SYSTEMD_CFLAGS := $(shell $(PC) --cflags libsystemd)
7 SYSTEMD_LIBS := $(shell $(PC) --libs libsystemd)
8
9 CFLAGS=-O2 -Wall -Wextra -Wno-sign-compare -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes $(UCW_CFLAGS) $(SYSTEMD_CFLAGS) $(MOSQUITTO_CFLAGS)
10 LDLIBS=$(UCW_LIBS) $(SYSTEMD_LIBS) $(MOSQUITTO_LIBS) -lpthread -lm
11
12 all: burrow-bifrost
13
14 burrow-bifrost: burrow-bifrost.o
15
16 install:
17         install -m 755 burrow-bifrost ~/bin/
18
19 clean:
20         rm -f *.o burrow-bifrost
21
22 .PHONY: all clean