Bash-4.3 patch 12
[platform/upstream/bash.git] / support / Makefile.in
1 #
2 # Simple Makefile for the support programs.
3 #
4 # documentation support: man2html
5 # testing support: printenv recho zecho xcase
6 #
7 # bashbug lives here but is created by the top-level makefile
8 #
9 # Currently only man2html is built
10 #
11 # Copyright (C) 1998-2009 Free Software Foundation, Inc.     
12
13 #   This program is free software: you can redistribute it and/or modify
14 #   it under the terms of the GNU General Public License as published by
15 #   the Free Software Foundation, either version 3 of the License, or
16 #   (at your option) any later version.
17
18 #   This program is distributed in the hope that it will be useful,
19 #   but WITHOUT ANY WARRANTY; without even the implied warranty of
20 #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 #   GNU General Public License for more details.
22
23 #   You should have received a copy of the GNU General Public License
24 #   along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
26 #
27 # Boilerplate
28 #
29 topdir = @top_srcdir@
30 srcdir = @srcdir@
31 VPATH = .:@srcdir@
32 BUILD_DIR = @BUILD_DIR@
33
34 RM      = rm -f
35 SHELL   = @MAKE_SHELL@
36 CC = @CC@
37 CC_FOR_BUILD = @CC_FOR_BUILD@
38
39 EXEEXT = @EXEEXT@
40
41 #
42 # Compiler options:
43 #
44 PROFILE_FLAGS = @PROFILE_FLAGS@
45
46 CFLAGS = @CFLAGS@
47 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
48 CPPFLAGS = @CPPFLAGS@
49 CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
50 LOCAL_CFLAGS = @LOCAL_CFLAGS@
51 DEFS = @DEFS@
52 LOCAL_DEFS = @LOCAL_DEFS@
53
54 LIBS = @LIBS@
55 LIBS_FOR_BUILD = ${LIBS}                # XXX
56
57 LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
58 LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS) $(CFLAGS)
59 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
60
61 INCLUDES = -I${BUILD_DIR} -I${topdir}
62
63 BASE_CCFLAGS = ${PROFILE_FLAGS} $(DEFS) $(LOCAL_DEFS) $(SYSTEM_FLAGS) \
64           ${INCLUDES} $(LOCAL_CFLAGS)
65
66 CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
67 CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
68
69 SRC1 =  man2html.c
70 OBJ1 =  man2html.o
71
72 .c.o:
73         $(RM) $@
74         $(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $<
75
76 all: man2html$(EXEEXT)
77
78 man2html$(EXEEXT): $(OBJ1)
79         $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}
80
81 clean:
82         $(RM) man2html$(EXEEXT)
83
84 distclean maintainer-clean mostlyclean: clean
85         $(RM) $(OBJ1)
86
87 man2html.o: man2html.c