Whamcloud - gitweb
* Landed portals:b_port_step as follows...
[fs/lustre-release.git] / lnet / lnet / autoMakefile.am
1 # Copyright (C) 2002  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 my_sources =    api-errno.c api-ni.c api-wrap.c \
7                 lib-init.c lib-me.c lib-msg.c lib-eq.c \
8                 lib-md.c lib-move.c lib-ni.c lib-pid.c
9
10 if !CRAY_PORTALS
11
12 if LIBLUSTRE
13 noinst_LIBRARIES= libportals.a
14 libportals_a_SOURCES= $(my_sources)
15 libportals_a_CPPFLAGS = $(LLCPPFLAGS)
16 libportals_a_CFLAGS = $(LLCFLAGS)
17 endif
18
19 if MODULES
20
21 if LINUX
22 modulenet_DATA = portals$(KMODEXT)
23 endif # LINUX
24
25 if DARWIN
26 macos_PROGRAMS := portals
27
28 portals_SOURCES := api-errno.c api-ni.c api-wrap.c
29 portals_SOURCES += lib-init.c lib-me.c lib-msg.c lib-eq.c lib-md.c
30 portals_SOURCES += lib-move.c lib-ni.c lib-pid.c module.c
31
32 portals_CFLAGS := $(EXTRA_KCFLAGS)
33 portals_LDFLAGS := $(EXTRA_KLDFLAGS)
34 portals_LDADD := $(EXTRA_KLIBS)
35
36 plist_DATA := Info.plist
37
38 install-data-hook: fix-kext-ownership
39
40 endif # DARWIN
41
42 endif # MODULES
43
44 endif # CRAY_PORTALS
45
46 EXTRA_DIST := Info.plist
47
48 MOSTLYCLEANFILES = *.o *.ko *.mod.c portals
49 DIST_SOURCES = $(portals-objs:%.o=%.c)