Apply changes to code to support path; Add signal handling; Update README
This commit is contained in:
30
makefile
Normal file
30
makefile
Normal 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}
|
Reference in New Issue
Block a user