Makefile revision 1.2 1 # $NetBSD: Makefile,v 1.2 2013/02/22 15:14:31 jmmv 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 .if ${HAVE_GCC} == 4
12 LIBDPLIBS+= stdc++ ${.CURDIR}/../../../../../gnu/lib/libstdc++-v3_4
13 .else
14 LIBDPLIBS+= stdc++ ${.CURDIR}/../../../../../external/gpl3/gcc/lib/libstdc++-v3
15 .endif
16 LIBDPLIBS+= m ${.CURDIR}/../../../../../lib/libm
17
18 SRCDIR= ${NETBSDSRCDIR}/external/bsd/lutok/dist
19 .PATH: ${SRCDIR}
20
21 CPPFLAGS+= -I${.CURDIR}
22 CPPFLAGS+= -I.
23
24 CPPFLAGS+= -DHAVE_CONFIG_H
25
26 WARNS?= 4
27
28 SRCS= c_gate.cpp \
29 debug.cpp \
30 exceptions.cpp \
31 operations.cpp \
32 stack_cleaner.cpp \
33 state.cpp
34
35 INCS= c_gate.hpp \
36 debug.hpp \
37 exceptions.hpp \
38 operations.hpp \
39 stack_cleaner.hpp \
40 state.hpp \
41 state.ipp \
42 test_utils.hpp
43 INCSDIR= /usr/include/lutok
44
45 .if ${MKSHARE} != "no"
46 FILES+= lutok.pc
47 FILESDIR= /usr/lib/pkgconfig
48
49 realall: lutok.pc
50 lutok.pc: Makefile lutok.pc.in
51 ${TOOL_SED} \
52 -e 's,__INCLUDEDIR__,/usr/include,g' \
53 -e 's,__LIBDIR__,/usr/lib,g' \
54 -e 's,__LUA_CFLAGS__,-I/usr/include,g' \
55 -e 's,__LUA_LIBS,-llua,g' \
56 -e 's,__VERSION__,0.2,g' \
57 <${SRCDIR}/lutok.pc.in >lutok.pc
58 CLEANFILES+= lutok.pc
59 .endif
60
61 .include <bsd.lib.mk>
62