From: Jonathan McDowell Date: Wed, 23 May 2018 18:29:39 +0000 (+0100) Subject: Add a basic Makefile X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=2eb120bf36471283d47fd02d4d6dd52d6803edb7;p=mqtt-arp.git Add a basic Makefile --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2aefb52 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS = -Wall +LDFLAGS = + +all: mqtt-arp + +mqtt-arp: mqtt-arp.o + $(CC) -o $@ $< $(LDFLAGS) -lmosquitto + +%.o: %.c + $(CC) -c -o $@ $< $(CFLAGS) + +.PHONY: clean + +clean: + rm -f mqtt-arp *.o