|
|
@ -6,8 +6,10 @@ CFLAGS = -Wall -Werror -pedantic -O2 -std=c11 -fno-strict-aliasing \ |
|
|
|
-I${SRCDIR} -I${PREFIX}/include/ -DLUA_USE_POSIX -D_PREFIX="${PREFIX}"
|
|
|
|
-I${SRCDIR} -I${PREFIX}/include/ -DLUA_USE_POSIX -D_PREFIX="${PREFIX}"
|
|
|
|
#-I/usr/include/SDL2 -I/usr/include/directfb -D_REENTRANT \
|
|
|
|
#-I/usr/include/SDL2 -I/usr/include/directfb -D_REENTRANT \
|
|
|
|
#-I/usr/include/lua5.2
|
|
|
|
#-I/usr/include/lua5.2
|
|
|
|
# remove this
|
|
|
|
# on void
|
|
|
|
LDFLAGS = -L${PREFIX}/lib -L/usr/lib/lua5.2 -lpthread -lm -lSDL2 -llua
|
|
|
|
LDFLAGS = -L${PREFIX}/lib -lpthread -lm -lSDL2 -llua5.2
|
|
|
|
|
|
|
|
## on alpine
|
|
|
|
|
|
|
|
#LDFLAGS = -L${PREFIX}/lib -L/usr/lib/lua5.2 -lpthread -lm -lSDL2 -llua
|
|
|
|
FILES != find ${SRCDIR} -name '*.c'
|
|
|
|
FILES != find ${SRCDIR} -name '*.c'
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
OBJS = ${FILES:.c=.o}
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +34,8 @@ install: lite |
|
|
|
cp -f lite.desktop ${DESTDIR}${PREFIX}/share/applications/lite.desktop
|
|
|
|
cp -f lite.desktop ${DESTDIR}${PREFIX}/share/applications/lite.desktop
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/
|
|
|
|
cp -f icon.ico ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/lite.ico
|
|
|
|
cp -f icon.ico ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/lite.ico
|
|
|
|
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/
|
|
|
|
|
|
|
|
cp -f icon64.png ${DESTDIR}${PREFIX}/share/icons/hicolor/64x64/apps/lite.png
|
|
|
|
|
|
|
|
|
|
|
|
uninstall: |
|
|
|
uninstall: |
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/lite \
|
|
|
|
rm -f ${DESTDIR}${PREFIX}/bin/lite \
|
|
|
|