Whamcloud - gitweb
More merging from the 2.5 tree.
[fs/lustre-release.git] / lustre / obdfilter / Makefile.am
index 403f2ad..34b6c7a 100644 (file)
@@ -3,13 +3,26 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-DEFS:
+DEFS= 
 MODULE = obdfilter
 modulefs_DATA = obdfilter.o
 EXTRA_PROGRAMS = obdfilter
 
-EXT2C = filter.c
-obdfilter_SOURCES = filter.c
+LINX=simple.c ll_pack.c
+ll_pack.c:
+       test -e ll_pack.c || ln -sf $(top_srcdir)/lib/ll_pack.c
+
+simple.c:
+       test -e simple.c || ln -sf $(top_srcdir)/lib/simple.c
+
+FILTERC = filter.c
+obdfilter_SOURCES = $(FILTERC) $(LINX)
+
+dist-hook:
+       list='$(LINX)'; for f in $$list; do rm -f $(distdir)/$$f; done
+
+distclean: 
+       $(RM) Makefile.in
 
 include $(top_srcdir)/Rules