# This code is issued under the GNU General Public License.
# See the file COPYING in this distribution
-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
-osc_SOURCES = osc_request.c lproc_osc.c osc_lib.c osc_create.c osc_internal.h
+libosc_a_CPPFLAGS = $(LLCPPFLAGS)
+libosc_a_CFLAGS = $(LLCFLAGS)
+endif
+
+if MODULES
+modulefs_DATA = osc$(KMODEXT)
endif
-include $(top_srcdir)/Rules
+MOSTLYCLEANFILES = *.o *.ko *.mod.c
+DIST_SOURCES = $(osc-objs:%.o=%.c) osc_internal.h