Strip hardcoded CC, CFLAGS, LDFLAGS as linuxdoc-tools build system ignores...

Strip hardcoded CC, CFLAGS, LDFLAGS as linuxdoc-tools build system ignores systemd-wide values of these variables.

Adapted from Gentoo with minimal changes. Original changes by Sergey Popov and Ian Delaney.
Signed-off-by: default avatarAgustin Martin Domingo <agmartin@debian.org>
parent 349d7969
......@@ -43,14 +43,6 @@ tex_ddir = $(DESTDIR)$(texdir)
progs := sgml2html sgml2info sgml2latex sgml2lyx sgml2rtf sgml2txt sgmlcheck
PROFILE =
INCLUDE =
OPTIMIZE = -O
DEBUG =
WARN =
CFLAGS = $(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS = $(DEBUG) $(PROFILE)
all: build
build:
......
CC=gcc
# This really needs flex
LEX=flex
CFLAGS=-O
all: rtf2rtf
......@@ -15,4 +14,3 @@ install: rtf2rtf
clean:
/bin/rm -f rtf2rtf.c rtf2rtf core
......@@ -15,14 +15,7 @@ MANDIR=$(PREFIX)/man/man$(MANEXT)
# Permissions mode to use for man pages.
MANMODE=444
CC=gcc
PROFILE=
INCLUDE=
OPTIMIZE=-O
DEBUG=
WARN=
CFLAGS=$(DEBUG) $(INCLUDE) $(WARN) $(PROFILE) $(OPTIMIZE)
LDFLAGS=$(DEBUG) $(PROFILE)
# Additional libraries needed.
# Ultrix needs -li
LIBS=
......
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