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
19 target_alias = @target@
21 conf_prefix = @prefix@
22 # FIXME: this needs an appropriate AC_SUBST
25 program_transform_name = @program_transform_name@
26 exec_prefix = @exec_prefix@
29 tooldir = $(exec_prefix)/$(target_alias)
32 includedir = @includedir@
40 AS_FOR_TARGET = $(AS_FOR_TARGET)
54 CPPFLAGS="$(CPPFLAGS)" \
56 CXXFLAGS="$(CXXFLAGS)" \
60 DLLTOOL="$(DLLTOOL)" \
62 TARFLAGS="$(TARFLAGS)" \
63 TARFILEEXT="$(TARFILEEXT)" \
74 DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
75 aclocal.m4 install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
80 for i in $(SUBDIRS); do \
81 $(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
85 $(MAKE) $(FLAGS_TO_PASS) -C $@
88 $(MAKE) -C lib test $(FLAGS_TO_PASS)
91 for i in $(SUBDIRS); do \
92 (cd $$i; $(MAKE) $@ $(FLAGS_TO_PASS)); \
96 distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)-$(host_os)
98 ifneq (,$(findstring cygwin, $(target_alias)))
99 distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
101 distdir=$(PACKAGE)-$(VERSION)-$(host_os)
105 ifneq (,$(findstring mingw, $(target_alias)))
108 dist_prefix=/$(conf_prefix)
111 ifneq (,$(findstring cygwin, $(target_alias)))
113 TARFILEEXT = .tar.bz2
116 dist: srcdist bindist
122 for i in $(DIST_FILES); do \
123 cp -p $(srcdir)/$$i $(distdir)/$$i ; \
125 for i in $(SUBDIRS); do \
126 (cd $$i; $(MAKE) distdir=../$(distdir) dist); \
128 rm -f $(distdir)-src$(TARFILEEXT)
129 $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
131 ifneq (,$(findstring cygwin, $(target_alias)))
136 $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
137 rm -f $(distdir)$(TARFILEEXT)
138 cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
144 $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
145 rm -f $(distdir)$(TARFILEEXT)
146 cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)-dev$(TARFILEEXT) *
150 make dist SNAPDATE=$(shell date '+%Y%m%d')
152 Makefile: Makefile.in config.status configure
153 $(SHELL) config.status
157 clean-top: mostlyclean-top
159 rm -f $(distdir)*$(TARFILEEXT)
160 maintainer-clean-top:
162 mostlyclean: mostlyclean-top mostlyclean-subdirs
163 clean: mostlyclean-top clean-subdirs
165 $(MAKE) -C lib/directx distclean
166 $(MAKE) -C lib/ddk distclean
167 $(MAKE) -C lib distclean
168 rm -f Makefile config.status config.log config.cache TAGS *~
169 maintainer-clean: maintainer-clean-subdirs