[svn-commits] kpfleming: branch 1.4 r132784 - /branches/1.4/Makefile.rules

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Jul 22 17:09:37 CDT 2008


Author: kpfleming
Date: Tue Jul 22 17:09:37 2008
New Revision: 132784

URL: http://svn.digium.com/view/asterisk?view=rev&rev=132784
Log:
add rules to create preprocessor output... useful for debugging macros

Modified:
    branches/1.4/Makefile.rules

Modified: branches/1.4/Makefile.rules
URL: http://svn.digium.com/view/asterisk/branches/1.4/Makefile.rules?view=diff&rev=132784&r1=132783&r2=132784
==============================================================================
--- branches/1.4/Makefile.rules (original)
+++ branches/1.4/Makefile.rules Tue Jul 22 17:09:37 2008
@@ -42,6 +42,14 @@
 	$(ECHO_PREFIX) echo "   [CC] $< -> $@"
 	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
 
+%.o: %.i
+	$(ECHO_PREFIX) echo "   [CCi] $< -> $@"
+	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
+
+%.i: %.c
+	$(ECHO_PREFIX) echo "   [CPP] $< -> $@"
+	$(CMD_PREFIX) $(CC) -o $@ -E $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP
+
 %.o: %.s
 	$(ECHO_PREFIX) echo "   [AS] $< -> $@"
 	$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) -MD -MT $@ -MF .$(subst /,_,$@).d -MP




More information about the svn-commits mailing list