1 1.22 christos # $NetBSD: Makefile,v 1.22 2022/10/29 13:53:19 christos Exp $ 2 1.9 lukem 3 1.11 christos .include "Makefile.inc" 4 1.13 apb .include <bsd.own.mk> 5 1.11 christos 6 1.11 christos COPTS.zic.c += -Wno-format-nonliteral 7 1.7 lukem 8 1.1 jtc PROG= zic 9 1.16 christos SRCS= zic.c 10 1.1 jtc MAN= zic.8 11 1.20 christos .if !empty(TOOL_CAT:M*/*) && !exists(${TOOL_CAT}) 12 1.20 christos TZVERSION=0 13 1.20 christos .else 14 1.19 christos TZVERSION!= ${TOOL_CAT} ${NETBSDSRCDIR}/lib/libc/time/version 15 1.20 christos .endif 16 1.15 christos CPPFLAGS+=-DPKGVERSION='"(tzcode) "' -DTZVERSION='"${TZVERSION}"' 17 1.21 christos CPPFLAGS+=-DZIC_BLOAT_DEFAULT='"slim"' 18 1.1 jtc 19 1.7 lukem .PATH: ${NETBSDSRCDIR}/lib/libc/time 20 1.6 mrg 21 1.18 christos .if !defined(HOSTPROG) 22 1.22 christos LDADD+=-lintl -lutil 23 1.22 christos DPADD+=${LIBINTL} ${LIBUTIL} 24 1.18 christos .endif 25 1.17 christos 26 1.20 christos foo: 27 1.20 christos echo ${TZVERSION} 28 1.20 christos 29 1.2 jtc .include <bsd.prog.mk> 30