mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-23 16:18:13 +02:00
These are taken from the GLib 2.38.2 sources and adapted for later Visual Studio versions, for use to build pkg-config with the bundled GLib 2.38.2 sources. Notice that this will build the bundled GLib as a DLL, which will then need to be distributed with the resulting pkg-config executable. This sadly is necessary as otherwise pkg-config will fail to run as there needs to be extensive changes to the GLib code to initialize threading if GLib is to be built as a static library.
68 lines
1.4 KiB
Makefile
68 lines
1.4 KiB
Makefile
## Process this file with automake to produce Makefile.in
|
|
include $(top_srcdir)/glib.mk
|
|
|
|
# http://people.gnome.org/~walters/docs/build-api.txt
|
|
.buildapi-allow-builddir:
|
|
|
|
ACLOCAL_AMFLAGS = -I m4macros ${ACLOCAL_FLAGS}
|
|
|
|
SUBDIRS = . m4macros glib
|
|
DIST_SUBDIRS = $(SUBDIRS)
|
|
|
|
AM_CPPFLAGS = \
|
|
-DG_LOG_DOMAIN=g_log_domain_glib \
|
|
@GLIB_DEBUG_FLAGS@ \
|
|
-DG_DISABLE_DEPRECATED \
|
|
-DGLIB_COMPILATION
|
|
|
|
EXTRA_DIST += \
|
|
acglib.m4 \
|
|
README.in \
|
|
glib.mk \
|
|
config.h.win32 \
|
|
$(NULL)
|
|
|
|
|
|
# These may be in the builddir too
|
|
BUILT_EXTRA_DIST += \
|
|
README \
|
|
$(NULL)
|
|
|
|
CONFIGURE_DEPENDENCIES = acglib.m4
|
|
|
|
# build documentation when doing distcheck
|
|
DISTCHECK_CONFIGURE_FLAGS = --enable-debug --enable-gtk-doc --enable-man --disable-maintainer-mode
|
|
|
|
DISTCLEANFILES += config.lt
|
|
|
|
distclean-local: lcov-clean
|
|
if test $(srcdir) = .; then :; else \
|
|
rm -f $(BUILT_EXTRA_DIST); \
|
|
fi
|
|
|
|
.PHONY: files release sanity snapshot
|
|
|
|
files:
|
|
@files=`ls $(DISTFILES) 2> /dev/null `; for p in $$files; do \
|
|
echo $$p; \
|
|
done
|
|
|
|
release:
|
|
rm -rf .deps */.deps
|
|
cd docs && make glib.html
|
|
$(MAKE) distcheck
|
|
|
|
sanity:
|
|
./sanity_check $(VERSION)
|
|
|
|
snapshot:
|
|
$(MAKE) dist distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
|
|
|
|
snapcheck:
|
|
$(MAKE) distcheck distdir=$(PACKAGE)-snap`date +"%Y%m%d"`
|
|
|
|
dist-hook: $(BUILT_EXTRA_DIST)
|
|
files='$(BUILT_EXTRA_DIST)'; \
|
|
for f in $$files; do \
|
|
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
rm -f $(distdir)/$$f && cp $$d/$$f $(distdir) || exit 1; done
|