# HG changeset patch # User John Tsiombikas # Date 1491598495 -10800 # Node ID 5a80b73208dd0332bdfb2f151402cefdf55b0ac4 # Parent ad098a33fd3483981c7c0d5cc3e302bc073d7dba improved makefile diff -r ad098a33fd34 -r 5a80b73208dd Makefile --- a/Makefile Fri Apr 07 23:43:06 2017 +0300 +++ b/Makefile Fri Apr 07 23:54:55 2017 +0300 @@ -1,18 +1,30 @@ -COPT = -O3 -Wall -Werror -BIN = /usr/local/bin -VERSION = 0.3 +PREFIX = /usr/local +VERSION = 0.4 -dterm: dterm.c - gcc ${COPT} -o dterm dterm.c -DVERSION='"$(VERSION)"' +obj = dterm.o +bin = dterm -install: - install dterm ${BIN} +CFLAGS = -pedantic -Wall -Werror -Os -DVERSION='"$(VERSION)"' +$(bin): $(obj) + $(CC) -o $@ $(obj) $(LDFLAGS) + +.PHONY: install +install: $(bin) + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp $(bin) $(DESTDIR)$(PREFIX)/bin/$(bin) + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/$(bin) + +.PHONY: clean clean: - rm -f dterm *.o *.bak + rm -f $(bin) $(obj) -package: dterm.c LICENCE.txt README.txt Makefile - mkdir -p dterm-$(VERSION) - cp dterm.c LICENCE.txt README.txt Makefile dterm-$(VERSION) - tar cfvz dterm-$(VERSION).tgz dterm-$(VERSION) - rm -rf dterm-$(VERSION) +.PHONY: package +package: dterm.c LICENCE.txt README.txt Makefile + mkdir -p dterm-$(VERSION) + cp dterm.c LICENCE.txt README.txt Makefile dterm-$(VERSION) + tar czvf dterm-$(VERSION).tar.gz dterm-$(VERSION) + rm -rf dterm-$(VERSION) diff -r ad098a33fd34 -r 5a80b73208dd README.txt --- a/README.txt Fri Apr 07 23:43:06 2017 +0300 +++ b/README.txt Fri Apr 07 23:54:55 2017 +0300 @@ -80,6 +80,9 @@ remote end before escaping back to the dterm command prompt. sz will send an "rz" command down the serial link in start-up to initiate the transfer. +This version also supports plain ascii transfers using `ascii-xfr`. Use +commands sa/ra to do ascii transfers. + Examples @@ -106,6 +109,7 @@ Copyright dterm is Copyright 2007 Knossos Networks Ltd. + Copyright 2017 John Tsiombikas This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 @@ -124,6 +128,8 @@ Source Code -dterm source code is located at +Mercurial repo: http://nuclear.mutantstargoat.com/hg/dterm-nuc + +original dterm source code is located at http://www.knossos.net.nz/downloads/dterm-0.3.tgz