Whamcloud - gitweb
LU-2456 lnet: Dynamic LNet Configuration (DLC) dynamic routing
[fs/lustre-release.git] / lnet / lnet / autoMakefile.am
1 my_sources =    api-ni.c config.c \
2                 lib-me.c lib-msg.c lib-eq.c \
3                 lib-md.c lib-ptl.c lib-move.c lo.c \
4                 router.c router_proc.c \
5                 acceptor.c peer.c
6
7
8 if LIBLUSTRE
9 noinst_LIBRARIES= liblnet.a
10 liblnet_a_SOURCES= $(my_sources)
11 liblnet_a_CPPFLAGS = $(LLCPPFLAGS)
12 liblnet_a_CFLAGS = $(LLCFLAGS)
13 endif
14
15 if MODULES
16
17 if LINUX
18 modulenet_DATA = lnet$(KMODEXT)
19 endif # LINUX
20
21 if DARWIN
22 macos_PROGRAMS = lnet
23
24 lnet_SOURCES = api-ni.c config.c
25 lnet_SOURCES += lib-me.c lib-msg.c lib-eq.c lib-md.c
26 lnet_SOURCES += lib-move.c module.c lo.c router.c router_proc.c
27 lnet_SOURCES += acceptor.c peer.c
28
29 lnet_CFLAGS := $(EXTRA_KCFLAGS)
30 lnet_LDFLAGS := $(EXTRA_KLDFLAGS)
31 lnet_LDADD := $(EXTRA_KLIBS)
32
33 plist_DATA = Info.plist
34
35 install_data_hook = fix-kext-ownership
36
37 endif # DARWIN
38
39 endif # MODULES
40
41 install-data-hook: $(install_data_hook)
42
43 MOSTLYCLEANFILES = @MOSTLYCLEANFILES@ lnet
44 EXTRA_DIST = $(lnet-objs:%.o=%.c) Info.plist