Home | History | Annotate | Line # | Download | only in liblutok
Makefile revision 1.1
      1 # $NetBSD: Makefile,v 1.1 2013/02/16 21:29:46 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 INCSDIR=	/usr/include/lutok
     43 
     44 .if ${MKSHARE} != "no"
     45 FILES+=		lutok.pc
     46 FILESDIR=	/usr/lib/pkgconfig
     47 
     48 realall: lutok.pc
     49 lutok.pc: Makefile lutok.pc.in
     50 	${TOOL_SED} \
     51 	    -e 's,__INCLUDEDIR__,/usr/include,g' \
     52 	    -e 's,__LIBDIR__,/usr/lib,g' \
     53 	    -e 's,__LUA_CFLAGS__,-I/usr/include,g' \
     54 	    -e 's,__LUA_LIBS,-llua,g' \
     55 	    -e 's,__VERSION__,0.2,g' \
     56 	    <${SRCDIR}/lutok.pc.in >lutok.pc
     57 CLEANFILES+=	lutok.pc
     58 .endif
     59 
     60 .include <bsd.lib.mk>
     61