Whamcloud - gitweb
LU-2158 lvfs: remove llog_lvfs.c and other lvfs code from llog
[fs/lustre-release.git] / lustre / obdclass / autoMakefile.am
1 SUBDIRS = linux
2 if DARWIN
3 SUBDIRS += darwin
4 endif
5 DIST_SUBDIRS = linux darwin
6
7 if LIBLUSTRE
8 noinst_LIBRARIES = liblustreclass.a
9 liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c mea.c uuid.c
10 liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
11 liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c
12 liblustreclass_a_SOURCES += llog_swab.c capa.c
13 liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_ref.c
14 liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c
15 liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c
16 liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -I$(SYSIO)/include
17 liblustreclass_a_CFLAGS = $(LLCFLAGS) -I$(SYSIO)/include
18
19 endif
20
21
22 if MODULES
23
24 if LINUX
25 modulefs_DATA = obdclass$(KMODEXT)
26 noinst_DATA = llog_test$(KMODEXT)
27 endif # LINUX
28
29 if DARWIN
30 macos_PROGRAMS = obdclass
31
32 obdclass_SOURCES =                                              \
33         darwin/darwin-module.c darwin/darwin-sysctl.c           \
34         class_obd.c genops.c lprocfs_status.c                   \
35         lustre_handles.c lustre_peer.c obd_config.c             \
36         obdo.c debug.c llog_ioctl.c uuid.c                      \
37         llog_swab.c llog_obd.c llog.c llog_cat.c                \
38         mea.c lu_object.c dt_object.c lu_ref.c
39
40 obdclass_CFLAGS := $(EXTRA_KCFLAGS)
41 obdclass_LDFLAGS := $(EXTRA_KLDFLAGS)
42 obdclass_LDADD := $(EXTRA_KLIBS)
43
44 plist_DATA = Info.plist
45
46 install_data_hook = fix-kext-ownership
47
48 endif # DARWIN
49
50 endif # MODULES
51
52 install-data-hook: $(install_data_hook)
53
54 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@
55 MOSTLYCLEANFILES += linux/*.o darwin/*.o