mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Tidy makefiles
This commit is contained in:
parent
e7e8c033b5
commit
ecea68d270
@ -12,23 +12,25 @@ SHELL = /bin/sh
|
||||
CC = gcc
|
||||
RANLIB = ranlib
|
||||
SHELL = /bin/sh
|
||||
INSTALL = /usr/bin/install -c
|
||||
INSTALL = /usr/bin/install
|
||||
LN_S = ln -s
|
||||
|
||||
prefix = /usr
|
||||
libdir = ${prefix}/lib
|
||||
incdir = ${prefix}/include
|
||||
kernelsrcdir = /scratch/alphalinux/linux
|
||||
kernelsrcdir = /usr/src/linux
|
||||
|
||||
OWNER=root
|
||||
GROUP=root
|
||||
|
||||
INCLUDES=-I. -I${kernelsrcdir}/include
|
||||
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
|
||||
@ -40,10 +42,10 @@ SUFFIXES=.c .o .so
|
||||
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
||||
|
||||
install: libdevmapper.so
|
||||
$(INSTALL) -c -o $(OWNER) -g $(GROUP) -m 555 -s libdevmapper.so \
|
||||
$(INSTALL) -o $(OWNER) -g $(GROUP) -m 555 $(STRIP) libdevmapper.so \
|
||||
$(libdir)
|
||||
$(INSTALL) -D -c -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
||||
$(incdir)/devmapper/libdevmapper.h
|
||||
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
||||
$(incdir)/libdevmapper.h
|
||||
|
||||
clean:
|
||||
$(RM) libdevmapper.so libdm.o
|
||||
|
Loading…
Reference in New Issue
Block a user