summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBoian Bonev <bbonev@ipacct.com>2012-10-30 08:18:39 +0200
committerBoian Bonev <bbonev@ipacct.com>2012-10-30 08:18:39 +0200
commit9fc27002f6566f01bc68303ed8496ae0059601f4 (patch)
tree40bd2a54aa6445a9fbd9cba603c44ee90e211121 /Makefile
parentfcd2e8043815a9f5ccfb11786579e1563adfb889 (diff)
parent11b726cee17622304839279fdce47feb9b86f4f7 (diff)
downloadMAC-Telnet-9fc27002f6566f01bc68303ed8496ae0059601f4.tar.gz
MAC-Telnet-9fc27002f6566f01bc68303ed8496ae0059601f4.zip
Merge branch 'master' of https://github.com/haakonnessjoen/MAC-Telnet
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 10 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 15a73c1..7bf4f1f 100644
--- a/Makefile
+++ b/Makefile
@@ -5,13 +5,16 @@ CC?=gcc
all: macping mndp mactelnet mactelnetd
-clean: dist-clean
+clean: distclean
-dist-clean:
+distclean:
rm -f mactelnet macping mactelnetd mndp
rm -f *.o
-dist: dist-clean po/mactelnet.pot
+potclean:
+ rm -f po/*.pot
+
+dist: distclean potclean pot
install: all install-docs
install -d $(DESTDIR)/usr/bin
@@ -27,6 +30,8 @@ install-docs:
install -d $(DESTDIR)/usr/share/man/man1/
install docs/*.1 $(DESTDIR)/usr/share/man/man1/
+pot: po/mactelnet.pot
+
po/mactelnet.pot: *.c
xgettext --package-name=mactelnet --msgid-bugs-address=haakon.nessjoen@gmail.com -d mactelnet -C -c_ -k_ -kgettext_noop *.c -o po/mactelnet.pot
@@ -42,8 +47,8 @@ interfaces.o: interfaces.c interfaces.h
md5.o: md5.c md5.h
${CC} -Wall ${CFLAGS} -c md5.c
-mactelnet: config.h mactelnet.c mactelnet.h protocol.o console.c console.h interfaces.o md5.o
- ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mactelnet mactelnet.c protocol.o console.c interfaces.o md5.o ${LIBS}
+mactelnet: config.h mactelnet.c mactelnet.h protocol.o console.c console.h interfaces.o md5.o mndp.c
+ ${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mactelnet mactelnet.c protocol.o console.c interfaces.o md5.o -DFROM_MACTELNET mndp.c ${LIBS}
mactelnetd: config.h mactelnetd.c protocol.o interfaces.o console.c console.h users.o users.h md5.o
${CC} -Wall ${CFLAGS} ${LDFLAGS} -o mactelnetd mactelnetd.c protocol.o console.c interfaces.o users.o md5.o ${LIBS}