[Devel] nicer compiling

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Nov 16 14:15:35 CET 2005


Hi Anand,

thanks for the patch -  I will give it a try - I'm concern not to 
produce to much extra output.

regards,
bogdan


Anand Kumria wrote:

>Hi,
>
>Attached is a diff that makes it nicer to compile openser.  Should you
>want to see the exact compilation sequence Q="" make <...> will show it
>to you.
>
>Thanks,
>Anand
>
>  
>
>------------------------------------------------------------------------
>
>Index: Makefile.rules
>===================================================================
>RCS file: /cvsroot/openser/sip-server/Makefile.rules,v
>retrieving revision 1.2
>diff -u -r1.2 Makefile.rules
>--- Makefile.rules	23 Aug 2005 16:33:29 -0000	1.2
>+++ Makefile.rules	14 Nov 2005 11:51:39 -0000
>@@ -11,11 +11,12 @@
> # (all this must  be defined previously!,  see Makefile.defs & Makefile)
> #
> 
>-
>+Q=@
> 
> #implicit rules
> %.o:%.c  $(ALLDEP)
>-	$(CC) $(CFLAGS) $(DEFS) -c $< -o $@
>+	@echo "Compiling $<"
>+	$(Q)$(CC) $(CFLAGS) $(DEFS) -c $< -o $@
> 
> %.d: %.c $(ALLDEP)
> 	@set -e; $(MKDEP) $(DEFS) $< \
>@@ -25,7 +26,8 @@
> 
> # normal rules
> $(NAME): $(objs) $(ALLDEP)
>-	$(LD) $(LDFLAGS) $(objs) $(extra_objs) $(LIBS) -o $(NAME) 
>+	@echo "Linking $(NAME)"
>+	$(Q)$(LD) $(LDFLAGS) $(objs) $(extra_objs) $(LIBS) -o $(NAME) 
> 
> 
> .PHONY: all
>@@ -86,9 +88,9 @@
> .PHONY: TAGS
> TAGS:
> 	$(MKTAGS) 
>-	
>+
> ifeq (,$(MAKECMDGOALS))
>-include $(depends)
>+-include $(depends)
> endif
> ifneq (,$(filter-out clean proper distclean realclean mantainer-clean TAGS \
> 		tar modules, $(MAKECMDGOALS)))
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Devel mailing list
>Devel at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/devel
>  
>




More information about the Devel mailing list