]> the.earth.li Git - mqtt-arp.git/commitdiff
Add a basic Makefile
authorJonathan McDowell <noodles@earth.li>
Wed, 23 May 2018 18:29:39 +0000 (19:29 +0100)
committerJonathan McDowell <noodles@earth.li>
Wed, 23 May 2018 18:29:39 +0000 (19:29 +0100)
Makefile [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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