diff options
Diffstat (limited to 'mfi-mqtt/Makefile')
-rw-r--r-- | mfi-mqtt/Makefile | 12 |
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 @@ | |||
1 | BUILDROOT := $(HOME)/tmp/buildroot-2019.02.7 | ||
2 | MIPS_GCC := $(BUILDROOT)/output/host/bin/mips-buildroot-linux-uclibc-gcc | ||
3 | |||
4 | mfi-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 | ||
11 | clean: | ||
12 | rm -f *.o mfi-mqtt-mips | ||