Makefile (1fa7f10bac396ef8fe623f3845b7d9280e078abd) Makefile (ebccf1e3a6b11b97cbf5f813dd76636e892a9035)
1# $FreeBSD$
2
3LIB= pmc
4
1# $FreeBSD$
2
3LIB= pmc
4
5SRCS= libpmc.c pmclog.c
6INCS= pmc.h pmclog.h
5SRCS= libpmc.c
6INCS= pmc.h
7
7
8MAN= pmc.3
9MAN+= pmc_allocate.3
10MAN+= pmc_attach.3
11MAN+= pmc_capabilities.3
12MAN+= pmc_configure_logfile.3
13MAN+= pmc_disable.3
14MAN+= pmc_event_names_of_class.3
15MAN+= pmc_get_driver_stats.3
16MAN+= pmc_get_msr.3
17MAN+= pmc_init.3
18MAN+= pmc_name_of_capability.3
19MAN+= pmc_read.3
20MAN+= pmc_set.3
21MAN+= pmc_start.3
22MAN+= pmclog.3
8CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../sys
23
9
24# PMC-dependent manual pages
25.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "amd64"
26MAN+= pmc.atom.3
27MAN+= pmc.core.3
28MAN+= pmc.core2.3
29MAN+= pmc.iaf.3
30MAN+= pmc.ucf.3
31MAN+= pmc.k7.3
32MAN+= pmc.k8.3
33MAN+= pmc.p4.3
34MAN+= pmc.p5.3
35MAN+= pmc.p6.3
36MAN+= pmc.corei7.3
37MAN+= pmc.corei7uc.3
38MAN+= pmc.westmere.3
39MAN+= pmc.westmereuc.3
40MAN+= pmc.tsc.3
41.elif ${MACHINE_ARCH} == "arm" && ${CPUTYPE} == "xscale"
42MAN+= pmc.xscale.3
43.endif
10WARNS?= 6
44
11
45MLINKS+= \
46 pmc_allocate.3 pmc_release.3 \
47 pmc_attach.3 pmc_detach.3 \
48 pmc_capabilities.3 pmc_ncpu.3 \
49 pmc_capabilities.3 pmc_npmc.3 \
50 pmc_capabilities.3 pmc_pmcinfo.3 \
51 pmc_capabilities.3 pmc_cpuinfo.3 \
52 pmc_capabilities.3 pmc_width.3 \
53 pmc_configure_logfile.3 pmc_flush_logfile.3 \
54 pmc_configure_logfile.3 pmc_writelog.3 \
55 pmc_disable.3 pmc_enable.3 \
56 pmc_name_of_capability.3 pmc_name_of_class.3 \
57 pmc_name_of_capability.3 pmc_name_of_cputype.3 \
58 pmc_name_of_capability.3 pmc_name_of_disposition.3 \
59 pmc_name_of_capability.3 pmc_name_of_event.3 \
60 pmc_name_of_capability.3 pmc_name_of_mode.3 \
61 pmc_name_of_capability.3 pmc_name_of_state.3 \
62 pmc_read.3 pmc_rw.3 \
63 pmc_read.3 pmc_write.3 \
64 pmc_start.3 pmc_stop.3
12MAN= pmc.3
65
66MLINKS+= \
13
14MLINKS+= \
67 pmclog.3 pmclog_open.3 \
68 pmclog.3 pmclog_close.3 \
69 pmclog.3 pmclog_feed.3 \
70 pmclog.3 pmclog_read.3
15 pmc.3 pmc_allocate.3 \
16 pmc.3 pmc_attach.3 \
17 pmc.3 pmc_configure_logfile.3 \
18 pmc.3 pmc_cpuinfo.3 \
19 pmc.3 pmc_detach.3 \
20 pmc.3 pmc_disable.3 \
21 pmc.3 pmc_enable.3 \
22 pmc.3 pmc_event_names_of_class.3 \
23 pmc.3 pmc_get_driver_stats.3 \
24 pmc.3 pmc_init.3 \
25 pmc.3 pmc_name_of_capability.3 \
26 pmc.3 pmc_name_of_class.3 \
27 pmc.3 pmc_name_of_cputype.3 \
28 pmc.3 pmc_name_of_event.3 \
29 pmc.3 pmc_name_of_mode.3 \
30 pmc.3 pmc_name_of_state.3 \
31 pmc.3 pmc_ncpu.3 \
32 pmc.3 pmc_npmc.3 \
33 pmc.3 pmc_pmcinfo.3 \
34 pmc.3 pmc_read.3 \
35 pmc.3 pmc_release.3 \
36 pmc.3 pmc_rw.3 \
37 pmc.3 pmc_set.3 \
38 pmc.3 pmc_start.3 \
39 pmc.3 pmc_stop.3 \
40 pmc.3 pmc_write.3 \
41 pmc.3 pmc_x86_get_msr.3
71
72.include <bsd.lib.mk>
42
43.include <bsd.lib.mk>