summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2008-11-15 19:51:29 +0000
committerKevin P. Fleming <kpfleming@digium.com>2008-11-15 19:51:29 +0000
commit211981e922c0287e955aa1440d859305ac135869 (patch)
tree4dd25651bafcac786be8dfe27f74d82a674981e8 /Makefile.rules
parent75281a1696388d97635c4283c4eab8538f9b61aa (diff)
ensure that if a .i file (preprocessed source) is present, the .o file is made from it, not from the .c file (this only works because GNU makes respects the order the rules are defined)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@157167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 3b876e6dc..babdb76c8 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -43,14 +43,14 @@ ifeq ($(findstring DONT_OPTIMIZE,$(MENUSELECT_CFLAGS)),)
endif
# build rules for various targets
-%.o: %.c
- $(ECHO_PREFIX) echo " [CC] $< -> $@"
- $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
-
%.o: %.i
$(ECHO_PREFIX) echo " [CCi] $< -> $@"
$(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
+%.o: %.c
+ $(ECHO_PREFIX) echo " [CC] $< -> $@"
+ $(CMD_PREFIX) $(CC) -o $@ -c $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)
+
%.i: %.c
$(ECHO_PREFIX) echo " [CPP] $< -> $@"
$(CMD_PREFIX) $(CC) -o $@ -E $< $(PTHREAD_CFLAGS) $(ASTCFLAGS) $(MAKE_DEPS)