tncattach/makefile

26 lines
544 B
Makefile
Raw Normal View History

2020-05-25 05:29:33 -06:00
.DEFAULT_GOAL := all
2020-05-27 02:39:35 -06:00
.PHONY: all clean install uninstall tncattach
2020-05-25 05:29:33 -06:00
compiler = gcc
2020-06-24 04:28:49 -06:00
flags = -std=gnu11 -static-libgcc
2020-05-25 05:29:33 -06:00
all: tncattach
rebuild: clean all
2020-05-25 05:29:33 -06:00
clean:
@echo "Cleaning tncattach build..."
2020-05-27 02:39:35 -06:00
@rm -f tncattach
2020-05-25 05:29:33 -06:00
tncattach:
@echo "Making tncattach..."
@echo "Compiling with: ${compiler}"
2020-06-16 13:55:25 -06:00
${compiler} ${flags} tncattach.c Serial.c Tcp.c KISS.c TAP.c -o tncattach -Wall
2020-05-25 05:29:33 -06:00
2020-05-27 02:39:35 -06:00
install:
@echo "Installing tncattach..."
chmod a+x tncattach
cp ./tncattach /usr/local/sbin/
uninstall:
@echo "Uninstalling tncattach"
rm /usr/local/sbin/tncattach