mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
make: Support for 'make -R'.
Aim to be self-sufficient.
This commit is contained in:
parent
531d7c97e7
commit
1dc1a1cedb
@ -44,6 +44,8 @@ EGREP = @EGREP@
|
|||||||
GREP = @GREP@
|
GREP = @GREP@
|
||||||
SORT = @SORT@
|
SORT = @SORT@
|
||||||
WC = @WC@
|
WC = @WC@
|
||||||
|
AR = ar
|
||||||
|
RM = rm -f
|
||||||
|
|
||||||
PYTHON2 = @PYTHON2@
|
PYTHON2 = @PYTHON2@
|
||||||
PYTHON3 = @PYTHON3@
|
PYTHON3 = @PYTHON3@
|
||||||
@ -156,6 +158,7 @@ INSTALL_ROOT_DIR = $(INSTALL) -m 700 -d
|
|||||||
INSTALL_ROOT_DATA = $(INSTALL) -m 600
|
INSTALL_ROOT_DATA = $(INSTALL) -m 600
|
||||||
INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM)
|
INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM)
|
||||||
|
|
||||||
|
.SUFFIXES:
|
||||||
.SUFFIXES: .c .cpp .d .o .so .a .po .pot .mo .dylib
|
.SUFFIXES: .c .cpp .d .o .so .a .po .pot .mo .dylib
|
||||||
|
|
||||||
WFLAGS +=\
|
WFLAGS +=\
|
||||||
@ -410,6 +413,8 @@ cflow: $(CFLOW_TARGET).cflow $(CFLOW_TARGET).tree $(CFLOW_TARGET).rxref $(CFLOW_
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.LIBPATTERNS = lib%.so lib%.a
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
$(CC) -c $(INCLUDES) $(DEFS) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||||
|
|
||||||
@ -461,7 +466,7 @@ endif
|
|||||||
|
|
||||||
$(LIB_STATIC): $(OBJECTS)
|
$(LIB_STATIC): $(OBJECTS)
|
||||||
$(RM) $@
|
$(RM) $@
|
||||||
$(AR) rs $@ $(OBJECTS)
|
$(AR) rsv $@ $(OBJECTS)
|
||||||
|
|
||||||
%.d: %.c $(INC_LNS)
|
%.d: %.c $(INC_LNS)
|
||||||
$(MKDIR_P) $(dir $@); \
|
$(MKDIR_P) $(dir $@); \
|
||||||
|
Loading…
Reference in New Issue
Block a user