| 1 | #
|
|---|
| 2 | # Makefile.in
|
|---|
| 3 | #
|
|---|
| 4 | # This file is part of a free library for the Win32 API.
|
|---|
| 5 | #
|
|---|
| 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.
|
|---|
| 9 |
|
|---|
| 10 | # start config section
|
|---|
| 11 |
|
|---|
| 12 | SHELL = @SHELL@
|
|---|
| 13 |
|
|---|
| 14 | srcdir = @srcdir@
|
|---|
| 15 | VPATH = @srcdir@
|
|---|
| 16 |
|
|---|
| 17 | build_alias = @build@
|
|---|
| 18 | host_alias = @host@
|
|---|
| 19 | target_alias = @target@
|
|---|
| 20 | prefix = @prefix@
|
|---|
| 21 | conf_prefix = @prefix@
|
|---|
| 22 |
|
|---|
| 23 | program_transform_name = @program_transform_name@
|
|---|
| 24 | exec_prefix = @exec_prefix@
|
|---|
| 25 | bindir = @bindir@
|
|---|
| 26 | libdir = @libdir@
|
|---|
| 27 | tooldir = $(exec_prefix)/$(target_alias)
|
|---|
| 28 | datadir = @datadir@
|
|---|
| 29 | infodir = @infodir@
|
|---|
| 30 | includedir = @includedir@
|
|---|
| 31 |
|
|---|
| 32 | CC = @CC@
|
|---|
| 33 | CC_FOR_TARGET = $(CC)
|
|---|
| 34 | CFLAGS = @CFLAGS@
|
|---|
| 35 |
|
|---|
| 36 | DLLTOOL = @DLLTOOL@
|
|---|
| 37 | AS = @AS@
|
|---|
| 38 | AS_FOR_TARGET = $(AS_FOR_TARGET)
|
|---|
| 39 | WINDRES = @WINDRES@
|
|---|
| 40 |
|
|---|
| 41 | RANLIB = @RANLIB@
|
|---|
| 42 | AR = @AR@
|
|---|
| 43 | LD = @LD@
|
|---|
| 44 |
|
|---|
| 45 | TAR = tar
|
|---|
| 46 | TARFLAGS = z
|
|---|
| 47 | TARFILEEXT = .tar.gz
|
|---|
| 48 |
|
|---|
| 49 | FLAGS_TO_PASS = \
|
|---|
| 50 | AS="$(AS)" \
|
|---|
| 51 | CC="$(CC)" \
|
|---|
| 52 | CPPFLAGS="$(CPPFLAGS)" \
|
|---|
| 53 | CFLAGS="$(CFLAGS)" \
|
|---|
| 54 | CXXFLAGS="$(CXXFLAGS)" \
|
|---|
| 55 | AR="$(AR)" \
|
|---|
| 56 | RANLIB="$(RANLIB)" \
|
|---|
| 57 | LD="$(LD)" \
|
|---|
| 58 | DLLTOOL="$(DLLTOOL)" \
|
|---|
| 59 | TAR="$(TAR)" \
|
|---|
| 60 | TARFLAGS="$(TARFLAGS)" \
|
|---|
| 61 | TARFILEEXT="$(TARFILEEXT)" \
|
|---|
| 62 | WINDRES="$(WINDRES)"
|
|---|
| 63 |
|
|---|
| 64 | # end config section
|
|---|
| 65 |
|
|---|
| 66 | SUBDIRS = lib
|
|---|
| 67 |
|
|---|
| 68 | PACKAGE = w32api
|
|---|
| 69 | VERSION = 3.6
|
|---|
| 70 | CYGRELEASE = 1
|
|---|
| 71 |
|
|---|
| 72 | DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
|
|---|
| 73 | install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
|
|---|
| 74 |
|
|---|
| 75 | all: lib
|
|---|
| 76 |
|
|---|
| 77 | %-subdirs:
|
|---|
| 78 | for i in $(SUBDIRS); do \
|
|---|
| 79 | $(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
|
|---|
| 80 | done
|
|---|
| 81 |
|
|---|
| 82 | lib:
|
|---|
| 83 | $(MAKE) $(FLAGS_TO_PASS) -C $@
|
|---|
| 84 |
|
|---|
| 85 | test:
|
|---|
| 86 | $(MAKE) -C lib test $(FLAGS_TO_PASS)
|
|---|
| 87 |
|
|---|
| 88 | install uninstall:
|
|---|
| 89 | for i in $(SUBDIRS); do \
|
|---|
| 90 | (cd $$i; $(MAKE) $@); \
|
|---|
| 91 | done
|
|---|
| 92 |
|
|---|
| 93 | ifdef SNAPDATE
|
|---|
| 94 | distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)
|
|---|
| 95 | else
|
|---|
| 96 | ifneq (,$(findstring cygwin, $(target_alias)))
|
|---|
| 97 | distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
|
|---|
| 98 | else
|
|---|
| 99 | distdir=$(PACKAGE)-$(VERSION)
|
|---|
| 100 | endif
|
|---|
| 101 | endif
|
|---|
| 102 |
|
|---|
| 103 | ifneq (,$(findstring mingw, $(target_alias)))
|
|---|
| 104 | dist_prefix=
|
|---|
| 105 | else
|
|---|
| 106 | dist_prefix=/$(conf_prefix)
|
|---|
| 107 | endif
|
|---|
| 108 |
|
|---|
| 109 | ifneq (,$(findstring cygwin, $(target_alias)))
|
|---|
| 110 | TARFLAGS = j
|
|---|
| 111 | TARFILEEXT = .tar.bz2
|
|---|
| 112 | endif
|
|---|
| 113 |
|
|---|
| 114 | dist: srcdist bindist
|
|---|
| 115 |
|
|---|
| 116 | srcdist:
|
|---|
| 117 | rm -rf $(distdir)
|
|---|
| 118 | mkdir $(distdir)
|
|---|
| 119 | chmod 755 $(distdir)
|
|---|
| 120 | for i in $(DIST_FILES); do \
|
|---|
| 121 | cp -p $(srcdir)/$$i $(distdir)/$$i ; \
|
|---|
| 122 | done
|
|---|
| 123 | for i in $(SUBDIRS); do \
|
|---|
| 124 | (cd $$i; $(MAKE) distdir=../$(distdir) dist); \
|
|---|
| 125 | done
|
|---|
| 126 | rm -f $(distdir)-src$(TARFILEEXT)
|
|---|
| 127 | $(TAR) $(TARFLAGS)cf $(distdir)-src$(TARFILEEXT) $(distdir)
|
|---|
| 128 |
|
|---|
| 129 | bindist:
|
|---|
| 130 | rm -rf $(distdir)
|
|---|
| 131 | mkdir $(distdir)
|
|---|
| 132 | chmod 755 $(distdir)
|
|---|
| 133 | $(MAKE) install prefix=`pwd`/$(distdir)$(dist_prefix) exec_prefix=`pwd`/$(distdir)$(dist_prefix)
|
|---|
| 134 | rm -f $(distdir)$(TARFILEEXT)
|
|---|
| 135 | cd $(distdir); $(TAR) $(TARFLAGS)cf ../$(distdir)$(TARFILEEXT) *
|
|---|
| 136 |
|
|---|
| 137 | snapshot:
|
|---|
| 138 | make dist SNAPDATE=$(shell date '+%Y%m%d')
|
|---|
| 139 |
|
|---|
| 140 | Makefile: Makefile.in config.status configure
|
|---|
| 141 | $(SHELL) config.status
|
|---|
| 142 |
|
|---|
| 143 | mostlyclean-top:
|
|---|
| 144 | rm -f *~
|
|---|
| 145 | clean-top: mostlyclean-top
|
|---|
| 146 | rm -rf $(distdir)
|
|---|
| 147 | rm -f $(distdir)*$(TARFILEEXT)
|
|---|
| 148 | maintainer-clean-top:
|
|---|
| 149 |
|
|---|
| 150 | mostlyclean: mostlyclean-top mostlyclean-subdirs
|
|---|
| 151 | clean: mostlyclean-top clean-subdirs
|
|---|
| 152 | distclean: clean-top
|
|---|
| 153 | rm -f Makefile config.status config.log config.cache TAGS *~
|
|---|
| 154 | $(MAKE) -C lib distclean
|
|---|
| 155 | maintainer-clean: maintainer-clean-subdirs
|
|---|
| 156 |
|
|---|
| 157 | .PHONY: lib test
|
|---|