blob: 3a18289967052e727fce3dcceecea225003b8fbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright © Tavian Barnes <tavianator@tavianator.com>
# SPDX-License-Identifier: 0BSD
# Makefile that generates gen/pkgs.mk
include config/prelude.mk
include ${GEN}/vars.mk
include ${GEN}/flags.mk
include ${GEN}/pkgs.mk
include config/exports.mk
${GEN}/pkgs.mk::
${MSG} "[ GEN] ${TGT}"
printf 'CFLAGS += %s\n' "$$(config/pkgconf.sh --cflags ${PKGS})" >>$@ 2>>$@.log
printf 'LDFLAGS += %s\n' "$$(config/pkgconf.sh --ldflags ${PKGS})" >>$@ 2>>$@.log
printf 'LDLIBS := %s $${LDLIBS}\n' "$$(config/pkgconf.sh --ldlibs ${PKGS})" >>$@ 2>>$@.log
${VCAT} $@
|