This is my fork of sxiv's lisgd.
https://git.sr.ht/~mil/lisgd
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
474 B
31 lines
474 B
5 years ago
|
SRC = lisgd.c
|
||
|
OBJ = ${SRC:.c=.o}
|
||
|
LDFLAGS = -linput
|
||
|
|
||
|
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} ${LDFLAGS}
|
||
|
|
||
|
install: all
|
||
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
||
|
cp -f lisgd ${DESTDIR}${PREFIX}/bin
|
||
|
chmod 755 ${DESTDIR}${PREFIX}/bin/lisgd
|
||
|
|
||
|
clean:
|
||
|
rm -f config.h
|