1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Make source files depend on makefiles.

This commit is contained in:
Alasdair Kergon 2001-11-28 15:00:49 +00:00
parent 252c7708f5
commit 14c61d2d24

View File

@ -58,12 +58,15 @@ CFLAGS+=-g -fno-omit-frame-pointer
#CFLAGS+=-pg #CFLAGS+=-pg
#LD_FLAGS=-pg #LD_FLAGS=-pg
CFLAGS+=-DDEBUG_MEM -DDEBUG #-DDEBUG_POOL CFLAGS+=-DDEBUG_MEM -DDEBUG
#CFLAGS+=-DDEBUG_POOL
#CFLAGS+=-DBOUNDS_CHECK #CFLAGS+=-DBOUNDS_CHECK
INCLUDES+=-I. -I$(top_srcdir)/include INCLUDES+=-I. -I$(top_srcdir)/include
INC_LNS=$(top_srcdir)/include/.symlinks_created INC_LNS=$(top_srcdir)/include/.symlinks_created
DEPS=$(top_srcdir)/make.tmpl Makefile $(INC_LNS)
ifeq ("@READLINE@", "yes") ifeq ("@READLINE@", "yes")
CFLAGS += -DREADLINE_SUPPORT CFLAGS += -DREADLINE_SUPPORT
endif endif
@ -98,9 +101,9 @@ $(SUBDIRS.distclean):
%.d: %.c %.d: %.c
set -e; FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \ set -e; FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \
INC_LNS=`echo $(INC_LNS) | sed -e 's/\\//\\\\\\//g'`; \ DEPS=`echo $(DEPS) | sed -e 's/\\//\\\\\\//g'`; \
$(CC) -MM $(INCLUDES) $(CFLAGS) $< | \ $(CC) -MM $(INCLUDES) $(CFLAGS) $< | \
sed "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d : $$INC_LNS /g" > $@; \ sed "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d : $$DEPS /g" > $@; \
[ -s $@ ] || $(RM) $@ [ -s $@ ] || $(RM) $@
clean: $(SUBDIRS.clean) clean: $(SUBDIRS.clean)