Initial commit
This commit is contained in:
commit
657331d4b9
5 changed files with 393 additions and 0 deletions
30
Makefile
Normal file
30
Makefile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue