]>
Commit | Line | Data |
---|---|---|
cce855bc JA |
1 | # |
2 | # Simple Makefile for the support programs. | |
3 | # | |
4 | # documentation support: man2html | |
3185942a | 5 | # testing support: printenv recho zecho xcase |
cce855bc JA |
6 | # |
7 | # bashbug lives here but is created by the top-level makefile | |
8 | # | |
9 | # Currently only man2html is built | |
10 | # | |
3185942a | 11 | # Copyright (C) 1998-2009 Free Software Foundation, Inc. |
bb70624e | 12 | |
3185942a JA |
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. | |
bb70624e | 17 | |
3185942a JA |
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. | |
bb70624e | 22 | |
3185942a JA |
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/>. | |
cce855bc JA |
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 | |
b72432fd | 35 | SHELL = @MAKE_SHELL@ |
cce855bc | 36 | CC = @CC@ |
b80f6443 | 37 | CC_FOR_BUILD = @CC_FOR_BUILD@ |
cce855bc | 38 | |
bb70624e JA |
39 | EXEEXT = @EXEEXT@ |
40 | ||
cce855bc JA |
41 | # |
42 | # Compiler options: | |
43 | # | |
44 | PROFILE_FLAGS = @PROFILE_FLAGS@ | |
7117c2d2 | 45 | |
cce855bc | 46 | CFLAGS = @CFLAGS@ |
7117c2d2 | 47 | CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@ |
cce855bc | 48 | CPPFLAGS = @CPPFLAGS@ |
7117c2d2 JA |
49 | CPPFLAGS_FOR_BUILD = @CPPFLAGS_FOR_BUILD@ |
50 | LOCAL_CFLAGS = @LOCAL_CFLAGS@ | |
cce855bc JA |
51 | DEFS = @DEFS@ |
52 | LOCAL_DEFS = @LOCAL_DEFS@ | |
7117c2d2 | 53 | |
cce855bc | 54 | LIBS = @LIBS@ |
0628567a JA |
55 | LIBS_FOR_BUILD = ${LIBS} # XXX |
56 | ||
57 | LOCAL_LDFLAGS = @LOCAL_LDFLAGS@ | |
7117c2d2 | 58 | LDFLAGS = @LDFLAGS@ $(LOCAL_LDFLAGS) $(CFLAGS) |
3185942a | 59 | LDFLAGS_FOR_BUILD = @LDFLAGS_FOR_BUILD@ $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD) |
cce855bc JA |
60 | |
61 | INCLUDES = -I${BUILD_DIR} -I${topdir} | |
62 | ||
7117c2d2 JA |
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) | |
cce855bc JA |
68 | |
69 | SRC1 = man2html.c | |
70 | OBJ1 = man2html.o | |
71 | ||
72 | .c.o: | |
73 | $(RM) $@ | |
7117c2d2 | 74 | $(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $< |
cce855bc | 75 | |
bb70624e | 76 | all: man2html$(EXEEXT) |
cce855bc | 77 | |
bb70624e | 78 | man2html$(EXEEXT): $(OBJ1) |
0628567a | 79 | $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD} |
cce855bc JA |
80 | |
81 | clean: | |
b80f6443 JA |
82 | $(RM) man2html$(EXEEXT) |
83 | ||
95732b49 | 84 | distclean maintainer-clean mostlyclean: clean |
b80f6443 | 85 | $(RM) $(OBJ1) |
cce855bc JA |
86 | |
87 | man2html.o: man2html.c |