mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
makefile support for tests
This commit is contained in:
parent
a74c0f91ef
commit
7eee377db5
@ -52,7 +52,7 @@ SUFFIXES=.c .d .o
|
|||||||
|
|
||||||
CFLAGS+=-g -Wall -DDEBUG_MEM -DBOUNDS_CHECK -DDEBUG
|
CFLAGS+=-g -Wall -DDEBUG_MEM -DBOUNDS_CHECK -DDEBUG
|
||||||
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
|
||||||
|
|
||||||
ifeq ("@READLINE@", "yes")
|
ifeq ("@READLINE@", "yes")
|
||||||
CFLAGS += -DREADLINE_SUPPORT
|
CFLAGS += -DREADLINE_SUPPORT
|
||||||
@ -89,8 +89,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'`; \
|
||||||
$(CC) -MM $(INCLUDES) $< | \
|
$(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) $@
|
[ -s $@ ] || $(RM) $@
|
||||||
|
|
||||||
clean: $(SUBDIRS.clean)
|
clean: $(SUBDIRS.clean)
|
||||||
|
@ -9,12 +9,12 @@ top_srcdir = @top_srcdir@
|
|||||||
VPATH = @srcdir@
|
VPATH = @srcdir@
|
||||||
|
|
||||||
SOURCES=\
|
SOURCES=\
|
||||||
./dbg_malloc_t.c
|
dbg_malloc_t.c
|
||||||
|
|
||||||
TARGETS=dbg_malloc_t
|
TARGETS=dbg_malloc_t
|
||||||
|
|
||||||
include ../../make.tmpl
|
include ../../make.tmpl
|
||||||
|
|
||||||
dbg_malloc_t: dbg_malloc_t.o
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user