1
0
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:
Alasdair Kergon 2001-10-04 12:07:29 +00:00
parent a74c0f91ef
commit 7eee377db5
2 changed files with 5 additions and 4 deletions

View File

@ -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)

View File

@ -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