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#
29topdir = @top_srcdir@
30srcdir = @srcdir@
31VPATH = .:@srcdir@
32BUILD_DIR = @BUILD_DIR@
33
34RM	= rm -f
35SHELL	= @MAKE_SHELL@
36CC = @CC@
37CC_FOR_BUILD = @CC_FOR_BUILD@
38
39EXEEXT = @EXEEXT@
40
41#
42# Compiler options:
43#
44PROFILE_FLAGS = @PROFILE_FLAGS@
45
46CFLAGS = @CFLAGS@
47CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
48CPPFLAGS = @CPPFLAGS@
49CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@
50LOCAL_CFLAGS = @LOCAL_CFLAGS@
51DEFS = @DEFS@
52LOCAL_DEFS = @LOCAL_DEFS@
53
54LIBS = @LIBS@
55LIBS_FOR_BUILD = ${LIBS}		# XXX
56
57LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
58LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS) $(CFLAGS)
59LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
60
61INCLUDES = -I${BUILD_DIR} -I${topdir}
62
63BASE_CCFLAGS = ${PROFILE_FLAGS} $(DEFS) $(LOCAL_DEFS) $(SYSTEM_FLAGS) \
64	  ${INCLUDES} $(LOCAL_CFLAGS)
65
66CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
67CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
68
69SRC1 =	man2html.c
70OBJ1 =	man2html.o
71
72.c.o:
73	$(RM) $@
74	$(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $<
75
76all: man2html$(EXEEXT)
77
78man2html$(EXEEXT): $(OBJ1)
79	$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}
80
81clean:
82	$(RM) man2html$(EXEEXT)
83
84distclean maintainer-clean mostlyclean: clean
85	$(RM) $(OBJ1)
86
87man2html.o: man2html.c
88