1 # Copyright (c) 1999, 2000 Sascha Schumann. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
6 # 1. Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer.
8 # 2. Redistributions in binary form must reproduce the above copyright
9 # notice, this list of conditions and the following disclaimer in the
10 # documentation and/or other materials provided with the distribution.
12 # THIS SOFTWARE IS PROVIDED BY SASCHA SCHUMANN ``AS IS'' AND ANY EXPRESS OR
13 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
14 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
15 # EVENT SHALL SASCHA SCHUMANN BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
17 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
18 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
19 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
20 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
21 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 ##############################################################################
24 # $Id: build2.mk,v 1.5 2000/03/04 15:49:16 dreid Exp $
26 include generated_lists
28 TOUCH_FILES = mkinstalldirs install-sh missing
30 LT_TARGETS = ltconfig ltmain.sh config.guess config.sub
32 config_h_in = include/ap_config_auto.h.in
33 apr_config_h_in = lib/apr/include/apr_config.h.in
34 apr_configure = lib/apr/configure
35 mm_configure = lib/apr/shmem/mm/configure
37 APACHE_TARGETS = $(TOUCH_FILES) $(LT_TARGETS) configure $(config_h_in)
39 APR_TARGETS = $(apr_configure) $(apr_config_h_in) $(mm_configure)
41 targets = .deps aclocal.m4 $(APACHE_TARGETS) $(APR_TARGETS)
48 libtool_m4 = $(libtool_prefix)/share/aclocal/libtool.m4
50 aclocal.m4: acinclude.m4 $(libtool_m4)
52 @cat acinclude.m4 $(libtool_m4) > $@
55 libtoolize $(AMFLAGS) --force
57 $(config_h_in): configure
58 # explicitly remove target since autoheader does not seem to work
59 # correctly otherwise (timestamps are not updated)
67 configure: aclocal.m4 configure.in $(config_m4_files)
72 $(apr_config_h_in): $(apr_configure) lib/apr/acconfig.h
75 (cd lib/apr && autoheader)
77 $(apr_configure): lib/apr/aclocal.m4 lib/apr/configure.in lib/apr/threads.m4
79 (cd lib/apr && autoconf)
81 $(mm_configure): lib/apr/shmem/unix/mm/configure.in
83 (cd lib/apr/shmem/unix/mm && autoconf)