mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
make: restore buildir != srcdir support
Our new faster deps generation missed support for buildirs != srcdir - as it can be usable to have several builds from unchanged directory with sources.
This commit is contained in:
parent
c6a76c1ffe
commit
48d04afaa2
@ -404,14 +404,17 @@ DEFS+=-D_FILE_OFFSET_BITS=64
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
@echo " [CC] $(<F)"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CC) $(DEPFLAGS) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||
|
||||
%.o: %.cpp $(DEPS)
|
||||
@echo " [CXX] $(<F)"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
||||
|
||||
%.pot: %.c Makefile
|
||||
%.pot: %.c $(DEPS)
|
||||
@echo " [CC] $@"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
||||
|
||||
%.so: %.o
|
||||
|
@ -443,14 +443,17 @@ DEFS+=-D_FILE_OFFSET_BITS=64
|
||||
|
||||
%.o: %.c $(DEPS)
|
||||
@echo " [CC] $(<F)"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CC) $(DEPFLAGS) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(WCFLAGS) $(CFLAGS) $(CFLAGS_$@) $< -o $@
|
||||
|
||||
%.o: %.cpp $(DEPS)
|
||||
@echo " [CXX] $(<F)"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CXX) -c $(INCLUDES) $(VALGRIND_CFLAGS) $(DEFS) $(DEFS_$@) $(WFLAGS) $(CXXFLAGS) $(CXXFLAGS_$@) $< -o $@
|
||||
|
||||
%.pot: %.c Makefile
|
||||
%.pot: %.c $(DEPS)
|
||||
@echo " [CC] $(<F)"
|
||||
@mkdir -p $(@D)
|
||||
$(Q) $(CC) -E $(INCLUDES) $(VALGRIND_CFLAGS) $(PROGS_CFLAGS) -include $(top_builddir)/po/pogen.h $(DEFS) $(WFLAGS) $(CFLAGS) $< >$@
|
||||
|
||||
%.so: %.o
|
||||
|
Loading…
Reference in New Issue
Block a user