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