summaryrefslogtreecommitdiffstats
path: root/build/deps.mk
blob: b49e5921f6659a50d8b24213cb1ea4ac28ec0258 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD

# Makefile that generates gen/deps.mk

include build/prelude.mk
include gen/vars.mk
include gen/flags.mk
include build/exports.mk

gen/deps.mk::
	${MSG} "[ GEN] $@"
	@printf '# %s\n' "$@" >$@
	@printf -- '-include %s\n' ${OBJS:.o=.d} >>$@
	${VCAT} $@