Initial commit

This commit is contained in:
Miles Alan 2020-04-18 20:44:22 -05:00
commit 657331d4b9
5 changed files with 393 additions and 0 deletions

30
Makefile Normal file
View file

@ -0,0 +1,30 @@
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