Expand PMF_FN_* macros.
[netbsd-mini2440.git] / external / bsd / atf / lib / libatf-c / Makefile
blobf3865dc8ff8eec1c19ad7be87d3cdbeea24d3776
1 # $NetBSD: Makefile,v 1.2 2009/01/26 16:30:14 christos Exp $
3 NOLINT= # defined
5 .include <bsd.own.mk>
7 LIB= atf-c
8 NOPIC= # defined; interface is still too unstable
10 SRCDIR= ${NETBSDSRCDIR}/external/bsd/atf/dist
11 .PATH: ${SRCDIR}
12 .PATH: ${SRCDIR}/atf-c
14 CPPFLAGS+= -I${.CURDIR}
15 CPPFLAGS+= -I.
17 CPPFLAGS+= -DHAVE_CONFIG_H
18 CPPFLAGS+= -DATF_ARCH=\"${MACHINE}\"
19 CPPFLAGS+= -DATF_BUILD_CC=\"/usr/bin/cc\"
20 CPPFLAGS+= -DATF_BUILD_CFLAGS=\"\"
21 CPPFLAGS+= -DATF_BUILD_CPP=\"/usr/bin/cpp\"
22 CPPFLAGS+= -DATF_BUILD_CPPFLAGS=\"\"
23 CPPFLAGS+= -DATF_BUILD_CXX=\"/usr/bin/c++\"
24 CPPFLAGS+= -DATF_BUILD_CXXFLAGS=\"\"
25 CPPFLAGS+= -DATF_CONFDIR=\"/etc/atf\"
26 CPPFLAGS+= -DATF_INCLUDEDIR=\"/usr/include\"
27 CPPFLAGS+= -DATF_LIBDIR=\"/usr/lib\"
28 CPPFLAGS+= -DATF_LIBEXECDIR=\"/usr/libexec\"
29 CPPFLAGS+= -DATF_MACHINE=\"${MACHINE_ARCH}\"
30 CPPFLAGS+= -DATF_M4=\"/usr/bin/m4\"
31 CPPFLAGS+= -DATF_PKGDATADIR=\"/usr/share/atf\"
32 CPPFLAGS+= -DATF_SHELL=\"/bin/sh\"
33 CPPFLAGS+= -DATF_WORKDIR=\"/tmp\"
35 WARNS?= 4
37 SRCS= build.c \
38 check.c \
39 config.c \
40 dynstr.c \
41 env.c \
42 error.c \
43 expand.c \
44 fs.c \
45 io.c \
46 list.c \
47 map.c \
48 object.c \
49 process.c \
50 sanity.c \
51 signals.c \
52 text.c \
53 ui.c \
54 user.c \
55 tc.c \
56 tcr.c \
57 tp.c \
58 tp_main.c
60 INCS= build.h \
61 check.h \
62 config.h \
63 defs.h \
64 dynstr.h \
65 env.h \
66 error.h \
67 error_fwd.h \
68 expand.h \
69 fs.h \
70 io.h \
71 list.h \
72 macros.h \
73 map.h \
74 object.h \
75 process.h \
76 sanity.h \
77 signals.h \
78 tc.h \
79 tcr.h \
80 text.h \
81 tp.h \
82 ui.h \
83 user.h
84 INCSDIR= /usr/include/atf-c
86 INCS+= atf-c.h
87 INCSDIR_atf-c.h=/usr/include
89 MAN= # empty
91 CLEANFILES+= defs.h
93 defs.h: defs.h.in
94 ${TOOL_SED} -e \
95 's,@ATTRIBUTE_NORETURN@,__attribute__((__noreturn__)),g' \
96 < ${.ALLSRC} > ${.TARGET}.tmp
97 mv ${.TARGET}.tmp ${.TARGET}
99 .include <bsd.lib.mk>