xref: /freebsd/usr.bin/ofed/opensm/Makefile (revision 3c4ba5f55438f7afd4f4b0b56f88f2bb505fd6a6)
1# $FreeBSD$
2
3_spath=	${SRCTOP}/contrib/ofed/opensm/opensm
4.PATH: ${_spath} ${_spath:H}/man
5
6BINDIR?=	/usr/bin
7PROG=		opensm
8
9SRCS= \
10main.c \
11osm_congestion_control.c \
12osm_console.c \
13osm_console_io.c \
14osm_db_files.c \
15osm_db_pack.c \
16osm_drop_mgr.c \
17osm_dump.c \
18osm_event_plugin.c \
19osm_guid_info_rcv.c \
20osm_guid_mgr.c \
21osm_inform.c \
22osm_lid_mgr.c \
23osm_lin_fwd_rcv.c \
24osm_link_mgr.c \
25osm_mcast_fwd_rcv.c \
26osm_mcast_mgr.c \
27osm_mcast_tbl.c \
28osm_mcm_port.c \
29osm_mesh.c \
30osm_mlnx_ext_port_info_rcv.c \
31osm_mtree.c \
32osm_multicast.c \
33osm_node.c \
34osm_node_desc_rcv.c \
35osm_node_info_rcv.c \
36osm_opensm.c \
37osm_perfmgr.c \
38osm_perfmgr_db.c \
39osm_pkey.c \
40osm_pkey_mgr.c \
41osm_pkey_rcv.c \
42osm_port.c \
43osm_port_info_rcv.c \
44osm_prtn.c \
45osm_prtn_config.c \
46osm_qos.c \
47osm_qos_parser_l.l \
48osm_qos_parser_y.y \
49osm_qos_policy.c \
50osm_remote_sm.c \
51osm_req.c \
52osm_resp.c \
53osm_router.c \
54osm_sa.c \
55osm_sa_class_port_info.c \
56osm_sa_guidinfo_record.c \
57osm_sa_informinfo.c \
58osm_sa_lft_record.c \
59osm_sa_link_record.c \
60osm_sa_mad_ctrl.c \
61osm_sa_mcmember_record.c \
62osm_sa_mft_record.c \
63osm_sa_multipath_record.c \
64osm_sa_node_record.c \
65osm_sa_path_record.c \
66osm_sa_pkey_record.c \
67osm_sa_portinfo_record.c \
68osm_sa_service_record.c \
69osm_sa_slvl_record.c \
70osm_sa_sminfo_record.c \
71osm_sa_sw_info_record.c \
72osm_sa_vlarb_record.c \
73osm_service.c \
74osm_slvl_map_rcv.c \
75osm_sm.c \
76osm_sm_mad_ctrl.c \
77osm_sm_state_mgr.c \
78osm_sminfo_rcv.c \
79osm_state_mgr.c \
80osm_subnet.c \
81osm_sw_info_rcv.c \
82osm_switch.c \
83osm_torus.c \
84osm_trap_rcv.c \
85osm_ucast_cache.c \
86osm_ucast_dfsssp.c \
87osm_ucast_dnup.c \
88osm_ucast_file.c \
89osm_ucast_ftree.c \
90osm_ucast_lash.c \
91osm_ucast_mgr.c \
92osm_ucast_updn.c \
93osm_vl15intf.c \
94osm_vl_arb_rcv.c \
95st.c
96
97MAN=		opensm.8
98CFLAGS+=	-I${_spath:H} -DHAVE_CONFIG_H=1
99CFLAGS+=	-I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
100LIBADD=		opensm osmvendor osmcomp wrap pthread
101
102WARNS?=		2
103
104.include <bsd.prog.mk>
105