r18143: the 'showflags' convention from Samba is useful for the other packages
authorAndrew Tridgell <tridge@samba.org>
Wed, 6 Sep 2006 07:11:09 +0000 (07:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:17:40 +0000 (14:17 -0500)
(This used to be commit a4d1f1d2229e1a0b1523bf14fab59278207abbc0)

source4/lib/ldb/Makefile.in
source4/lib/replace/Makefile.in
source4/lib/talloc/Makefile.in
source4/lib/tdb/Makefile.in

index af47667bed828dd94e509f3804bf97db243a9c2b..f25a67672371547ff84ad9525202b8d33ca50905 100644 (file)
@@ -53,7 +53,12 @@ EXAMPLES = examples/ldbreader examples/ldifreader
 
 DIRS = lib bin common ldb_tdb ldb_ldap ldb_sqlite3 modules tools examples tdb talloc
 
-all: dirs $(OBJS) $(LDB_LIB) $(BINS) $(EXAMPLES) manpages
+all: showflags dirs $(OBJS) $(LDB_LIB) $(BINS) $(EXAMPLES) manpages
+
+showflags:
+       @echo 'ldb will be compiled with flags:'
+       @echo '  CFLAGS = $(CFLAGS)'
+       @echo '  LIBS = $(LIBS)'
 
 .c.o:
        @echo Compiling $*.c
index 502dacbd2aafde9416b22d7377cfeefd46118f2b..b2075d953b60811fe7ad6db513f3b8d3b601aa9c 100644 (file)
@@ -17,7 +17,12 @@ CFLAGS=-I. -I@libreplacedir@ @CFLAGS@
 
 OBJS = @LIBREPLACEOBJ@
 
-all: libreplace.a testsuite
+all: showflags libreplace.a testsuite
+
+showflags:
+       @echo 'libreplace will be compiled with flags:'
+       @echo '  CFLAGS = $(CFLAGS)'
+       @echo '  LIBS = $(LIBS)'
 
 install: all
        mkdir -p $(libdir)
index 73336c29331595c514bf01f9c13042a4501e786d..4effa964155d584597ede87cba332a0c9e2557db 100644 (file)
@@ -19,7 +19,12 @@ EXTRA_TARGETS = @DOC_TARGET@
 
 LIBOBJ = @TALLOCOBJ@ @LIBREPLACEOBJ@
 
-all: libtalloc.a testsuite $(EXTRA_TARGETS)
+all: showflags libtalloc.a testsuite $(EXTRA_TARGETS)
+
+showflags:
+       @echo 'talloc will be compiled with flags:'
+       @echo '  CFLAGS = $(CFLAGS)'
+       @echo '  LIBS = $(LIBS)'
 
 testsuite: $(LIBOBJ) testsuite.o
        $(CC) $(CFLAGS) -o testsuite testsuite.o $(LIBOBJ) $(LIBS)
index 64a6dc089121a26703f596baebce0c06c92778a9..d305518370384e9bb1d7c32b6eac3466da000052 100644 (file)
@@ -19,7 +19,12 @@ TDB_OBJ = @TDBOBJ@ @LIBREPLACEOBJ@
 
 DIRS = lib bin common tools examples
 
-all: dirs $(PROGS)
+all: showflags dirs $(PROGS)
+
+showflags:
+       @echo 'tdb will be compiled with flags:'
+       @echo '  CFLAGS = $(CFLAGS)'
+       @echo '  LIBS = $(LIBS)'
 
 .c.o:
        @echo Compiling $*.c