lisgd/Makefile
Maarten van Gompel 827d4c8f2c implementing support for gestures with edge and corner detection
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
2020-10-31 13:49:51 +01:00

38 lines
689 B
Makefile

SRC = lisgd.c
OBJ = ${SRC:.c=.o}
LDFLAGS = -linput -lm
X11INC = /usr/X11R6/include
X11LIB = /usr/X11R6/lib
all: options lisgd
options:
@echo lisgd build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.h
config.h:
cp config.def.h $@
lisgd: ${OBJ}
${CC} -g -o $@ ${OBJ} -I${X11INC} -lX11 ${LDFLAGS}
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f lisgd ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/lisgd
mkdir -p ${DESTDIR}${PREFIX}/share/man/man1
cp lisgd.1 ${DESTDIR}${PREFIX}/share/man/man1
chmod 644 ${DESTDIR}${PREFIX}/share/man/man1
clean:
rm -f config.h