]> mj.ucw.cz Git - home-hw.git/blob - bsb/daemon/Makefile
Merge branch 'master' of ssh://git.ucw.cz/home/mj/GIT/home-hw
[home-hw.git] / bsb / daemon / Makefile
1 PC := PKG_CONFIG_PATH=/home/mj/tmp/bsb/root/lib/pkgconfig pkg-config
2 USB_CFLAGS := $(shell $(PC) --cflags libusb-1.0)
3 USB_LDFLAGS := $(shell $(PC) --libs libusb-1.0)
4 UCW_CFLAGS := $(shell $(PC) --cflags libucw)
5 UCW_LDFLAGS := $(shell $(PC) --libs libucw)
6
7 CFLAGS=$(USB_CFLAGS) $(UCW_CFLAGS) -std=gnu1x -O2 -Wall -Wextra -Wno-parentheses
8 LDFLAGS=$(USB_LDFLAGS) $(UCW_LDFLAGS) -lmosquitto
9
10 all: burrow-bsb
11
12 burrow-usb: burrow-usb.c ../firmware/interface.h
13
14 clean:
15         rm -f burrow-bsb