Whamcloud - gitweb
LU-694 ptlrpc: Job Stats
[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 INCLUDES = -I$(SYSIO)/include
9 noinst_LIBRARIES = liblustreclass.a
10 liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c mea.c uuid.c
11 liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
12 liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c 
13 liblustreclass_a_SOURCES += llog_lvfs.c llog_swab.c capa.c
14 liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_time.c lu_ref.c
15 liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c lprocfs_jobstats.c
16 liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c
17 liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS)
18 liblustreclass_a_CFLAGS = $(LLCFLAGS)
19
20 endif
21
22
23 if MODULES
24
25 if LINUX
26 modulefs_DATA = obdclass$(KMODEXT)
27 noinst_DATA = llog_test$(KMODEXT)
28 endif # LINUX
29
30 if DARWIN
31 macos_PROGRAMS := obdclass
32
33 obdclass_SOURCES := \
34         darwin/darwin-module.c darwin/darwin-sysctl.c           \
35         class_obd.c genops.c lprocfs_status.c                   \
36         lustre_handles.c lustre_peer.c obd_config.c             \
37         obdo.c debug.c llog_ioctl.c uuid.c                      \
38         llog_swab.c llog_obd.c llog.c llog_cat.c llog_lvfs.c    \
39         mea.c lu_object.c dt_object.c lu_ref.c
40
41 obdclass_CFLAGS := $(EXTRA_KCFLAGS)
42 obdclass_LDFLAGS := $(EXTRA_KLDFLAGS)
43 obdclass_LDADD := $(EXTRA_KLIBS)
44
45 plist_DATA := Info.plist
46
47 install_data_hook := fix-kext-ownership
48
49 endif # DARWIN
50
51 endif # MODULES
52
53 install-data-hook: $(install_data_hook)
54
55 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  llog-test.c
56 MOSTLYCLEANFILES += linux/*.o darwin/*.o