diff --git a/libdm/Makefile b/libdm/Makefile deleted file mode 100644 index 306e24068..000000000 --- a/libdm/Makefile +++ /dev/null @@ -1,56 +0,0 @@ -# -# Copyright (C) 2001 Sistina Software (UK) Limited. -# -# This file is released under the LGPL. -# - -srcdir = . -top_srcdir = .. -VPATH = . -SHELL = /bin/sh - -CC = gcc -RANLIB = ranlib -SHELL = /bin/sh -INSTALL = /usr/bin/install -LN_S = ln -s - -prefix = /usr -libdir = ${prefix}/lib -incdir = ${prefix}/include -kernelsrcdir = /usr/src/linux - -OWNER=root -GROUP=root - -INCLUDES=-I${kernelsrcdir}/include -CFLAGS+=-Wall -#CFLAGS+=-O2 -CFLAGS+=-g -fno-omit-frame-pointer -#CFLAGS+=-pg -#LD_FLAGS=-pg -STRIP= -#STRIP=-s - -libdevmapper.so: libdm.o - $(CC) -shared -o libdevmapper.so libdm.o - -SUFFIXES= -SUFFIXES=.c .o .so - -%.o: %.c - $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@ - -install: libdevmapper.so - $(INSTALL) -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) libdevmapper.so \ - $(libdir) - $(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \ - $(incdir)/libdevmapper.h - -clean: - $(RM) libdevmapper.so libdm.o - -distclean: clean - -.PHONY: install test clean distclean - diff --git a/libdm/Makefile.in b/libdm/Makefile.in new file mode 100644 index 000000000..16be11e36 --- /dev/null +++ b/libdm/Makefile.in @@ -0,0 +1,24 @@ +# +# Copyright (C) 2001 Sistina Software (UK) Limited. +# +# This file is released under the LGPL. +# + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ + +SOURCES=libdevmapper.c + +TARGETS=libdevmapper.so + +include ../make.tmpl + +install: libdevmapper.so + $(INSTALL) -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) libdevmapper.so \ + $(libdir) + $(INSTALL) -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \ + $(includedir) + +.PHONY: install + diff --git a/libdm/libdm.c b/libdm/libdevmapper.c similarity index 100% rename from libdm/libdm.c rename to libdm/libdevmapper.c