X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bsb%2Fdaemon%2FMakefile;h=9f2ce2bcefa8816a44aca8951e8b84a60c520c58;hb=bf0654541098924ece032c4ac12b8b5d2589f4b0;hp=1e97498cae88e04cb74d2ee99c62cf317c2c11eb;hpb=9f654a4e81306616ee318ebfcdd2082fa6eab27b;p=home-hw.git diff --git a/bsb/daemon/Makefile b/bsb/daemon/Makefile index 1e97498..9f2ce2b 100644 --- a/bsb/daemon/Makefile +++ b/bsb/daemon/Makefile @@ -1,4 +1,24 @@ +BUILD_FOR_TURRIS=1 + +ifdef BUILD_FOR_TURRIS + +TOPDIR=/root/turris + +include $(TOPDIR)/rules.mk +include $(TOPDIR)/include/package.mk + +PC := PATH=$(STAGING_DIR_HOST)/bin:$(PATH) PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) PKG_CONFIG_LIBDIR=$(PKG_CONFIG_PATH) STAGING_PREFIX=$(STAGING_DIR)/usr $(PKG_CONFIG) + +export PATH=$(TARGET_PATH_PKG) +CC=$(TARGET_CC_NOCACHE) +LD=$(TARGET_LD_NOCACHE) + +else + PC := PKG_CONFIG_PATH=/home/mj/tmp/bsb/root/lib/pkgconfig pkg-config + +endif + USB_CFLAGS := $(shell $(PC) --cflags libusb-1.0) USB_LDFLAGS := $(shell $(PC) --libs libusb-1.0) UCW_CFLAGS := $(shell $(PC) --cflags libucw) @@ -7,9 +27,7 @@ UCW_LDFLAGS := $(shell $(PC) --libs libucw) CFLAGS=$(USB_CFLAGS) $(UCW_CFLAGS) -std=gnu1x -O2 -Wall -Wextra -Wno-parentheses LDFLAGS=$(USB_LDFLAGS) $(UCW_LDFLAGS) -lmosquitto -all: burrow-bsb - -burrow-usb: burrow-usb.c ../firmware/interface.h +all: burrow-bsb bsb-monitor -clean: - rm -f burrow-bsb +# burrow-bsb: burrow-bsb.c ../firmware/interface.h +# bsb-monitor: bsb-monitor.c ../firmware/interface.h