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