X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2FautoMakefile.am;h=717c89a9568d4d9dadffd0403f51a47585c39501;hp=79ba5ac4397b4a337ba5621be20294472a8a2be4;hb=4e0c8aeb9460e20eb7be9011c24edca35e17340d;hpb=bd1b99d7caa6ab2b7c771524af9178a3da69eeab diff --git a/lustre/obdclass/autoMakefile.am b/lustre/obdclass/autoMakefile.am index 79ba5ac..717c89a 100644 --- a/lustre/obdclass/autoMakefile.am +++ b/lustre/obdclass/autoMakefile.am @@ -1,19 +1,58 @@ -if LIBLUSTRE +SUBDIRS = linux +if DARWIN +SUBDIRS += darwin +endif +DIST_SUBDIRS = linux darwin +if LIBLUSTRE noinst_LIBRARIES = liblustreclass.a -liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c uuid.c +liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c uuid.c liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c -liblustreclass_a_SOURCES += llog_lvfs.c #llog_ioctl.c rbtree.c -liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -DLUSTRE_VERSION=\"32\" -DBUILD_VERSION=\"1\" -liblustreclass_a_CFLAGS = $(LLCFLAGS) +liblustreclass_a_SOURCES += llog_swab.c capa.c lprocfs_counters.c +liblustreclass_a_SOURCES += lu_object.c cl_object.c lu_ref.c +liblustreclass_a_SOURCES += cl_page.c cl_lock.c cl_io.c +liblustreclass_a_SOURCES += #llog_ioctl.c rbtree.c +liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -I$(SYSIO)/include +liblustreclass_a_CFLAGS = $(LLCFLAGS) -I$(SYSIO)/include endif + if MODULES + +if LINUX modulefs_DATA = obdclass$(KMODEXT) -noinst_DATA = llog_test$(KMODEXT) +if TESTS +modulefs_DATA += llog_test$(KMODEXT) +endif # TESTS +endif # LINUX + +if DARWIN +macos_PROGRAMS = obdclass + +obdclass_SOURCES = \ + darwin/darwin-module.c darwin/darwin-sysctl.c \ + class_obd.c genops.c lprocfs_status.c \ + lustre_handles.c lustre_peer.c obd_config.c \ + obdo.c debug.c llog_ioctl.c uuid.c \ + llog_swab.c llog_obd.c llog.c llog_cat.c \ + lu_object.c dt_object.c lu_ref.c \ + lprocfs_counters.c + +obdclass_CFLAGS := $(EXTRA_KCFLAGS) +obdclass_LDFLAGS := $(EXTRA_KLDFLAGS) +obdclass_LDADD := $(EXTRA_KLIBS) + +plist_DATA = Info.plist + +install_data_hook = fix-kext-ownership + +endif # DARWIN + endif # MODULES -MOSTLYCLEANFILES = *.o *.ko *.mod.c llog-test.c -DIST_SOURCES = $(filter-out llog-test.c,$(obdclass-objs:.o=.c)) $(llog-test-objs:.o=.c) llog_test.c llog_internal.h +install-data-hook: $(install_data_hook) + +MOSTLYCLEANFILES := @MOSTLYCLEANFILES@ +MOSTLYCLEANFILES += linux/*.o darwin/*.o