Apply changes to code to support path; Add signal handling; Update README

This commit is contained in:
Allen Wolf
2023-12-30 02:35:32 -06:00
parent 5c3863421b
commit 4973eaaa36
5 changed files with 254 additions and 0 deletions

30
makefile Normal file
View File

@ -0,0 +1,30 @@
# see LICENSE file for copyright and license information.
NAME=mergeinputs
LIBS = -lpthread
SRC = ${NAME}.c
OBJ = ${SRC:.c=.o}
CFLAGS = -Os
DESTDIR = /usr/local
CC=gcc
.c.o:
@echo CC $<
@${CC} -c ${CFLAGS} ${LIBS} $<
${NAME}: ${OBJ}
@echo CC -o $@
@${CC} -o $@ ${OBJ} ${CFLAGS} ${LIBS}
clean:
@echo cleaning
@rm -f ${NAME} *.o
install: ${NAME}
@echo installing executable file to ${DESTDIR}/bin
@mkdir -p ${DESTDIR}/bin
@cp -f ${NAME} ${DESTDIR}/bin/${NAME}
@chmod 755 ${DESTDIR}/bin/${NAME}
uninstall: ${NAME}
@echo removing executable file from ${DESTDIR}/bin
@rm -f ${DESTDIR}/bin/${NAME}