[Swan] confused by Makefile

Paul Wouters paul at nohats.ca
Thu Oct 3 03:29:08 EEST 2013


On Wed, 2 Oct 2013, D. Hugh Redelmeier wrote:

> It turns out the the wildcard function is simply used to filter out
> filenames that don't actually correspond to files.
>
> The reason that this is needed is that $(SRCS) lists files that might
> exist in one of two directories, ${LIBRESWANSRCDIR}/lib/libswan/ or
> ${KLIPSSRCDIR}/; the recipe builds both paths and uses $(wildcard ...) to
> prune the ones that don't exist.

Note that there is version.in.c that lives in confusionland. It sort of
existed in both those directories, but one version was never used I
recently removed it. However, ${KLIPSSRCDIR}/version.in.c makes it to
OBJ.*/lib/libswan/version.c

Perhaps that's the reason for the trickery ?

Paul


More information about the Swan mailing list