Makefile revision 1.4.4.2 1 # $NetBSD: Makefile,v 1.4.4.2 2014/05/22 15:49:33 yamt Exp $
2
3 #NOLINT= # defined
4
5 .include <bsd.own.mk>
6
7 LIB= lutok
8 LIBISCXX= yes
9
10 LIBDPLIBS+= lua ${.CURDIR}/../../../../mit/lua/lib/liblua
11 LIBDPLIBS+= m ${.CURDIR}/../../../../../lib/libm
12
13 SRCDIR= ${NETBSDSRCDIR}/external/bsd/lutok/dist
14 .PATH: ${SRCDIR}
15
16 CPPFLAGS+= -I${.CURDIR}
17 CPPFLAGS+= -I.
18
19 CPPFLAGS+= -DHAVE_CONFIG_H
20
21 WARNS?= 4
22
23 SRCS= c_gate.cpp \
24 debug.cpp \
25 exceptions.cpp \
26 operations.cpp \
27 stack_cleaner.cpp \
28 state.cpp
29
30 INCS= 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
38 INCSDIR= /usr/include/lutok
39
40 .if ${MKSHARE} != "no"
41 FILES+= lutok.pc
42 FILESDIR= /usr/lib/pkgconfig
43
44 realall: lutok.pc
45 lutok.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
53 CLEANFILES+= lutok.pc
54 .endif
55
56 .include <bsd.lib.mk>
57