X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2FautoMakefile.am;h=165d44c590ec4c55c4fd430c1107dfca03821b19;hb=18f19045904ae09104a3f9bcbe9e99f345e421b4;hp=a8a10496da40098c200a13756f1eaa9925b21c07;hpb=3de901fceee79de12a31428bcc6ba3a00f10d1fe;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/autoMakefile.am b/lustre/obdclass/autoMakefile.am index a8a1049..165d44c 100644 --- a/lustre/obdclass/autoMakefile.am +++ b/lustre/obdclass/autoMakefile.am @@ -1,32 +1,54 @@ +SUBDIRS := linux +if DARWIN +SUBDIRS += darwin +endif +DIST_SUBDIRS := $(SUBDIRS) + if LIBLUSTRE noinst_LIBRARIES = liblustreclass.a 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_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c class_hash.c +liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c +liblustreclass_a_SOURCES += llog_lvfs.c llog_swab.c +liblustreclass_a_SOURCES += prng.c #llog_ioctl.c rbtree.c liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -DLUSTRE_VERSION=\"32\" -DBUILD_VERSION=\"1\" liblustreclass_a_CFLAGS = $(LLCFLAGS) endif + if MODULES + +if LINUX modulefs_DATA = obdclass$(KMODEXT) noinst_DATA = llog_test$(KMODEXT) +endif # LINUX + +if DARWIN +macos_PROGRAMS := obdclass -$(modulefs_DATA): lustre_build_version llog-test.c +obdclass_SOURCES := \ + darwin/darwin-module.c darwin/darwin-sysctl.c \ + class_obd.c genops.c lprocfs_status.c class_hash.c \ + lustre_handles.c lustre_peer.c obd_config.c \ + obdo.c debug.c llog_ioctl.c uuid.c prng.c \ + llog_swab.c llog_obd.c llog.c llog_cat.c llog_lvfs.c -llog-test.c: llog_test.c - ln -s $< $@ +obdclass_CFLAGS := $(EXTRA_KCFLAGS) +obdclass_LDFLAGS := $(EXTRA_KLDFLAGS) +obdclass_LDADD := $(EXTRA_KLIBS) + +plist_DATA := Info.plist + +install_data_hook := fix-kext-ownership + +endif # DARWIN -lustre_build_version: FORCE - perl $(top_builddir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver - echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver - cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \ - 2> /dev/null && \ - $(RM) tmpver || \ - mv tmpver $(top_builddir)/include/linux/lustre_build_version.h 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@ llog-test.c +MOSTLYCLEANFILES += linux/*.o darwin/*.o +DIST_SOURCES = $(filter-out llog-test.c,$(obdclass-all-objs:.o=.c)) $(llog-test-objs:.o=.c) llog_test.c llog_internal.h