1# $NetBSD: Makefile,v 1.4 2013/10/18 23:36:10 jmmv Exp $ 2 3#NOLINT= # defined 4 5.include <bsd.own.mk> 6 7LIB= lutok 8LIBISCXX= yes 9 10LIBDPLIBS+= lua ${.CURDIR}/../../../../mit/lua/lib/liblua 11LIBDPLIBS+= m ${.CURDIR}/../../../../../lib/libm 12 13SRCDIR= ${NETBSDSRCDIR}/external/bsd/lutok/dist 14.PATH: ${SRCDIR} 15 16CPPFLAGS+= -I${.CURDIR} 17CPPFLAGS+= -I. 18 19CPPFLAGS+= -DHAVE_CONFIG_H 20 21WARNS?= 4 22 23SRCS= c_gate.cpp \ 24 debug.cpp \ 25 exceptions.cpp \ 26 operations.cpp \ 27 stack_cleaner.cpp \ 28 state.cpp 29 30INCS= c_gate.hpp \ 31 debug.hpp \ 32 exceptions.hpp \ 33 operations.hpp \ 34 stack_cleaner.hpp \ 35 state.hpp \ 36 state.ipp \ 37 test_utils.hpp 38INCSDIR= /usr/include/lutok 39 40.if ${MKSHARE} != "no" 41FILES+= lutok.pc 42FILESDIR= /usr/lib/pkgconfig 43 44realall: lutok.pc 45lutok.pc: Makefile lutok.pc.in 46 ${TOOL_SED} \ 47 -e 's,__INCLUDEDIR__,/usr/include,g' \ 48 -e 's,__LIBDIR__,/usr/lib,g' \ 49 -e 's,__LUA_CFLAGS__,-I/usr/include,g' \ 50 -e 's,__LUA_LIBS,-llua,g' \ 51 -e 's,__VERSION__,0.3,g' \ 52 <${SRCDIR}/lutok.pc.in >lutok.pc 53CLEANFILES+= lutok.pc 54.endif 55 56.include <bsd.lib.mk> 57