Allow adding extra common dependencies
This commit is contained in:
parent
ccd17539e2
commit
3d4ec88dfd
1 changed files with 8 additions and 1 deletions
|
@ -154,6 +154,9 @@
|
||||||
# - Auto EEPROM upload with isp mode: ISP_EEPROM option.
|
# - Auto EEPROM upload with isp mode: ISP_EEPROM option.
|
||||||
# - Allow custom OBJDIR
|
# - Allow custom OBJDIR
|
||||||
#
|
#
|
||||||
|
# 0.10.4 24.i.2013 gaftech
|
||||||
|
# - Allow adding extra common dependencies (COMMON_DEPS)
|
||||||
|
#
|
||||||
########################################################################
|
########################################################################
|
||||||
#
|
#
|
||||||
# PATHS YOU NEED TO SET UP
|
# PATHS YOU NEED TO SET UP
|
||||||
|
@ -803,7 +806,11 @@ $(OBJDIR)/libs/%.o: $(USER_LIB_PATH)/%.c
|
||||||
# normal local sources
|
# normal local sources
|
||||||
# .o rules are for objects, .d for dependency tracking
|
# .o rules are for objects, .d for dependency tracking
|
||||||
# there seems to be an awful lot of duplication here!!!
|
# there seems to be an awful lot of duplication here!!!
|
||||||
|
ifdef COMMON_DEPS
|
||||||
|
COMMON_DEPS := $(COMMON_DEPS) Makefile
|
||||||
|
else
|
||||||
COMMON_DEPS := Makefile
|
COMMON_DEPS := Makefile
|
||||||
|
endif
|
||||||
$(OBJDIR)/%.o: %.c $(COMMON_DEPS)
|
$(OBJDIR)/%.o: %.c $(COMMON_DEPS)
|
||||||
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
|
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue