#
# Makefile definitions for HTMLDOC, an HTML document processing program.
#
# Copyright © 2011-2023 by Michael R Sweet.
# Copyright © 1997-2010 by Easy Software Products.
#
# This program is free software.  Distribution and use rights are outlined in
# the file "COPYING".
#

#
# Programs...
#

AR		=	@AR@
AWK		=	@AWK@
CC		=	@CC@
CXX		=	@CXX@
CHMOD		=	@CHMOD@
CP		=	@CP@
INSTALL		=	@INSTALL@
LN		=	/bin/ln -sf
MKDIR		=	@MKDIR@ -p
POST		=	@POST@
RANLIB		=	@RANLIB@
RM		=	@RM@ -f
SHELL		=	/bin/sh

# The extension to use for executables...
EXEEXT		=	@EXEEXT@

#
# Installation programs...
#

INSTALL_BIN	=	$(INSTALL) -c -m 555 @INSTALL_STRIP@
INSTALL_DATA	=	$(INSTALL) -c -m 444
INSTALL_DIR	=	$(INSTALL) -d
INSTALL_MAN	=	$(INSTALL) -c -m 444

#
# Directories...
#

BUILDROOT	=	$(DSTROOT)$(RPM_BUILD_ROOT)$(DESTDIR)
bindir		=	@bindir@
datadir		=	@datadir@
datarootdir	=	@datarootdir@
exec_prefix	=	@exec_prefix@
includedir	=	@includedir@
infodir		=	@infodir@
libdir		=	@libdir@
libexecdir	=	@libexecdir@
localstatedir	=	@localstatedir@
mandir		=	@mandir@
oldincludedir	=	@oldincludedir@
prefix		=	@prefix@
sbindir		=	@sbindir@
sharedstatedir	=	@sharedstatedir@
srcdir		=	@srcdir@
sysconfdir	=	@sysconfdir@
top_srcdir	=	@top_srcdir@

#
# Program options...
#
# OPTIM   defines the common compiler optimization/debugging options.
#

ARFLAGS		=	@ARFLAGS@
CFLAGS		=	-I.. @CFLAGS@ @LARGEFILE@ $(OPTIM) $(WARNINGS)
CPPFLAGS	=	@CPPFLAGS@
CXXFLAGS	=	-I.. @CXXFLAGS@ @LARGEFILE@ $(OPTIM) $(WARNINGS)
LDFLAGS		=	@LDFLAGS@ $(OPTIM)
LIBS		=	@LIBS@
OPTIM		=	@OPTIM@
WARNINGS	=	@WARNINGS@


#
# Rules...
#

.SILENT:
.SUFFIXES:	.a .c .cxx .h .o
.c.o:
	echo Compiling $<...
	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
.cxx.o:
	echo Compiling $<...
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $<
