summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-02-21 15:53:35 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2011-02-21 15:53:35 +0100
commit0058ac3010d79bf086ddfa0be9a44ee419bf7058 (patch)
tree7044300a72c731ffc6f9d6bca94d2ef2bdd76b0b /Makefile
parentd3f4e55538788ec7569c5eb4a21622c516aa0d92 (diff)
downloadMAC-Telnet-0058ac3010d79bf086ddfa0be9a44ee419bf7058.tar.gz
MAC-Telnet-0058ac3010d79bf086ddfa0be9a44ee419bf7058.zip
Added MT_PTYPE_PING/PONG support in mactelnetd and added a macping tool. For this udp-checksum code was also added for raw packets.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 92849ad..e3c1fa1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,17 +1,18 @@
-all: mactelnet mactelnetd mndp
+all: mactelnet macping mactelnetd mndp
clean: dist-clean
dist-clean:
- rm -f mactelnet mactelnetd mndp
+ rm -f mactelnet macping mactelnetd mndp
install: all
cp mndp $(DESTDIR)/usr/bin/
+ cp macping $(DESTDIR)/usr/bin/
cp mactelnet $(DESTDIR)/usr/bin/
cp mactelnetd $(DESTDIR)/usr/sbin/
cp mactelnetd.users $(DESTDIR)/etc/
- chown $(DESTDIR)/etc/mactelnetd.users
+ chown root $(DESTDIR)/etc/mactelnetd.users
chmod 600 $(DESTDIR)/etc/mactelnetd.users
mactelnet: config.h udp.h udp.c mactelnet.c mactelnet.h protocol.c protocol.h console.c console.h devices.c devices.h md5.c md5.h
@@ -22,3 +23,6 @@ mactelnetd: config.h mactelnetd.c udp.h udp.c protocol.c protocol.h devices.c de
mndp: config.h mndp.c protocol.c protocol.h
gcc -Wall -g -o mndp mndp.c protocol.c
+
+macping: config.h macping.c udp.c udp.h devices.c devices.h protocol.c protocol.h
+ gcc -Wall -g -o macping macping.c devices.c udp.c protocol.c