Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 38a012a4a0
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 19 lines (14 sloc) 0.448 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
SRCS= luamotif.c widgets.c constants.c
LIB= motif

CFLAGS+= -fPIC -I/usr/include -I${PKGDIR}/include -I/usr/include/lua5.1
LDADD+= -L${XDIR}/lib -L${PKGDIR}/lib -lXm -lXt -lX11 -lm -lbsd

PKGDIR= /usr/local
LIBDIR= ${PKGDIR}/lib/lua/5.1

${LIB}.so: ${SRCS:.c=.o}
cc -shared -o ${LIB}.so ${CFLAGS} ${SRCS:.c=.o} ${LDADD}
ln -s ${LIB}.so lib${LIB}.so

clean:
rm -f *.o *.so
install:
-mkdir -p ${LIBDIR}
cp motif.so libmotif.so ${LIBDIR}
Something went wrong with that request. Please try again.