svn commit: samba r18267 - in branches/SAMBA_4_0/source: .
metze at samba.org
metze at samba.org
Fri Sep 8 13:55:13 GMT 2006
Author: metze
Date: 2006-09-08 13:55:13 +0000 (Fri, 08 Sep 2006)
New Revision: 18267
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18267
Log:
print out the failing command for .ho files too
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-09-08 13:47:45 UTC (rev 18266)
+++ branches/SAMBA_4_0/source/main.mk 2006-09-08 13:55:13 UTC (rev 18267)
@@ -318,10 +318,6 @@
.SUFFIXES: .x .c .et .y .l .d .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml .8 .8.xml .ho .idl .hd
-.c.ho:
- @echo "Compiling $< with host compiler"
- @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@
-
.c.d:
@echo "Generating dependencies for $<"
@$(CC) -M -MG -MP -MT $(<:.c=.o) -MT $@ `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
@@ -345,6 +341,13 @@
echo "$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@" 1>&2;\
$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@ >/dev/null 2>&1
+.c.ho:
+ @echo "Compiling $< with host compiler"
+ @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ && exit 0;\
+ echo "The following command failed:" 1>&2;\
+ echo "$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@" 1>&2;\
+ $(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@ >/dev/null 2>&1
+
.h.h.gch:
@echo "Precompiling $<"
@$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
More information about the samba-cvs
mailing list