blob: ca178defd1a570686ed25429f84eb5379835e7f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD
# Makefile that generates gen/deps.mk
include config/prelude.mk
include ${GEN}/vars.mk
include ${GEN}/flags.mk
include config/exports.mk
${GEN}/deps.mk::
${MSG} "[ GEN] ${TGT}"
printf '# %s\n' "$@" >$@
if config/cc.sh -MD -MP -MF /dev/null config/empty.c; then \
printf 'DEPFLAGS = -MD -MP -MF $${@:.o=.d}\n'; \
fi >>$@ 2>$@.log
${VCAT} $@
@printf -- '-include %s\n' ${OBJS:.o=.d} >>$@
|