4 # This file is part of a free library for the Win32 API.
6 # This library is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 # start config section
17 build_alias = @build_alias@
18 host_alias = @host_alias@
19 target_alias = @target_alias@
21 conf_prefix = @prefix@
23 program_transform_name = @program_transform_name@
24 exec_prefix = @exec_prefix@
27 tooldir = $(exec_prefix)/$(target_alias)
30 includedir = @includedir@
38 AS_FOR_TARGET = $(AS_FOR_TARGET)
52 CPPFLAGS="$(CPPFLAGS)" \
54 CXXFLAGS="$(CXXFLAGS)" \
58 DLLTOOL="$(DLLTOOL)" \
60 TARFLAGS="$(TARFLAGS)" \
61 TARFILEEXT="$(TARFILEEXT)" \
72 DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
73 install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
78 for i in $(SUBDIRS); do \
79 $(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
83 $(MAKE) $(FLAGS_TO_PASS) -C $@
86 $(MAKE) -C lib test $(FLAGS_TO_PASS)
89 for i in $(SUBDIRS); do \
90 (cd $$i; $(MAKE) $@); \
94 distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)
96 ifneq (,$(findstring cygwin, $(target_alias)))
97 distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
99 distdir=$(PACKAGE)-$(VERSION)
103 ifneq (,$(findstring mingw, $(target_alias)))
106 dist_prefix=/$(conf_prefix)
109 ifneq (,$(findstring cygwin, $(target_alias)))
111 TARFILEEXT = .tar.bz2
114 dist: srcdist bindist
120 for i in $(DIST_FILES); do \
121 cp -p $(srcdir)/$$i $(distdir)/$$i ; \
123 for i in $(SUBDIRS); do \
124 (cd $$i; $(MAKE) distdir=../$(distdir) dist); \
126 rm -f $(distdir)-src$(TARFILEEXT)
127 $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
133 $(MAKE) install prefix=../$(distdir)$(dist_prefix) exec_prefix=../$(distdir)$(dist_prefix)
134 rm -f $(distdir)$(TARFILEEXT)
135 cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
138 make dist SNAPDATE=$(shell date '+%Y%m%d')
140 Makefile: Makefile.in config.status configure
141 $(SHELL) config.status
145 clean-top: mostlyclean-top
147 rm -f $(distdir)*$(TARFILEEXT)
148 maintainer-clean-top:
150 mostlyclean: mostlyclean-top mostlyclean-subdirs
151 clean: mostlyclean-top clean-subdirs
153 rm -f Makefile config.status config.log config.cache TAGS *~
154 $(MAKE) -C lib distclean
155 maintainer-clean: maintainer-clean-subdirs