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
|
CC = gcc
|
||||||
RANLIB = ranlib
|
RANLIB = ranlib
|
||||||
SHELL = /bin/sh
|
SHELL = /bin/sh
|
||||||
INSTALL = /usr/bin/install -c
|
INSTALL = /usr/bin/install
|
||||||
LN_S = ln -s
|
LN_S = ln -s
|
||||||
|
|
||||||
prefix = /usr
|
prefix = /usr
|
||||||
libdir = ${prefix}/lib
|
libdir = ${prefix}/lib
|
||||||
incdir = ${prefix}/include
|
incdir = ${prefix}/include
|
||||||
kernelsrcdir = /scratch/alphalinux/linux
|
kernelsrcdir = /usr/src/linux
|
||||||
|
|
||||||
OWNER=root
|
OWNER=root
|
||||||
GROUP=root
|
GROUP=root
|
||||||
|
|
||||||
INCLUDES=-I. -I${kernelsrcdir}/include
|
INCLUDES=-I${kernelsrcdir}/include
|
||||||
CFLAGS+=-Wall
|
CFLAGS+=-Wall
|
||||||
#CFLAGS+=-O2
|
#CFLAGS+=-O2
|
||||||
CFLAGS+=-g -fno-omit-frame-pointer
|
CFLAGS+=-g -fno-omit-frame-pointer
|
||||||
#CFLAGS+=-pg
|
#CFLAGS+=-pg
|
||||||
#LD_FLAGS=-pg
|
#LD_FLAGS=-pg
|
||||||
|
STRIP=
|
||||||
|
#STRIP=-s
|
||||||
|
|
||||||
libdevmapper.so: libdm.o
|
libdevmapper.so: libdm.o
|
||||||
$(CC) -shared -o libdevmapper.so libdm.o
|
$(CC) -shared -o libdevmapper.so libdm.o
|
||||||
@ -40,10 +42,10 @@ SUFFIXES=.c .o .so
|
|||||||
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
$(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
install: libdevmapper.so
|
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)
|
$(libdir)
|
||||||
$(INSTALL) -D -c -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
$(INSTALL) -D -o $(OWNER) -g $(GROUP) -m 444 libdevmapper.h \
|
||||||
$(incdir)/devmapper/libdevmapper.h
|
$(incdir)/libdevmapper.h
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) libdevmapper.so libdm.o
|
$(RM) libdevmapper.so libdm.o
|
||||||
|
Loading…
Reference in New Issue
Block a user