svn commit: samba r14371 - in branches/SAMBA_4_0/source: .

metze at samba.org metze at samba.org
Tue Mar 14 12:53:56 GMT 2006


Author: metze
Date: 2006-03-14 12:53:56 +0000 (Tue, 14 Mar 2006)
New Revision: 14371

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14371

Log:
- make 'make CC_CHECKER=foo' possible

can be used with sparse (http://www.kernel.org/git/?p=devel/sparse/sparse.git;a=summary)
or other C code analyzers.

metze
Modified:
   branches/SAMBA_4_0/source/main.mk


Changeset:
Modified: branches/SAMBA_4_0/source/main.mk
===================================================================
--- branches/SAMBA_4_0/source/main.mk	2006-03-14 11:49:40 UTC (rev 14370)
+++ branches/SAMBA_4_0/source/main.mk	2006-03-14 12:53:56 UTC (rev 14371)
@@ -327,6 +327,10 @@
 	@$(CC) -MM -MG -MT $(<:.c=.o) -MF $@ $(CFLAGS) $<
 
 .c.o:
+	@if test -n "$(CC_CHECKER)"; then \
+		echo Call \'$(CC_CHECKER)\' for $<; \
+		$(CC_CHECKER) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \
+	fi
 	@echo Compiling $<
 	@$(CC) `script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
 



More information about the samba-cvs mailing list