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