diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,5 @@ | |||
1 | BUILDROOT := $(HOME)/tmp/buildroot-2019.02.7 | ||
2 | |||
1 | .PHONY: all | 3 | .PHONY: all |
2 | all: | 4 | all: |
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 | |||
14 | mfi-mqtt-mips: mfi-mqtt.c | ||
15 | $(BUILDROOT)/output/host/bin/mips-buildroot-linux-uclibc-gcc \ | ||
16 | -Wall -o $@ $< \ | ||
17 | -lpthread -lmosquitto -ljson-c -static | ||