[DAPL2] Sync with OFED DAPL 2.0.21 src release
[mirror/winof/.git] / ulp / dapl2 / Makefile.am
1 # $Id: $\r
2 \r
3 OSFLAGS = -DOS_RELEASE=$(shell expr `uname -r | cut -f1 -d.` \* 65536 + `uname -r | cut -f2 -d.`)\r
4 # Check for RedHat, needed for ia64 udapl atomic operations (IA64_FETCHADD syntax)\r
5 # and built-in atomics for RedHat EL5\r
6 if OS_RHEL4\r
7 OSFLAGS += -DREDHAT_EL4\r
8 endif\r
9 \r
10 if OS_RHEL5\r
11 OSFLAGS += -DREDHAT_EL5\r
12 endif\r
13 \r
14 if OS_SUSE11\r
15 OSFLAGS += -DSUSE_11\r
16 endif\r
17 \r
18 if EXT_TYPE_IB\r
19 XFLAGS = -DDAT_EXTENSIONS\r
20 XPROGRAMS_CMA = dapl/openib_common/ib_extensions.c\r
21 XPROGRAMS_SCM = dapl/openib_common/ib_extensions.c\r
22 else\r
23 XFLAGS =\r
24 XPROGRAMS_CMA =\r
25 XPROGRAMS_SCM =\r
26 endif\r
27 \r
28 if DEBUG\r
29 AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DDAPL_DBG -DDAT_CONF="\"$(sysconfdir)/dat.conf\""\r
30 else\r
31 AM_CFLAGS = -g -Wall -D_GNU_SOURCE -DDAT_CONF="\"$(sysconfdir)/dat.conf\""\r
32 endif\r
33 \r
34 datlibdir = $(libdir)\r
35 dapllibofadir = $(libdir)\r
36 daplliboscmdir = $(libdir)\r
37 \r
38 datlib_LTLIBRARIES = dat/udat/libdat2.la\r
39 dapllibofa_LTLIBRARIES = dapl/udapl/libdaplofa.la\r
40 daplliboscm_LTLIBRARIES = dapl/udapl/libdaploscm.la\r
41 \r
42 dat_udat_libdat2_la_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE $(OSFLAGS) $(XFLAGS) \\r
43                                 -I$(srcdir)/dat/include/ -I$(srcdir)/dat/udat/ \\r
44                                 -I$(srcdir)/dat/udat/linux -I$(srcdir)/dat/common/ \r
45 \r
46 dapl_udapl_libdaplofa_la_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE $(OSFLAGS) $(XFLAGS) \\r
47                                 -DOPENIB -DCQ_WAIT_OBJECT \\r
48                                 -I$(srcdir)/dat/include/ -I$(srcdir)/dapl/include/ \\r
49                                 -I$(srcdir)/dapl/common -I$(srcdir)/dapl/udapl/linux \\r
50                                 -I$(srcdir)/dapl/openib_common \\r
51                                 -I$(srcdir)/dapl/openib_cma \\r
52                                 -I$(srcdir)/dapl/openib_cma/linux\r
53                 \r
54 dapl_udapl_libdaploscm_la_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE $(OSFLAGS) $(XFLAGS) \\r
55                                 -DOPENIB -DCQ_WAIT_OBJECT \\r
56                                 -I$(srcdir)/dat/include/ -I$(srcdir)/dapl/include/ \\r
57                                 -I$(srcdir)/dapl/common -I$(srcdir)/dapl/udapl/linux \\r
58                                 -I$(srcdir)/dapl/openib_common \\r
59                                 -I$(srcdir)/dapl/openib_scm \\r
60                                 -I$(srcdir)/dapl/openib_scm/linux\r
61 \r
62 if HAVE_LD_VERSION_SCRIPT\r
63     dat_version_script = -Wl,--version-script=$(srcdir)/dat/udat/libdat2.map\r
64     daplofa_version_script = -Wl,--version-script=$(srcdir)/dapl/udapl/libdaplofa.map\r
65     daploscm_version_script = -Wl,--version-script=$(srcdir)/dapl/udapl/libdaploscm.map\r
66 else\r
67     dat_version_script = \r
68     daplofa_version_script = \r
69     daploscm_version_script =\r
70 endif\r
71 \r
72 #\r
73 # uDAT: libdat2.so\r
74 #\r
75 dat_udat_libdat2_la_SOURCES = dat/udat/udat.c \\r
76                         dat/udat/udat_api.c \\r
77                         dat/udat/udat_sr_parser.c \\r
78                         dat/udat/linux/dat_osd.c \\r
79                         dat/common/dat_api.c \\r
80                         dat/common/dat_dictionary.c \\r
81                         dat/common/dat_strerror.c \\r
82                         dat/common/dat_init.c \\r
83                         dat/common/dat_dr.c \\r
84                         dat/common/dat_sr.c\r
85 dat_udat_libdat2_la_LDFLAGS = -version-info 2:0:0 $(dat_version_script) -ldl \r
86 \r
87 #\r
88 # uDAPL OpenFabrics rdma_cm version: libdaplofa.so\r
89 #\r
90 dapl_udapl_libdaplofa_la_SOURCES = dapl/udapl/dapl_init.c \\r
91         dapl/udapl/dapl_evd_create.c               \\r
92         dapl/udapl/dapl_evd_query.c                \\r
93         dapl/udapl/dapl_cno_create.c               \\r
94         dapl/udapl/dapl_cno_modify_agent.c         \\r
95         dapl/udapl/dapl_cno_free.c                 \\r
96         dapl/udapl/dapl_cno_wait.c                 \\r
97         dapl/udapl/dapl_cno_query.c                \\r
98         dapl/udapl/dapl_lmr_create.c               \\r
99         dapl/udapl/dapl_evd_wait.c                 \\r
100         dapl/udapl/dapl_evd_disable.c              \\r
101         dapl/udapl/dapl_evd_enable.c               \\r
102         dapl/udapl/dapl_evd_modify_cno.c           \\r
103         dapl/udapl/dapl_evd_set_unwaitable.c       \\r
104         dapl/udapl/dapl_evd_clear_unwaitable.c     \\r
105         dapl/udapl/linux/dapl_osd.c                \\r
106         dapl/common/dapl_cookie.c                   \\r
107         dapl/common/dapl_cr_accept.c                \\r
108         dapl/common/dapl_cr_query.c                 \\r
109         dapl/common/dapl_cr_reject.c                \\r
110         dapl/common/dapl_cr_util.c                  \\r
111         dapl/common/dapl_cr_callback.c              \\r
112         dapl/common/dapl_cr_handoff.c               \\r
113         dapl/common/dapl_ep_connect.c               \\r
114         dapl/common/dapl_ep_create.c                \\r
115         dapl/common/dapl_ep_disconnect.c            \\r
116         dapl/common/dapl_ep_dup_connect.c           \\r
117         dapl/common/dapl_ep_free.c                  \\r
118         dapl/common/dapl_ep_reset.c                 \\r
119         dapl/common/dapl_ep_get_status.c            \\r
120         dapl/common/dapl_ep_modify.c                \\r
121         dapl/common/dapl_ep_post_rdma_read.c        \\r
122         dapl/common/dapl_ep_post_rdma_write.c       \\r
123         dapl/common/dapl_ep_post_recv.c             \\r
124         dapl/common/dapl_ep_post_send.c             \\r
125         dapl/common/dapl_ep_query.c                 \\r
126         dapl/common/dapl_ep_util.c                  \\r
127         dapl/common/dapl_evd_dequeue.c              \\r
128         dapl/common/dapl_evd_free.c                 \\r
129         dapl/common/dapl_evd_post_se.c              \\r
130         dapl/common/dapl_evd_resize.c               \\r
131         dapl/common/dapl_evd_util.c                 \\r
132         dapl/common/dapl_evd_cq_async_error_callb.c \\r
133         dapl/common/dapl_evd_qp_async_error_callb.c \\r
134         dapl/common/dapl_evd_un_async_error_callb.c \\r
135         dapl/common/dapl_evd_connection_callb.c     \\r
136         dapl/common/dapl_evd_dto_callb.c            \\r
137         dapl/common/dapl_get_consumer_context.c     \\r
138         dapl/common/dapl_get_handle_type.c          \\r
139         dapl/common/dapl_hash.c                     \\r
140         dapl/common/dapl_hca_util.c                 \\r
141         dapl/common/dapl_ia_close.c                 \\r
142         dapl/common/dapl_ia_open.c                  \\r
143         dapl/common/dapl_ia_query.c                 \\r
144         dapl/common/dapl_ia_util.c                  \\r
145         dapl/common/dapl_llist.c                    \\r
146         dapl/common/dapl_lmr_free.c                 \\r
147         dapl/common/dapl_lmr_query.c                \\r
148         dapl/common/dapl_lmr_util.c                 \\r
149         dapl/common/dapl_lmr_sync_rdma_read.c       \\r
150         dapl/common/dapl_lmr_sync_rdma_write.c      \\r
151         dapl/common/dapl_mr_util.c                  \\r
152         dapl/common/dapl_provider.c                 \\r
153         dapl/common/dapl_sp_util.c                  \\r
154         dapl/common/dapl_psp_create.c               \\r
155         dapl/common/dapl_psp_create_any.c           \\r
156         dapl/common/dapl_psp_free.c                 \\r
157         dapl/common/dapl_psp_query.c                \\r
158         dapl/common/dapl_pz_create.c                \\r
159         dapl/common/dapl_pz_free.c                  \\r
160         dapl/common/dapl_pz_query.c                 \\r
161         dapl/common/dapl_pz_util.c                  \\r
162         dapl/common/dapl_rmr_create.c               \\r
163         dapl/common/dapl_rmr_free.c                 \\r
164         dapl/common/dapl_rmr_bind.c                 \\r
165         dapl/common/dapl_rmr_query.c                \\r
166         dapl/common/dapl_rmr_util.c                 \\r
167         dapl/common/dapl_rsp_create.c               \\r
168         dapl/common/dapl_rsp_free.c                 \\r
169         dapl/common/dapl_rsp_query.c                \\r
170         dapl/common/dapl_cno_util.c                 \\r
171         dapl/common/dapl_set_consumer_context.c     \\r
172         dapl/common/dapl_ring_buffer_util.c         \\r
173         dapl/common/dapl_name_service.c             \\r
174         dapl/common/dapl_timer_util.c               \\r
175         dapl/common/dapl_ep_create_with_srq.c       \\r
176         dapl/common/dapl_ep_recv_query.c            \\r
177         dapl/common/dapl_ep_set_watermark.c         \\r
178         dapl/common/dapl_srq_create.c               \\r
179         dapl/common/dapl_srq_free.c                 \\r
180         dapl/common/dapl_srq_query.c                \\r
181         dapl/common/dapl_srq_resize.c               \\r
182         dapl/common/dapl_srq_post_recv.c            \\r
183         dapl/common/dapl_srq_set_lw.c               \\r
184         dapl/common/dapl_srq_util.c                 \\r
185         dapl/common/dapl_debug.c                    \\r
186         dapl/common/dapl_ia_ha.c                    \\r
187         dapl/common/dapl_csp.c                      \\r
188         dapl/common/dapl_ep_post_send_invalidate.c  \\r
189         dapl/common/dapl_ep_post_rdma_read_to_rmr.c \\r
190         dapl/openib_common/mem.c                    \\r
191         dapl/openib_common/cq.c                     \\r
192         dapl/openib_common/qp.c                     \\r
193         dapl/openib_common/util.c                   \\r
194         dapl/openib_cma/cm.c                        \\r
195         dapl/openib_cma/device.c $(XPROGRAMS_CMA)\r
196 \r
197 dapl_udapl_libdaplofa_la_LDFLAGS = -version-info 2:0:0 $(daplofa_version_script) \\r
198                                    -Wl,-init,dapl_init -Wl,-fini,dapl_fini \\r
199                                    -lpthread -libverbs -lrdmacm \r
200                                 \r
201 #\r
202 # uDAPL OpenFabrics Socket CM version: libdaplscm.so\r
203 #\r
204 dapl_udapl_libdaploscm_la_SOURCES = dapl/udapl/dapl_init.c \\r
205         dapl/udapl/dapl_evd_create.c               \\r
206         dapl/udapl/dapl_evd_query.c                \\r
207         dapl/udapl/dapl_cno_create.c               \\r
208         dapl/udapl/dapl_cno_modify_agent.c         \\r
209         dapl/udapl/dapl_cno_free.c                 \\r
210         dapl/udapl/dapl_cno_wait.c                 \\r
211         dapl/udapl/dapl_cno_query.c                \\r
212         dapl/udapl/dapl_lmr_create.c               \\r
213         dapl/udapl/dapl_evd_wait.c                 \\r
214         dapl/udapl/dapl_evd_disable.c              \\r
215         dapl/udapl/dapl_evd_enable.c               \\r
216         dapl/udapl/dapl_evd_modify_cno.c           \\r
217         dapl/udapl/dapl_evd_set_unwaitable.c       \\r
218         dapl/udapl/dapl_evd_clear_unwaitable.c     \\r
219         dapl/udapl/linux/dapl_osd.c                \\r
220         dapl/common/dapl_cookie.c                   \\r
221         dapl/common/dapl_cr_accept.c                \\r
222         dapl/common/dapl_cr_query.c                 \\r
223         dapl/common/dapl_cr_reject.c                \\r
224         dapl/common/dapl_cr_util.c                  \\r
225         dapl/common/dapl_cr_callback.c              \\r
226         dapl/common/dapl_cr_handoff.c               \\r
227         dapl/common/dapl_ep_connect.c               \\r
228         dapl/common/dapl_ep_create.c                \\r
229         dapl/common/dapl_ep_disconnect.c            \\r
230         dapl/common/dapl_ep_dup_connect.c           \\r
231         dapl/common/dapl_ep_free.c                  \\r
232         dapl/common/dapl_ep_reset.c                 \\r
233         dapl/common/dapl_ep_get_status.c            \\r
234         dapl/common/dapl_ep_modify.c                \\r
235         dapl/common/dapl_ep_post_rdma_read.c        \\r
236         dapl/common/dapl_ep_post_rdma_write.c       \\r
237         dapl/common/dapl_ep_post_recv.c             \\r
238         dapl/common/dapl_ep_post_send.c             \\r
239         dapl/common/dapl_ep_query.c                 \\r
240         dapl/common/dapl_ep_util.c                  \\r
241         dapl/common/dapl_evd_dequeue.c              \\r
242         dapl/common/dapl_evd_free.c                 \\r
243         dapl/common/dapl_evd_post_se.c              \\r
244         dapl/common/dapl_evd_resize.c               \\r
245         dapl/common/dapl_evd_util.c                 \\r
246         dapl/common/dapl_evd_cq_async_error_callb.c \\r
247         dapl/common/dapl_evd_qp_async_error_callb.c \\r
248         dapl/common/dapl_evd_un_async_error_callb.c \\r
249         dapl/common/dapl_evd_connection_callb.c     \\r
250         dapl/common/dapl_evd_dto_callb.c            \\r
251         dapl/common/dapl_get_consumer_context.c     \\r
252         dapl/common/dapl_get_handle_type.c          \\r
253         dapl/common/dapl_hash.c                     \\r
254         dapl/common/dapl_hca_util.c                 \\r
255         dapl/common/dapl_ia_close.c                 \\r
256         dapl/common/dapl_ia_open.c                  \\r
257         dapl/common/dapl_ia_query.c                 \\r
258         dapl/common/dapl_ia_util.c                  \\r
259         dapl/common/dapl_llist.c                    \\r
260         dapl/common/dapl_lmr_free.c                 \\r
261         dapl/common/dapl_lmr_query.c                \\r
262         dapl/common/dapl_lmr_util.c                 \\r
263         dapl/common/dapl_lmr_sync_rdma_read.c       \\r
264         dapl/common/dapl_lmr_sync_rdma_write.c      \\r
265         dapl/common/dapl_mr_util.c                  \\r
266         dapl/common/dapl_provider.c                 \\r
267         dapl/common/dapl_sp_util.c                  \\r
268         dapl/common/dapl_psp_create.c               \\r
269         dapl/common/dapl_psp_create_any.c           \\r
270         dapl/common/dapl_psp_free.c                 \\r
271         dapl/common/dapl_psp_query.c                \\r
272         dapl/common/dapl_pz_create.c                \\r
273         dapl/common/dapl_pz_free.c                  \\r
274         dapl/common/dapl_pz_query.c                 \\r
275         dapl/common/dapl_pz_util.c                  \\r
276         dapl/common/dapl_rmr_create.c               \\r
277         dapl/common/dapl_rmr_free.c                 \\r
278         dapl/common/dapl_rmr_bind.c                 \\r
279         dapl/common/dapl_rmr_query.c                \\r
280         dapl/common/dapl_rmr_util.c                 \\r
281         dapl/common/dapl_rsp_create.c               \\r
282         dapl/common/dapl_rsp_free.c                 \\r
283         dapl/common/dapl_rsp_query.c                \\r
284         dapl/common/dapl_cno_util.c                 \\r
285         dapl/common/dapl_set_consumer_context.c     \\r
286         dapl/common/dapl_ring_buffer_util.c         \\r
287         dapl/common/dapl_name_service.c             \\r
288         dapl/common/dapl_timer_util.c               \\r
289         dapl/common/dapl_ep_create_with_srq.c       \\r
290         dapl/common/dapl_ep_recv_query.c            \\r
291         dapl/common/dapl_ep_set_watermark.c         \\r
292         dapl/common/dapl_srq_create.c               \\r
293         dapl/common/dapl_srq_free.c                 \\r
294         dapl/common/dapl_srq_query.c                \\r
295         dapl/common/dapl_srq_resize.c               \\r
296         dapl/common/dapl_srq_post_recv.c            \\r
297         dapl/common/dapl_srq_set_lw.c               \\r
298         dapl/common/dapl_srq_util.c                 \\r
299         dapl/common/dapl_debug.c                    \\r
300         dapl/common/dapl_ia_ha.c                    \\r
301         dapl/common/dapl_csp.c                      \\r
302         dapl/common/dapl_ep_post_send_invalidate.c  \\r
303         dapl/common/dapl_ep_post_rdma_read_to_rmr.c \\r
304         dapl/openib_common/mem.c                    \\r
305         dapl/openib_common/cq.c                     \\r
306         dapl/openib_common/qp.c                     \\r
307         dapl/openib_common/util.c                   \\r
308         dapl/openib_scm/cm.c                        \\r
309         dapl/openib_scm/device.c $(XPROGRAMS_SCM)\r
310 \r
311 dapl_udapl_libdaploscm_la_LDFLAGS = -version-info 2:0:0 $(daploscm_version_script) \\r
312                                    -Wl,-init,dapl_init -Wl,-fini,dapl_fini \\r
313                                    -lpthread -libverbs\r
314 \r
315 libdatincludedir = $(includedir)/dat2\r
316 \r
317 libdatinclude_HEADERS = dat/include/dat2/dat.h \\r
318                         dat/include/dat2/dat_error.h \\r
319                         dat/include/dat2/dat_platform_specific.h \\r
320                         dat/include/dat2/dat_redirection.h \\r
321                         dat/include/dat2/dat_registry.h \\r
322                         dat/include/dat2/dat_vendor_specific.h \\r
323                         dat/include/dat2/udat_config.h \\r
324                         dat/include/dat2/udat.h \\r
325                         dat/include/dat2/udat_redirection.h \\r
326                         dat/include/dat2/udat_vendor_specific.h \\r
327                         dat/include/dat2/dat_ib_extensions.h \r
328                 \r
329 man_MANS = man/dtest.1 man/dapltest.1 man/dat.conf.5 \r
330         \r
331 EXTRA_DIST = dat/common/dat_dictionary.h \\r
332              dat/common/dat_dr.h \\r
333              dat/common/dat_init.h \\r
334              dat/common/dat_sr.h \\r
335              dat/udat/udat_sr_parser.h \\r
336              dat/udat/linux/dat_osd.h \\r
337              dat/include/dat2/dat.h \\r
338              dat/include/dat2/dat_error.h \\r
339              dat/include/dat2/dat_platform_specific.h \\r
340              dat/include/dat2/dat_redirection.h \\r
341              dat/include/dat2/dat_registry.h \\r
342              dat/include/dat2/dat_vendor_specific.h \\r
343              dat/include/dat2/udat_config.h \\r
344              dat/include/dat2/udat.h \\r
345              dat/include/dat2/udat_redirection.h \\r
346              dat/include/dat2/udat_vendor_specific.h \\r
347              dapl/common/dapl_adapter_util.h \\r
348              dapl/common/dapl_cno_util.h \\r
349              dapl/common/dapl_cookie.h \\r
350              dapl/common/dapl_cr_util.h \\r
351              dapl/common/dapl_ep_util.h \\r
352              dapl/common/dapl_evd_util.h \\r
353              dapl/common/dapl_hash.h \\r
354              dapl/common/dapl_hca_util.h \\r
355              dapl/common/dapl_ia_util.h \\r
356              dapl/common/dapl_init.h \\r
357              dapl/common/dapl_lmr_util.h \\r
358              dapl/common/dapl_mr_util.h \\r
359              dapl/common/dapl_name_service.h \\r
360              dapl/common/dapl_provider.h \\r
361              dapl/common/dapl_pz_util.h \\r
362              dapl/common/dapl_ring_buffer_util.h \\r
363              dapl/common/dapl_rmr_util.h \\r
364              dapl/common/dapl_sp_util.h \\r
365              dapl/common/dapl_srq_util.h \\r
366              dapl/common/dapl_timer_util.h \\r
367              dapl/udapl/linux/dapl_osd.h \\r
368              dapl/include/dapl.h \\r
369              dapl/include/dapl_debug.h \\r
370              dapl/include/dapl_ipoib_names.h \\r
371              dapl/include/dapl_vendor.h \\r
372              dapl/openib_common/dapl_ib_dto.h \\r
373              dapl/openib_common/dapl_ib_common.h \\r
374              dapl/openib_cma/dapl_ib_util.h \\r
375              dapl/openib_cma/linux/openib_osd.h \\r
376              dapl/openib_scm/dapl_ib_util.h \\r
377              dapl/openib_scm/linux/openib_osd.h \\r
378              dat/udat/libdat2.map \\r
379              dapl/udapl/libdaplofa.map \\r
380              dapl/udapl/libdaploscm.map \\r
381              dapl.spec.in \\r
382              $(man_MANS) \\r
383              test/dapltest/include/dapl_bpool.h \\r
384              test/dapltest/include/dapl_client_info.h \\r
385              test/dapltest/include/dapl_common.h \\r
386              test/dapltest/include/dapl_execute.h \\r
387              test/dapltest/include/dapl_fft_cmd.h \\r
388              test/dapltest/include/dapl_fft_util.h \\r
389              test/dapltest/include/dapl_getopt.h \\r
390              test/dapltest/include/dapl_global.h \\r
391              test/dapltest/include/dapl_limit_cmd.h \\r
392              test/dapltest/include/dapl_mdep.h \\r
393              test/dapltest/include/dapl_memlist.h \\r
394              test/dapltest/include/dapl_params.h \\r
395              test/dapltest/include/dapl_performance_cmd.h \\r
396              test/dapltest/include/dapl_performance_stats.h \\r
397              test/dapltest/include/dapl_performance_test.h \\r
398              test/dapltest/include/dapl_proto.h \\r
399              test/dapltest/include/dapl_quit_cmd.h \\r
400              test/dapltest/include/dapl_server_cmd.h \\r
401              test/dapltest/include/dapl_server_info.h \\r
402              test/dapltest/include/dapl_tdep.h \\r
403              test/dapltest/include/dapl_tdep_print.h \\r
404              test/dapltest/include/dapl_test_data.h \\r
405              test/dapltest/include/dapl_transaction_cmd.h \\r
406              test/dapltest/include/dapl_transaction_stats.h \\r
407              test/dapltest/include/dapl_transaction_test.h \\r
408              test/dapltest/include/dapl_version.h \\r
409              test/dapltest/mdep/linux/dapl_mdep_user.h\r
410          \r
411 dist-hook: dapl.spec \r
412         cp dapl.spec $(distdir)\r
413         \r
414 install-exec-hook:\r
415         if ! test -d $(DESTDIR)$(sysconfdir); then \\r
416                 mkdir -p $(DESTDIR)$(sysconfdir); \\r
417         fi; \\r
418         if test -e $(DESTDIR)$(sysconfdir)/dat.conf; then \\r
419                 sed -e '/ofa-v2-.* u2/d' < $(DESTDIR)$(sysconfdir)/dat.conf > /tmp/$$$$ofadapl; \\r
420                 cp /tmp/$$$$ofadapl $(DESTDIR)$(sysconfdir)/dat.conf; \\r
421         fi; \\r
422         echo ofa-v2-mlx4_0-1 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"mlx4_0 1" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
423         echo ofa-v2-mlx4_0-2 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"mlx4_0 2" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
424         echo ofa-v2-ib0 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 '"ib0 0" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
425         echo ofa-v2-ib1 u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 '"ib1 0" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
426         echo ofa-v2-mthca0-1 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"mthca0 1" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
427         echo ofa-v2-mthca0-2 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"mthca0 2" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
428         echo ofa-v2-ipath0-1 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"ipath0 1" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
429         echo ofa-v2-ipath0-2 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"ipath0 2" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
430         echo ofa-v2-ehca0-2 u2.0 nonthreadsafe default libdaploscm.so.2 dapl.2.0 '"ehca0 1" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf; \\r
431         echo ofa-v2-iwarp u2.0 nonthreadsafe default libdaplofa.so.2 dapl.2.0 '"eth2 0" ""' >> $(DESTDIR)$(sysconfdir)/dat.conf;\r
432 \r
433 uninstall-hook:\r
434         if test -e $(DESTDIR)$(sysconfdir)/dat.conf; then \\r
435                 sed -e '/ofa-v2-.* u2/d' < $(DESTDIR)$(sysconfdir)/dat.conf > /tmp/$$$$ofadapl; \\r
436                 cp /tmp/$$$$ofadapl $(DESTDIR)$(sysconfdir)/dat.conf; \\r
437         fi;\r
438 \r
439 SUBDIRS = . test/dtest test/dapltest\r