]> git.ipfire.org Git - thirdparty/bash.git/blob - support/Makefile.in
bash-5.2 distribution sources and documentation
[thirdparty/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.sh lives here (created by configure), but bashbug is created by
8 # the top-level makefile
9 #
10 # Currently only man2html is built
11 #
12 # Copyright (C) 1998-2021 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 3 of the License, or
17 # (at your option) 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, see <http://www.gnu.org/licenses/>.
26
27 #
28 # Boilerplate
29 #
30 topdir = @top_srcdir@
31 srcdir = @srcdir@
32 VPATH = @srcdir@
33 BUILD_DIR = @BUILD_DIR@
34
35 RM = rm -f
36 SHELL = @MAKE_SHELL@
37 CC = @CC@
38 CC_FOR_BUILD = @CC_FOR_BUILD@
39
40 EXEEXT = @EXEEXT@
41
42 #
43 # Compiler options:
44 #
45 PROFILE_FLAGS = @PROFILE_FLAGS@
46
47 CFLAGS = @CFLAGS@
48 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
49 BASE_CFLAGS_FOR_BUILD = @BASE_CFLAGS_FOR_BUILD@
50 CPPFLAGS = @CPPFLAGS@
51 CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
52 LOCAL_CFLAGS = @LOCAL_CFLAGS@
53 STYLE_CFLAGS = @STYLE_CFLAGS@
54 DEFS = @DEFS@
55 LOCAL_DEFS = @LOCAL_DEFS@
56
57 LIBS = @LIBS@
58 LIBS_FOR_BUILD = ${LIBS} # XXX
59
60 LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
61 LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS)
62 LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
63
64 INCLUDES = -I${BUILD_DIR} -I${topdir}
65
66 BASE_CCFLAGS = ${PROFILE_FLAGS} $(DEFS) $(LOCAL_DEFS) $(SYSTEM_FLAGS) \
67 ${INCLUDES} $(STYLE_CFLAGS) $(LOCAL_CFLAGS)
68
69 CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
70 CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
71
72 SRC1 = man2html.c
73 OBJ1 = man2html.o
74
75 .c.o:
76 $(RM) $@
77 $(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $<
78
79 all: man2html$(EXEEXT)
80
81 man2html$(EXEEXT): $(OBJ1)
82 $(CC_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}
83
84 clean:
85 $(RM) man2html$(EXEEXT) $(OBJ1)
86
87 distclean maintainer-clean mostlyclean: clean
88 $(RM) bash.pc bashbug.sh
89
90 man2html.o: man2html.c