1 # $NetBSD: Makefile,v 1.1 2021/12/28 17:04:18 christos Exp $ 2 3 USE_FORT?= yes 4 5 LIBISPRIVATE= yes 6 7 .include "../../openldap.mk" 8 9 LIB= lunicode 10 11 LIBLUNICODE=${LDAP_DISTDIR}/libraries/liblunicode 12 .PATH: ${LIBLUNICODE} ${LIBLUNICODE}/ucdata ${LIBLUNICODE}/ure 13 CPPFLAGS+= -I${LIBLUNICODE} -I${LIBLUNICODE}/ucdata -I. 14 15 SRCS+= ucdata.c ure.c urestubs.c ucstr.c 16 17 18 .if ${USETOOLS} != "yes" 19 UCGENDATOBJ!= cd ${.CURDIR}/ucgendat && ${PRINTOBJDIR} 20 TOOL_UCGENDAT= ${UCGENDATDIR}/ucgendat 21 22 .PHONY: ucgendat 23 includes: ucgendat 24 SUBDIR= ucgendat 25 26 ucgendat: 27 @cd ${.CURDIR}/ucgendat && ${MAKE} 28 .endif 29 30 uctable.h: ${TOOL_UCGENDAT} ${LIBLUNICODE}/UnicodeData.txt ${LIBLUNICODE}/CompositionExclusions.txt 31 ${_MKTARGET_CREATE} 32 ${TOOL_UCGENDAT} ${LIBLUNICODE}/UnicodeData.txt \ 33 -x ${LIBLUNICODE}/CompositionExclusions.txt 34 35 ucdata.c: uctable.h 36 .endif 37 38 39 .include <bsd.lib.mk> 40 .if ${USETOOLS} != "yes" 41 .include <bsd.subdir.mk> 42 .endif 43