summaryrefslogtreecommitdiff
path: root/mfi-mqtt/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mfi-mqtt/Makefile')
-rw-r--r--mfi-mqtt/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/mfi-mqtt/Makefile b/mfi-mqtt/Makefile
new file mode 100644
index 0000000..a30dfbd
--- /dev/null
+++ b/mfi-mqtt/Makefile
@@ -0,0 +1,12 @@
1BUILDROOT := $(HOME)/tmp/buildroot-2019.02.7
2MIPS_GCC := $(BUILDROOT)/output/host/bin/mips-buildroot-linux-uclibc-gcc
3
4mfi-mqtt-mips: reporting.o mosquitto.o mfi-mqtt.o
5 $(MIPS_GCC) -o $@ $^ -lpthread -lmosquitto -ljson-c -static
6
7%.o: %.c
8 $(MIPS_GCC) -Wall -c -o $@ $<
9
10.PHONY: clean
11clean:
12 rm -f *.o mfi-mqtt-mips