blob: b667d15e9a61268b796177d971b80de9a8e5c602 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
BUILDROOT := $(HOME)/tmp/buildroot-2019.02.7
.PHONY: all
all:
CGO_ENABLED=0 go build -o mfi_homekit main.go
.PHONY: docker
docker:
cp mfi_homekit docker/mfi_homekit; \
cd docker; \
docker build -t docker.crute.me/mfi_homekit:latest .; \
docker push docker.crute.me/mfi_homekit:latest
mfi-mqtt-mips: mfi-mqtt.c
$(BUILDROOT)/output/host/bin/mips-buildroot-linux-uclibc-gcc \
-Wall -o $@ $< \
-lpthread -lmosquitto -ljson-c -static
|