Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (23 sloc) 769 Bytes
# These are some standard dependencies rules common to all Makefiles.
COMPILE = $(filter-out $(NOCFLAGS-$(<F)), $(filter-out $(nocflags),\
$(CC) $(cflags) $(CFLAGS) $(CFLAGS-$(<F)) $(CFLAGS-$(DIRSTEM))) \
$(DEFS-$(<F)) $(DEFS-$(DIRSTEM)))
#
# compile rule
#
%.o: %.c
$(AM_V_CC)$(COMPILE) -Wp,-MD,.deps/$(@:.o=.P) -c $< -o $@
%.o: %.S
$(AM_V_CPPAS)$(COMPILE) -Wp,-MD,.deps/$(@:.o=.P) -c $< -o $@
%.o: %.s
$(AM_V_AS)$(COMPILE) -Wp,-MD,.deps/$(@:.o=.P) -c $< -o $@
#
# dependencies
#
DEP_FILES = $(addprefix ./.deps/, $(patsubst %.o,%.P,$(OBJS)))
# These are automatically remade, no need for make to worry about
# them.
.PHONY : $(DEP_FILES)
DEPS_MAGIC := $(shell mkdir ./.deps > /dev/null 2>&1 || :)
.SECONDARY : $(DEP_FILES)
-include $(DEP_FILES) /dev/null
You can’t perform that action at this time.