asuswrt-merlin.ng/release/src-rt-5.04axhnd.675x/make.deprules
Eric Sauvageau 1ff96c3ba2 Merge SDK HND5.04 + GT-AX6000 router-sysdep
Changes from original SDK:
- cleaned bcmdrivers from object files.  Moved them to router-sysdep.MODEL_NAME
  to match other SDKs.
- Instancied model-specific objects in bootloaders/
2022-04-06 01:11:37 -04:00

15 lines
No EOL
473 B
Text

#
# Automatic dependency generation when it can't find
# the .d file. See Section 4.14 of GNU make.
#
# (The -M to gcc does this. Also, dump error messages about not being
# able to find a header file to /dev/null. Let the user figure it out
# when he tries to compile.)
#
ifneq ($(MAKECMDGOALS),clean)
%.d: %.c
@set -e; rm -f $@; \
$(CC) -M $(CPPFLAGS) $(CFLAGS) $< > $@.$$$$ 2>/dev/null; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
endif