From 2eb120bf36471283d47fd02d4d6dd52d6803edb7 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Wed, 23 May 2018 19:29:39 +0100 Subject: [PATCH] Add a basic Makefile --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 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 -- 2.39.5