#
# Simple Makefile for the support programs.
#
# documentation support: man2html
# testing support: printenv recho zecho
#
# bashbug lives here but is created by the top-level makefile
#
# Currently only man2html is built
#
#
# Copyright (C) 1998 Free Software Foundation, Inc.     

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.

#
# Boilerplate
#
topdir = ../../bash-3.2.57
srcdir = ../../bash-3.2.57/support
VPATH = .:../../bash-3.2.57/support
BUILD_DIR = /mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/archiver-work/build

RM	= rm -f
SHELL	= /bin/sh
CC = aarch64-poky-linux-gcc  --sysroot=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/recipe-sysroot
CC_FOR_BUILD = gcc 

EXEEXT = 

#
# Compiler options:
#
PROFILE_FLAGS = 

CFLAGS =  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/archiver-work/=/usr/src/debug/bash/3.2.57-r0 -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/recipe-sysroot= -fdebug-prefix-map=/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/recipe-sysroot-native=  -DNON_INTERACTIVE_LOGIN_SHELLS
CFLAGS_FOR_BUILD = -isystem/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/recipe-sysroot-native/usr/include -O2 -pipe
CPPFLAGS = 
CPPFLAGS_FOR_BUILD = -isystem/mnt/slave/workspace/izumo-bisyamon-common/projects/ebisu-bsp/imx-4.14.78_1.0.0/out_sony-vt-z02_sony-bisya-model-z52_release/tmp/work/aarch64-poky-linux/bash/3.2.57-r0/recipe-sysroot-native/usr/include
LOCAL_CFLAGS = 
DEFS = -DHAVE_CONFIG_H
LOCAL_DEFS = -DSHELL

LIBS = -ldl 
LIBS_FOR_BUILD = ${LIBS}		# XXX

LOCAL_LDFLAGS = -rdynamic
LDFLAGS = -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -Wl,-z,now,-z,relro  $(LOCAL_LDFLAGS) $(CFLAGS)
LDFLAGS_FOR_BUILD = $(LDFLAGS)

INCLUDES = -I${BUILD_DIR} -I${topdir}

BASE_CCFLAGS = ${PROFILE_FLAGS} $(DEFS) $(LOCAL_DEFS) $(SYSTEM_FLAGS) \
	  ${INCLUDES} $(LOCAL_CFLAGS)

CCFLAGS = $(BASE_CCFLAGS) $(CPPFLAGS) $(CFLAGS)
CCFLAGS_FOR_BUILD = $(BASE_CCFLAGS) $(CPPFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)

SRC1 =	man2html.c
OBJ1 =	man2html.o

.c.o:
	$(RM) $@
	$(CC_FOR_BUILD) -c $(CCFLAGS_FOR_BUILD) $<

all: man2html$(EXEEXT)

man2html$(EXEEXT): $(OBJ1)
	$(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(OBJ1) -o $@ ${LIBS_FOR_BUILD}

clean:
	$(RM) man2html$(EXEEXT)

distclean maintainer-clean mostlyclean: clean
	$(RM) $(OBJ1)

man2html.o: man2html.c
