[Devel] nicer compiling
Anand Kumria
wildfire at progsoc.uts.edu.au
Mon Nov 14 12:53:56 CET 2005
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
--
`When any government, or any church for that matter, undertakes to say to
its subjects, "This you may not read, this you must not see, this you are
forbidden to know," the end result is tyranny and oppression no matter how
holy the motives' -- Robert A Heinlein, "If this goes on --"
-------------- next part --------------
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)))
More information about the Devel
mailing list