Whamcloud - gitweb
a8a10496da40098c200a13756f1eaa9925b21c07
[fs/lustre-release.git] / lustre / obdclass / autoMakefile.am
1 if LIBLUSTRE
2
3 noinst_LIBRARIES = liblustreclass.a
4 liblustreclass_a_SOURCES = class_obd.c debug.c genops.c statfs_pack.c uuid.c 
5 liblustreclass_a_SOURCES += lustre_handles.c lustre_peer.c lprocfs_status.c
6 liblustreclass_a_SOURCES += obdo.c obd_config.c llog.c llog_obd.c llog_cat.c
7 liblustreclass_a_SOURCES += llog_lvfs.c #llog_ioctl.c rbtree.c
8 liblustreclass_a_CPPFLAGS = $(LLCPPFLAGS) -DLUSTRE_VERSION=\"32\" -DBUILD_VERSION=\"1\"
9 liblustreclass_a_CFLAGS = $(LLCFLAGS)
10
11 endif
12
13 if MODULES
14 modulefs_DATA = obdclass$(KMODEXT)
15 noinst_DATA = llog_test$(KMODEXT)
16
17 $(modulefs_DATA): lustre_build_version llog-test.c
18
19 llog-test.c: llog_test.c
20         ln -s $< $@
21
22 lustre_build_version: FORCE
23         perl $(top_builddir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
24         echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
25         cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \
26                 2> /dev/null &&                                            \
27                 $(RM) tmpver ||                                            \
28                 mv tmpver $(top_builddir)/include/linux/lustre_build_version.h
29 endif # MODULES
30
31 MOSTLYCLEANFILES = *.o *.ko *.mod.c llog-test.c
32 DIST_SOURCES = $(filter-out llog-test.c,$(obdclass-objs:.o=.c)) $(llog-test-objs:.o=.c) llog_test.c llog_internal.h