Whamcloud - gitweb
- Add mount-epoch checking in most (all?) inode-using operations, in preparation
[fs/lustre-release.git] / lustre / ost / Makefile.am
index 9ed0b33..6599695 100644 (file)
@@ -3,17 +3,20 @@
 # This code is issued under the GNU General Public License.
 # See the file COPYING in this distribution
 
-DEFS:
+DEFS= 
 MODULE = ost
 modulefs_DATA = ost.o
 EXTRA_PROGRAMS = ost
 
+LINX=obd_pack.c ll_pack.c
+ll_pack.c: 
+       test -e ll_pack.c || ln -sf $(top_srcdir)/lib/ll_pack.c
+
 obd_pack.c: 
-       ln -s ../lib/obd_pack.c .
-page.c:
-       ln -s ../lib/page.c
+       test -e obd_pack.c || ln -sf $(top_srcdir)/lib/obd_pack.c
 
-ost_SOURCES = page.c obd_pack.c ost_handler.c
+ost_SOURCES = $(LINX) ost_handler.c ../lib/target.c
+dist-hook:
+       list='$(LINX)'; for f in $$list; do rm -f $(distdir)/$$f; done
 
 include $(top_srcdir)/Rules
-