X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=Makefile;h=9e688b607a03ccf88b96d358d79a7d691ddd7f7c;hb=HEAD;hp=2aefb524058675ef02427e00b8a8838c34c06e2c;hpb=2eb120bf36471283d47fd02d4d6dd52d6803edb7;p=mqtt-arp.git diff --git a/Makefile b/Makefile index 2aefb52..9e688b6 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,18 @@ -CC = gcc -CFLAGS = -Wall -LDFLAGS = +CC ?= gcc +CFLAGS ?= -Wall +LDFLAGS ?= all: mqtt-arp mqtt-arp: mqtt-arp.o $(CC) -o $@ $< $(LDFLAGS) -lmosquitto +install: mqtt-arp + install -d $(DESTDIR)/etc + install -d $(DESTDIR)/usr/sbin + install mqtt-arp $(DESTDIR)/usr/sbin/ + install -m 600 mqtt-arp.conf $(DESTDIR)/etc/ + %.o: %.c $(CC) -c -o $@ $< $(CFLAGS)