source: vendor/w32api/current/Makefile.in@ 3457

Last change on this file since 3457 was 2720, checked in by bird, 19 years ago

w32api v3.6

File size: 3.1 KB
Line 
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
12SHELL = @SHELL@
13
14srcdir = @srcdir@
15VPATH = @srcdir@
16
17build_alias = @build@
18host_alias = @host@
19target_alias = @target@
20prefix = @prefix@
21conf_prefix = @prefix@
22
23program_transform_name = @program_transform_name@
24exec_prefix = @exec_prefix@
25bindir = @bindir@
26libdir = @libdir@
27tooldir = $(exec_prefix)/$(target_alias)
28datadir = @datadir@
29infodir = @infodir@
30includedir = @includedir@
31
32CC = @CC@
33CC_FOR_TARGET = $(CC)
34CFLAGS = @CFLAGS@
35
36DLLTOOL = @DLLTOOL@
37AS = @AS@
38AS_FOR_TARGET = $(AS_FOR_TARGET)
39WINDRES = @WINDRES@
40
41RANLIB = @RANLIB@
42AR = @AR@
43LD = @LD@
44
45TAR = tar
46TARFLAGS = z
47TARFILEEXT = .tar.gz
48
49FLAGS_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
66SUBDIRS = lib
67
68PACKAGE = w32api
69VERSION = 3.6
70CYGRELEASE = 1
71
72DIST_FILES = Makefile.in configure.in configure config.guess config.sub \
73install-sh README.w32api ChangeLog TODO CONTRIBUTIONS
74
75all: lib
76
77%-subdirs:
78 for i in $(SUBDIRS); do \
79 $(MAKE) $(FLAGS_TO_PASS) -C $$i $*; \
80 done
81
82lib:
83 $(MAKE) $(FLAGS_TO_PASS) -C $@
84
85test:
86 $(MAKE) -C lib test $(FLAGS_TO_PASS)
87
88install uninstall:
89 for i in $(SUBDIRS); do \
90 (cd $$i; $(MAKE) $@); \
91 done
92
93ifdef SNAPDATE
94 distdir = $(PACKAGE)-$(VERSION)-$(SNAPDATE)
95else
96 ifneq (,$(findstring cygwin, $(target_alias)))
97 distdir=$(PACKAGE)-$(VERSION)-$(CYGRELEASE)
98 else
99 distdir=$(PACKAGE)-$(VERSION)
100 endif
101endif
102
103ifneq (,$(findstring mingw, $(target_alias)))
104 dist_prefix=
105else
106 dist_prefix=/$(conf_prefix)
107endif
108
109ifneq (,$(findstring cygwin, $(target_alias)))
110 TARFLAGS = j
111 TARFILEEXT = .tar.bz2
112endif
113
114dist: srcdist bindist
115
116srcdist:
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
129bindist:
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
137snapshot:
138 make dist SNAPDATE=$(shell date '+%Y%m%d')
139
140Makefile: Makefile.in config.status configure
141 $(SHELL) config.status
142
143mostlyclean-top:
144 rm -f *~
145clean-top: mostlyclean-top
146 rm -rf $(distdir)
147 rm -f $(distdir)*$(TARFILEEXT)
148maintainer-clean-top:
149
150mostlyclean: mostlyclean-top mostlyclean-subdirs
151clean: mostlyclean-top clean-subdirs
152distclean: clean-top
153 rm -f Makefile config.status config.log config.cache TAGS *~
154 $(MAKE) -C lib distclean
155maintainer-clean: maintainer-clean-subdirs
156
157.PHONY: lib test
Note: See TracBrowser for help on using the repository browser.