summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7668c9e..61cf567 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,16 @@
-udp-broadcast-relay: main.c
- gcc -g main.c -o udp-broadcast-relay
+udp-broadcast-relay: udp-broadcast-relay.c
+ gcc -O0 udp-broadcast-relay.c -o udp-broadcast-relay
clean:
- rm -f udp-broadcast-relay
+ -$(RM) *.o
+ -$(RM) udp-broadcast-relay
+ -$(RM) build-stamp
+ -$(RM) -rf debian/udp-broadcast-relay
+
+install:
+ install -d $(DESTDIR)/usr/sbin
+ install -d $(DESTDIR)/lib/systemd/system
+ install -d $(DESTDIR)/etc/default
+ install -m 0755 udp-broadcast-relay $(DESTDIR)/usr/sbin
+ install -m 0644 udp-broadcast-relay.service $(DESTDIR)/lib/systemd/system
+ install -m 0644 udp-broadcast-relay.default $(DESTDIR)/etc/default/udp-broadcast-relay