Whamcloud - gitweb
7a6fdce89b5a49171075a5de7e49df8d8464115e
[fs/lustre-release.git] / lustre / obdclass / autoMakefile.am
1 SUBDIRS := linux
2 if DARWIN
3 SUBDIRS += darwin
4 endif
5 DIST_SUBDIRS := $(SUBDIRS)
6
7 if LIBLUSTRE
8
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 class_hash.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 += prng.c #llog_ioctl.c rbtree.c
15 liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS)
16 liblustreclass_a_CFLAGS = $(LLCFLAGS)
17
18 endif
19
20
21 if MODULES
22
23 if LINUX
24 modulefs_DATA = obdclass$(KMODEXT)
25 noinst_DATA = llog_test$(KMODEXT)
26 endif # LINUX
27
28 if DARWIN
29 macos_PROGRAMS := obdclass
30
31 obdclass_SOURCES := \
32         darwin/darwin-module.c darwin/darwin-sysctl.c           \
33         class_obd.c genops.c lprocfs_status.c                   \
34         lustre_handles.c lustre_peer.c obd_config.c             \
35         obdo.c debug.c llog_ioctl.c uuid.c prng.c               \
36         llog_swab.c llog_obd.c llog.c llog_cat.c llog_lvfs.c    \
37         mea.c lu_object.c dt_object.c hash.c
38
39 obdclass_CFLAGS := $(EXTRA_KCFLAGS)
40 obdclass_LDFLAGS := $(EXTRA_KLDFLAGS)
41 obdclass_LDADD := $(EXTRA_KLIBS)
42
43 plist_DATA := Info.plist
44
45 install_data_hook := fix-kext-ownership
46
47 endif # DARWIN
48
49 endif # MODULES
50
51 install-data-hook: $(install_data_hook)
52
53 MOSTLYCLEANFILES := @MOSTLYCLEANFILES@  llog-test.c
54 MOSTLYCLEANFILES += linux/*.o darwin/*.o
55 DIST_SOURCES = $(filter-out llog-test.c,$(obdclass-all-objs:.o=.c)) $(llog-test-objs:.o=.c) llog_test.c llog_internal.h