]>
git.ipfire.org Git - thirdparty/bash.git/blob - support/Makefile.in
2 # Simple Makefile for the support programs.
4 # documentation support: man2html
5 # testing support: printenv recho zecho xcase
7 # bashbug lives here but is created by the top-level makefile
9 # Currently only man2html is built
11 # Copyright (C) 1998-2009 Free Software Foundation, Inc.
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.
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.
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/>.
32 BUILD_DIR
= @BUILD_DIR@
37 CC_FOR_BUILD
= @CC_FOR_BUILD@
44 PROFILE_FLAGS
= @PROFILE_FLAGS@
47 CFLAGS_FOR_BUILD
= @CFLAGS_FOR_BUILD@
49 CPPFLAGS_FOR_BUILD
= @CPPFLAGS_FOR_BUILD@
50 LOCAL_CFLAGS
= @LOCAL_CFLAGS@
52 LOCAL_DEFS
= @LOCAL_DEFS@
55 LIBS_FOR_BUILD
= ${LIBS} # XXX
57 LOCAL_LDFLAGS
= @LOCAL_LDFLAGS@
58 LDFLAGS
= @LDFLAGS@
$(LOCAL_LDFLAGS
) $(CFLAGS
)
59 LDFLAGS_FOR_BUILD
= @LDFLAGS_FOR_BUILD@
$(LOCAL_LDFLAGS
) $(CFLAGS_FOR_BUILD
)
61 INCLUDES
= -I
${BUILD_DIR} -I
${topdir}
63 BASE_CCFLAGS
= ${PROFILE_FLAGS} $(DEFS
) $(LOCAL_DEFS
) $(SYSTEM_FLAGS
) \
64 ${INCLUDES} $(LOCAL_CFLAGS
)
66 CCFLAGS
= $(BASE_CCFLAGS
) $(CPPFLAGS
) $(CFLAGS
)
67 CCFLAGS_FOR_BUILD
= $(BASE_CCFLAGS
) $(CPPFLAGS_FOR_BUILD
) $(CFLAGS_FOR_BUILD
)
74 $(CC_FOR_BUILD
) -c
$(CCFLAGS_FOR_BUILD
) $<
76 all: man2html
$(EXEEXT
)
78 man2html
$(EXEEXT
): $(OBJ1
)
79 $(CC_FOR_BUILD
) $(CCFLAGS_FOR_BUILD
) $(OBJ1
) -o
$@
${LIBS_FOR_BUILD}
82 $(RM
) man2html
$(EXEEXT
)
84 distclean maintainer-clean
mostlyclean: clean
87 man2html.o
: man2html.c