diff options
author | Ingo Albrecht <prom@berlin.ccc.de> | 2010-03-07 17:01:47 +0100 |
---|---|---|
committer | Ingo Albrecht <prom@berlin.ccc.de> | 2010-03-07 17:03:10 +0100 |
commit | 3e9d0ba838419888b0edd282f80667bc6f0a8a39 (patch) | |
tree | e6240988d191146e2f0369bbf171152cde10e7a6 /src/target/firmware/Makefile.inc | |
parent | 5b12b25d5a016afff5884993748bf4a3663ed84a (diff) |
firmware: changed dependency suffix to .p for better shell completion
Diffstat (limited to 'src/target/firmware/Makefile.inc')
-rw-r--r-- | src/target/firmware/Makefile.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/firmware/Makefile.inc b/src/target/firmware/Makefile.inc index 0d3b8b34..3d6930f1 100644 --- a/src/target/firmware/Makefile.inc +++ b/src/target/firmware/Makefile.inc @@ -66,7 +66,7 @@ default: all #### APPLICATION RULES #### ALL_OBJS+=$(ANY_APP_OBJS) -ALL_DEPS+=$(ANY_APP_OBJS:.o=.P) +ALL_DEPS+=$(ANY_APP_OBJS:.o=.p) # template for application rules define APPLICATION_BOARD_template @@ -95,7 +95,7 @@ $(1)_OBJS:=$$($(1)_SRCS_REL:.c=.o) $(1)_OBJS:=$$($(1)_OBJS:.S=.o) ALL_OBJS+=$$($(1)_OBJS) apps/$(1)/main.o -ALL_DEPS+=$$($(1)_OBJS:.o=.P) apps/$(1)/main.P +ALL_DEPS+=$$($(1)_OBJS:.o=.p) apps/$(1)/main.p endef @@ -120,7 +120,7 @@ $$($(1)_DIR)/lib$(1).a: $$($(1)_OBJS) ALL_LIBS+=$$($(1)_DIR)/lib$(1).a ALL_OBJS+=$$($(1)_OBJS) -ALL_DEPS+=$$($(1)_OBJS:.o=.P) +ALL_DEPS+=$$($(1)_OBJS:.o=.p) endef @@ -139,13 +139,13 @@ depend: $(ALL_DEPS) #### COMPILATION RULES #### -%.P: %.c +%.p: %.c @$(CROSS_COMPILE)$(CC) $(CFLAGS) -M -o $(*).d $(<) - @sed 's|.*\.o:|$(@:.P=.o): |g' < $*.d > $@; rm -f $*.d; [ -s $@ ] || rm -f $@ + @sed 's|.*\.o:|$(@:.p=.o): |g' < $*.d > $@; rm -f $*.d; [ -s $@ ] || rm -f $@ -%.P: %.S +%.p: %.S @$(CROSS_COMPILE)$(CC) $(ASFLAGS) -M -o $(*).d $(<) - @sed 's|.*\.o:|$(@:.P=.o): |g' < $*.d > $@; rm -f $*.d; [ -s $@ ] || rm -f $@ + @sed 's|.*\.o:|$(@:.p=.o): |g' < $*.d > $@; rm -f $*.d; [ -s $@ ] || rm -f $@ %.o: %.c $(CROSS_COMPILE)$(CC) $(CFLAGS) -c -o $@ $< |