Whamcloud - gitweb
smash the HEAD with the contents of b_cmd. HEAD_PRE_CMD_SMASH and
[fs/lustre-release.git] / lustre / osc / Makefile.am
index 45253da..0cb3bcd 100644 (file)
@@ -5,20 +5,15 @@
 
 DEFS=
 
+if LIBLUSTRE
+noinst_LIBRARIES = libosc.a
+libosc_a_SOURCES = osc_request.c osc_lib.c osc_create.c osc_internal.h
+libosc_a_CFLAGS = -fPIC
+else
 MODULE = osc
 modulefs_DATA = osc.o
 EXTRA_PROGRAMS = osc
-
-LINX= obd_pack.c ll_pack.c
-osc_SOURCES = osc_request.c $(LINX)
-
-obd_pack.c: 
-       test -e obd_pack.c || ln -sf $(top_srcdir)/lib/obd_pack.c
-
-ll_pack.c: 
-       test -e ll_pack.c || ln -sf $(top_srcdir)/lib/ll_pack.c
-
-dist-hook:
-       list='$(LINX)'; for f in $$list; do rm -f $(distdir)/$$f; done
+osc_SOURCES = osc_request.c lproc_osc.c osc_lib.c  osc_create.c osc_internal.h
+endif
 
 include $(top_srcdir)/Rules