Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / osc / autoMakefile.am
1 # Copyright (C) 2001  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 if LIBLUSTRE
7 noinst_LIBRARIES = libosc.a
8 libosc_a_SOURCES = osc_request.c osc_create.c osc_internal.h cache.c
9 libosc_a_CPPFLAGS = $(LLCPPFLAGS)
10 libosc_a_CFLAGS = $(LLCFLAGS)
11 endif
12
13 if MODULES
14
15 if LINUX
16 modulefs_DATA = osc$(KMODEXT)
17 endif
18
19 if DARWIN
20 macos_PROGRAMS := osc
21
22 osc_SOURCES := \
23         osc_create.c \
24         osc_request.c
25
26 osc_CFLAGS := $(EXTRA_KCFLAGS)
27 osc_LDFLAGS := $(EXTRA_KLDFLAGS)
28 osc_LDADD := $(EXTRA_KLIBS)
29
30 plist_DATA := Info.plist
31
32 install_data_hook := fix-kext-ownership
33
34 endif # Darwin
35
36 endif
37
38 install-data-hook: $(install_data_hook)
39
40 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ 
41 DIST_SOURCES = $(osc-objs:%.o=%.c) osc_internal.h