Makefile.in: Pass CFLAGS and LDFLAGS instead of only OPTIMIZE.

parent 91794c3c
......@@ -42,13 +42,19 @@ tex_ddir = $(DESTDIR)$(texdir)
progs := sgml2html sgml2info sgml2latex sgml2lyx sgml2rtf sgml2txt sgmlcheck
OPTIMIZE = -O
PROFILE =
INCLUDE =
OPTIMIZE = -O
DEBUG =
WARN =
CFLAGS = $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS = $(DEBUG) $(PROFILE)
all:
ifeq ($(BUILD_SGMLSASP), true)
@echo "Compiling the SGML translator tools (in sgmls-1.1/)..."
( cd sgmls-1.1 ; \
$(MAKE) OPTIMIZE="$(OPTIMIZE)" sgmlsasp )
$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" sgmlsasp )
endif
# nsgmls or onsgmls should be installed already
# ifeq ($(BUILD_NSGMLS), true)
......@@ -59,14 +65,16 @@ endif
ifeq ($(BUILD_ENTITY_MAP), true)
@echo "Building Entity Mapping library (in entity-map)..."
( cd entity-map ; \
$(MAKE) )
$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)")
endif
@echo "Compiling preprocessor (in sgmlpre/)..."
( cd sgmlpre ; \
$(MAKE) CFLAGS="$(OPTIMIZE)" LEX=flex sgmlpre || exit -1 )
$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" LEX=flex sgmlpre || exit -1 )
@echo "Compiling RTF conversion tools (in rtf-fix/)..."
( cd rtf-fix ; \
$(MAKE) CFLAGS="$(OPTIMIZE)" || exit -1 )
$(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" || exit -1 )
@echo "making man pages in genman ..."
if [ ! -d genman ]; then mkdir genman ; fi
for ii in man/* ; do \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment