Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / bsd / atf / lib / libatf-c / Makefile
blob6357b992f028bc4f87989a4fdefe3688c73d169c
1 # $NetBSD: Makefile,v 1.21 2014/03/02 22:50:13 jmmv Exp $
3 NOLINT= # defined
5 .include <bsd.init.mk>
7 LIB= atf-c
9 CWARNFLAGS+= -Wno-format
10 CWARNFLAGS+= -Wno-missing-noreturn
12 .PATH: ${SRCDIR}
13 .PATH: ${SRCDIR}/atf-c
14 .PATH: ${SRCDIR}/atf-c/detail
15 .PATH: ${TOPDIR}
17 config.o: Makefile
19 WARNS?= 4
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
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
51 INCS+= atf-c.h
52 INCSDIR_atf-c.h=/usr/include
54 MAN= atf-c-api.3
56 .if ${MKSHARE} != "no"
57 FILES+= atf-c.pc
58 FILESDIR= /usr/lib/pkgconfig
60 realall: atf-c.pc
61 atf-c.pc: Makefile atf-c.pc.in atf-version.txt
62 ${TOOL_SED} -e "s,__ATF_VERSION__,$$(cat atf-version.txt),g" \
63 -e 's,__CC__,gcc,g' \
64 -e 's,__INCLUDEDIR__,/usr/include,g' \
65 -e 's,__LIBDIR__,/usr/lib,g' \
66 <${SRCDIR}/atf-c/atf-c.pc.in >atf-c.pc
67 CLEANFILES+= atf-c.pc
68 .endif
70 .include <bsd.lib.mk>