diff --git a/make.tmpl.in b/make.tmpl.in index 5e07ca978..e7e56baab 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -52,7 +52,7 @@ SUFFIXES=.c .d .o CFLAGS+=-g -Wall -DDEBUG_MEM -DBOUNDS_CHECK -DDEBUG INCLUDES+=-I. -I$(top_srcdir)/include -INC_LNS=$(top_srcdir)\\/include\\/.symlinks_created +INC_LNS=$(top_srcdir)/include/.symlinks_created ifeq ("@READLINE@", "yes") CFLAGS += -DREADLINE_SUPPORT @@ -89,8 +89,9 @@ $(SUBDIRS.distclean): %.d: %.c set -e; FILE=`echo $@ | sed 's/\\//\\\\\\//g;s/\\.d//g'`; \ + INC_LNS=`echo $(INC_LNS) | sed -e 's/\\//\\\\\\//g'`; \ $(CC) -MM $(INCLUDES) $< | \ - sed "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d : $(INC_LNS) /g" > $@; \ + sed "s/\(.*\)\.o[ :]*/$$FILE.o $$FILE.d : $$INC_LNS /g" > $@; \ [ -s $@ ] || $(RM) $@ clean: $(SUBDIRS.clean) diff --git a/old-tests/mm/Makefile.in b/old-tests/mm/Makefile.in index ac6d8f00f..fc1e06ca3 100644 --- a/old-tests/mm/Makefile.in +++ b/old-tests/mm/Makefile.in @@ -9,12 +9,12 @@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ SOURCES=\ - ./dbg_malloc_t.c + dbg_malloc_t.c TARGETS=dbg_malloc_t include ../../make.tmpl dbg_malloc_t: dbg_malloc_t.o - gcc $(CFLAGS) -o dbg_malloc_t dbg_malloc_t.o -L../../lib -llvm + $(CC) -o dbg_malloc_t dbg_malloc_t.o -L$(top_srcdir)/lib -llvm