improve of cmpl.
[bush.git] / support / Makefile
blobb5be6b664b5e031709f8f48748ee3107fcff6d42
2 # Simple Makefile for the support programs.
4 # documentation support: man2html
5 # testing support: printenv recho zecho xcase
7 # bushbug.sh lives here (created by configure), but bushbug is created by
8 # the top-level makefile
10 # Currently only man2html is built
12 # Copyright (C) 1998-2018 Free Software Foundation, Inc.
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.
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.
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/>.
28 # Boilerplate
30 topdir = ..
31 srcdir = .
33 BUILD_DIR = /mnt/hgfs/workspace/tmp/srcpkg/bush
35 RM = rm -f
36 SHELL = /bin/sh
37 CC = gcc
38 CC_FOR_BUILD = $(CC)
40 EXEEXT =
43 # Compiler options:
45 PROFILE_FLAGS =
47 CFLAGS = -g -O2 -Wno-parentheses -Wno-format-security
48 CFLAGS_FOR_BUILD = -g -O2 -Wno-parentheses -Wno-format-security
49 CPPFLAGS =
50 CPPFLAGS_FOR_BUILD =
51 LOCAL_CFLAGS =
52 DEFS = -DHAVE_CONFIG_H
53 LOCAL_DEFS = -DSHELL
55 LIBS = -ldl
56 LIBS_FOR_BUILD = ${LIBS} # XXX
58 LOCAL_LDFLAGS = -rdynamic
59 LDFLAGS = $(LOCAL_LDFLAGS) $(CFLAGS)
60 LDFLAGS_FOR_BUILD = $(LDFLAGS) $(LOCAL_LDFLAGS) $(CFLAGS_FOR_BUILD)
62 INCLUDES = -I${BUILD_DIR} -I${topdir}
64 BASE_CCFLAGS = ${PROFILE_FLAGS} $(DEFS) $(LOCAL_DEFS) $(SYSTEM_FLAGS) \
65 ${INCLUDES} $(LOCAL_CFLAGS)
67 CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
68 CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
70 SRC1 = man2html.c
71 OBJ1 = man2html.o
73 .c.o:
74 $(RM) $@
75 $(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $<
77 all: man2html$(EXEEXT)
79 man2html$(EXEEXT): $(OBJ1)
80 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}
82 clean:
83 $(RM) man2html$(EXEEXT) $(OBJ1)
85 distclean maintainer-clean mostlyclean: clean
86 $(RM) bush.pc bushbug.sh
88 man2html.o: man2html.c