so that we can update the build system to load (and clean)
the libraries we built
-TARGET = libfreeradius-make-dlopen.a
-SOURCES = dlopen.c log.c
+TARGET := libfreeradius-make-dlopen.a
+SOURCES := dlopen.c log.c
+
+TGT_POSTMAKE := echo "load ${BUILD_DIR}/lib/.libs/libfreeradius-make-dlopen.${LIBRARY_EXT}(dlopen_gmk_setup)" > ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST)))
+TGT_POSTCLEAN := rm -f ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST)))
#
# If we're building this target, then don't try to use it until we know
TARGET := libfreeradius-make-version.a
SOURCES := version.c log.c
+TGT_POSTMAKE := echo "load ${BUILD_DIR}/lib/.libs/libfreeradius-make-version.${LIBRARY_EXT}(version_gmk_setup)" > ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST)))
+TGT_POSTCLEAN := rm -f ${BUILD_DIR}/make/$(notdir $(lastword $(MAKEFILE_LIST)))
+
#
# If we're building this target, then don't try to use it until we know
# that building the target succeeds.