Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
markqvist | bb4b1917d5 | |
Coelacanthus | 54b4ae14f8 | |
Mark Qvist | d9b3d2b6ae |
|
@ -133,4 +133,11 @@ On some versions of Raspbian (and probably other operating systems), the DHCP cl
|
|||
# of /etc/dhcpcd.conf to prevent dhcpcd from changing MTU
|
||||
|
||||
denyinterfaces tnc0
|
||||
```
|
||||
```
|
||||
|
||||
## Support tncattach development
|
||||
You can help support the continued development of open, free and private communications systems by donating via one of the following channels:
|
||||
|
||||
- Ethereum: 0x81F7B979fEa6134bA9FD5c701b3501A2e61E897a
|
||||
- Bitcoin: 3CPmacGm34qYvR6XWLVEJmi2aNe3PZqUuq
|
||||
- Ko-Fi: https://ko-fi.com/markqvist
|
||||
|
|
30
makefile
30
makefile
|
@ -1,33 +1,35 @@
|
|||
.DEFAULT_GOAL := all
|
||||
.PHONY: all clean install uninstall tncattach
|
||||
|
||||
compiler = gcc
|
||||
flags = -Wall -std=gnu11 -static-libgcc
|
||||
RM ?= rm
|
||||
INSTALL ?= install
|
||||
CC ?= gcc
|
||||
CFLAGS ?= -Wall -std=gnu11 -static-libgcc
|
||||
LDFLAGS ?=
|
||||
PREFIX ?= /usr/local
|
||||
|
||||
all: tncattach
|
||||
rebuild: clean all
|
||||
|
||||
clean:
|
||||
@echo "Cleaning tncattach build..."
|
||||
@rm -f tncattach
|
||||
$(RM) -f tncattach
|
||||
|
||||
tncattach:
|
||||
@echo "Making tncattach..."
|
||||
@echo "Compiling with: ${compiler}"
|
||||
${compiler} ${flags} tncattach.c Serial.c TCP.c KISS.c TAP.c -o tncattach -Wall
|
||||
@echo "Compiling with: $(CC)"
|
||||
$(CC) $(CFLAGS) $(LDFLAGS) tncattach.c Serial.c TCP.c KISS.c TAP.c -o tncattach
|
||||
|
||||
install:
|
||||
@echo "Installing tncattach..."
|
||||
@chmod a+x tncattach
|
||||
cp ./tncattach /usr/local/sbin/
|
||||
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/bin
|
||||
$(INSTALL) -Dm755 tncattach $(DESTDIR)/$(PREFIX)/bin/tncattach
|
||||
@echo "Installing man page..."
|
||||
@mkdir -p /usr/local/man/man8
|
||||
@install -m 644 -o root -g root tncattach.8 /usr/local/man/man8/tncattach.8
|
||||
@echo "Updating mandb..."
|
||||
@mandb -f /usr/local/man/man8/tncattach.8 2> /dev/null 1> /dev/null
|
||||
@echo "Done"
|
||||
gzip -9 tncattach.8
|
||||
$(INSTALL) -d $(DESTDIR)/$(PREFIX)/share/man/man8
|
||||
$(INSTALL) -Dm644 tncattach.8.gz $(DESTDIR)/$(PREFIX)/share/man/man8/tncattach.8.gz
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstalling tncattach"
|
||||
rm /usr/local/sbin/tncattach
|
||||
rm /usr/local/man/man8/tncattach.8
|
||||
$(RM) $(DESTDIR)/$(PREFIX)/bin/tncattach
|
||||
$(RM) $(DESTDIR)/$(PREFIX)/share/man/man8/tncattach.8.gz
|
||||
|
|
Loading…
Reference in New Issue