forked from wxWidgets/wxWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautogen.mk
79 lines (68 loc) · 2.59 KB
/
autogen.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Created: 2005/03/12
# Author: David Elliott
# Usage Example:
# make -f build/autogen.mk ACLOCAL=aclocal-1.9
# This is a simple Makefile to update the UNIX build system in such a
# way that doing a cvs diff on its output files should reveal only the
# true changes, not meaningless differences due to slightly different
# autoconf or aclocal m4 files.
# For aclocal: All necessary m4 files are located in the build/aclocal
# directory. Running aclocal -I build/aclocal when using aclocal 1.9
# will result in an aclocal.m4 which uses m4_include for these files.
ACLOCAL=aclocal
AUTOCONF=autoconf
BAKEFILE_GEN=bakefile_gen
# configure depends on everything else so this will build everything.
.PHONY: all
all: configure
BAKEFILES=\
build/bakefiles/build_cfg.bkl \
build/bakefiles/common.bkl \
build/bakefiles/common_samples.bkl \
build/bakefiles/common_samples_intree.bkl \
build/bakefiles/common_samples_outoftree.bkl \
build/bakefiles/config.bkl \
build/bakefiles/expat.bkl \
build/bakefiles/files.bkl \
build/bakefiles/jpeg.bkl \
build/bakefiles/lexilla.bkl \
build/bakefiles/mac_bundles.bkl \
build/bakefiles/monolithic.bkl \
build/bakefiles/multilib.bkl \
build/bakefiles/opengl.bkl \
build/bakefiles/plugins.bkl \
build/bakefiles/plugins_deps.bkl \
build/bakefiles/png.bkl \
build/bakefiles/regex.bkl \
build/bakefiles/scintilla.bkl \
build/bakefiles/tiff.bkl \
build/bakefiles/version.bkl \
build/bakefiles/wx.bkl \
build/bakefiles/wxpresets/libsample/libsample.bkl \
build/bakefiles/wxpresets/presets/wx.bkl \
build/bakefiles/wxpresets/presets/wx_unix.bkl \
build/bakefiles/wxpresets/presets/wx_win32.bkl \
build/bakefiles/wxpresets/presets/wx_xrc.bkl \
build/bakefiles/zlib.bkl \
tests/test.bkl
# Run bakefile-gen (which generates everything) whenever a bakefile is newer
# than Makefile.in or autoconf_inc.m4.
# This dep is obviously wrong but probably close enough
autoconf_inc.m4 Makefile.in: $(BAKEFILES)
cd build/bakefiles && \
$(BAKEFILE_GEN) -f autoconf
# Run configure whenever configure.ac, aclocal.m4 or autoconf_inc.m4 is updated
configure: configure.ac aclocal.m4 autoconf_inc.m4
$(AUTOCONF)
ACLOCAL_SOURCES = \
build/aclocal/ac_raf_func_which_getservbyname_r.m4 \
build/aclocal/atomic_builtins.m4 \
build/aclocal/ax_func_which_gethostbyname_r.m4 \
build/aclocal/bakefile-lang.m4 \
build/aclocal/bakefile.m4 \
build/aclocal/pkg.m4 \
build/aclocal/sdl.m4 \
build/aclocal/visibility.m4
# Run aclocal whenever acinclude or one of our local m4s is updated.
aclocal.m4: configure.ac acinclude.m4 $(ACLOCAL_SOURCES)
$(ACLOCAL) -I build/aclocal