Home | History | Annotate | Line # | Download | only in libatf-c
Makefile revision 1.22
      1 # $NetBSD: Makefile,v 1.22 2020/01/29 22:40:44 christos Exp $
      2 
      3 NOLINT=		# defined
      4 
      5 .include <bsd.init.mk>
      6 
      7 LIB=		atf-c
      8 
      9 CWARNFLAGS+=	-Wno-format
     10 CWARNFLAGS+=	-Wno-missing-noreturn
     11 
     12 .PATH:		${SRCDIR}
     13 .PATH:		${SRCDIR}/atf-c
     14 .PATH:		${SRCDIR}/atf-c/detail
     15 .PATH:		${TOPDIR}
     16 
     17 config.o:	Makefile
     18 
     19 WARNS?=		4
     20 
     21 SRCS=		build.c \
     22 		check.c \
     23 		config.c \
     24 		dynstr.c \
     25 		env.c \
     26 		error.c \
     27 		fs.c \
     28 		list.c \
     29 		map.c \
     30 		process.c \
     31 		sanity.c \
     32 		text.c \
     33 		user.c \
     34 		utils.c \
     35 		tc.c \
     36 		tp.c \
     37 		tp_main.c
     38 
     39 INCS=		build.h \
     40 		check.h \
     41 		config.h \
     42 		defs.h \
     43 		error.h \
     44 		error_fwd.h \
     45 		macros.h \
     46 		tc.h \
     47 		tp.h \
     48 		utils.h
     49 INCSDIR=	/usr/include/atf-c
     50 
     51 INCS+=		atf-c.h
     52 INCSDIR_atf-c.h=/usr/include
     53 
     54 MAN=		atf-c-api.3
     55 
     56 COPTS.tc.c+=	${${ACTIVE_CC} == "clang" && ${MACHINE_ARCH} == "powerpc":? -O0 :}
     57 
     58 .if ${MKSHARE} != "no"
     59 FILES+=		atf-c.pc
     60 FILESDIR=	/usr/lib/pkgconfig
     61 
     62 realall: atf-c.pc
     63 atf-c.pc: Makefile atf-c.pc.in atf-version.txt
     64 	${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \
     65 	    -e 's,__CC__,gcc,g' \
     66 	    -e 's,__INCLUDEDIR__,/usr/include,g' \
     67 	    -e 's,__LIBDIR__,/usr/lib,g' \
     68 	    <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc
     69 CLEANFILES+=	atf-c.pc
     70 .endif
     71 
     72 .include <bsd.lib.mk>
     73