lisgd + wvkbd
This commit is contained in:
parent
adbe4541cb
commit
6d345f43d4
36 changed files with 31637 additions and 0 deletions
56
packages/lisgd/Makefile
Normal file
56
packages/lisgd/Makefile
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
PREFIX = /usr
|
||||
SRC = lisgd.c
|
||||
OBJ = ${SRC:.c=.o}
|
||||
LDFLAGS = -g
|
||||
LIBS = -linput -lm
|
||||
|
||||
X11INC = /usr/X11R6/include
|
||||
X11LIB = /usr/X11R6/lib
|
||||
|
||||
ifndef WITHOUT_X11
|
||||
CPPFLAGS += -I${X11INC} -DWITH_X11
|
||||
LIBS += -L${X11LIB} -lX11
|
||||
endif
|
||||
|
||||
ifndef WITHOUT_WAYLAND
|
||||
CPPFLAGS += -DWITH_WAYLAND
|
||||
LIBS += -lwayland-client
|
||||
endif
|
||||
|
||||
all: options lisgd
|
||||
|
||||
options:
|
||||
@echo lisgd build options:
|
||||
@echo "CFLAGS = ${CFLAGS}"
|
||||
@echo "CPPFLAGS = ${CPPFLAGS}"
|
||||
@echo "LDFLAGS = ${LDFLAGS}"
|
||||
@echo "LIBS = ${LIBS}"
|
||||
@echo "CC = ${CC}"
|
||||
|
||||
.c.o:
|
||||
${CC} -c ${CFLAGS} ${CPPFLAGS} $<
|
||||
|
||||
${OBJ}: config.h
|
||||
|
||||
config.h:
|
||||
cp config.def.h $@
|
||||
|
||||
lisgd: ${OBJ}
|
||||
${CC} -o $@ ${OBJ} ${LDFLAGS} ${LIBS}
|
||||
|
||||
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 755 ${DESTDIR}${PREFIX}/share/man/man1
|
||||
|
||||
uninstall:
|
||||
rm -f ${DESTDIR}${PREFIX}/bin/lisgd ${DESTDIR}${PREFIX}/share/man/man1/lisgd.1
|
||||
|
||||
clean:
|
||||
rm -f lisgd.o lisgd
|
||||
|
||||
.PHONY: all options install clean
|
||||
Loading…
Add table
Add a link
Reference in a new issue