summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bdce54d..b667d15 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
1BUILDROOT := $(HOME)/tmp/buildroot-2019.02.7
2
1.PHONY: all 3.PHONY: all
2all: 4all:
3 CGO_ENABLED=0 go build -o mfi_homekit main.go 5 CGO_ENABLED=0 go build -o mfi_homekit main.go
@@ -8,3 +10,8 @@ docker:
8 cd docker; \ 10 cd docker; \
9 docker build -t docker.crute.me/mfi_homekit:latest .; \ 11 docker build -t docker.crute.me/mfi_homekit:latest .; \
10 docker push docker.crute.me/mfi_homekit:latest 12 docker push docker.crute.me/mfi_homekit:latest
13
14mfi-mqtt-mips: mfi-mqtt.c
15 $(BUILDROOT)/output/host/bin/mips-buildroot-linux-uclibc-gcc \
16 -Wall -o $@ $< \
17 -lpthread -lmosquitto -ljson-c -static