respect CFLAGS, ok maintainer

This commit is contained in:
wilfried 2001-03-17 12:31:14 +00:00
parent 29e07b02b9
commit af7226f439
4 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-Browser_Makefile_in,v 1.1 2001/03/17 12:31:14 wilfried Exp $
--- Browser/Makefile.in.orig Fri Jan 3 19:24:16 1997
+++ Browser/Makefile.in Wed Mar 14 23:26:39 2001
@@ -23,14 +23,14 @@ RM = rm -f
CP = cp
DEFS = @DEFS@
-CFLAGS = $(C_OPTIMIZE) $(DEFS) -I$(srcdir)
+CFLAGS = @CFLAGS@ $(DEFS) -I$(srcdir)
# Change these to compile gist using installed headers and libraries
GISTL = ../Gist
GISTI = ../Gist
LDOPTS = @LDOPTS@
-LDFLAGS = $(LD_OPTIMIZE) $(LDOPTS)
+LDFLAGS = @LDFLAGS@ $(LDOPTS)
# The lowest level (last) libraries required on the load line go here.
# LOWLIBS = -lm -lc (if Y_LD is not your C compiler)

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-Gist_Makefile_in,v 1.1 2001/03/17 12:31:14 wilfried Exp $
--- Gist/Makefile.in.orig Fri Jan 3 19:22:49 1997
+++ Gist/Makefile.in Wed Mar 14 23:26:54 2001
@@ -32,11 +32,11 @@ RM = rm -f
CP = cp
DEFS = @DEFS@
-CFLAGS = $(C_OPTIMIZE) $(DEFS) -I$(srcdir)
+CFLAGS = @CFLAGS@ $(DEFS) -I$(srcdir)
LD_OPTIMIZE = $(C_OPTIMIZE)
LDOPTS = @LDOPTS@
-LDFLAGS = $(LD_OPTIMIZE) $(LDOPTS)
+LDFLAGS = @LDFLAGS@ $(LDOPTS)
# The lowest level (last) libraries required on the load line go here.
# LOWLIBS = -lm -lc (if Y_LD is not your C compiler)

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-Yorick_Makefile,v 1.1 2001/03/17 12:31:14 wilfried Exp $
--- Yorick/Makefile.orig Fri Jan 3 01:53:10 1997
+++ Yorick/Makefile Wed Mar 14 23:39:57 2001
@@ -174,9 +174,8 @@ style.o: style.c ydata.h defstr.h bini
fortrn.o: fortrn.c defmem.h
$(CC) $(CPPFLAGS) $(CFLAGS) $(FORTRAN_LINKAGE) -c fortrn.c
-# Always compile main.c with -g so new packages can be debugged.
main.o: main.c
- $(CC) $(CPPFLAGS) -g -c main.c
+ $(CC) $(CPPFLAGS) ${CFLAGS} -c main.c
# ---------------------------------------------------------------------------

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-Yorick_Maketmpl_in,v 1.1 2001/03/17 12:31:14 wilfried Exp $
--- Yorick/Maketmpl.in.orig Wed Dec 11 19:13:44 1996
+++ Yorick/Maketmpl.in Wed Mar 14 23:36:45 2001
@@ -125,10 +125,10 @@ GRAPH_O = graph.o graph0.o style.o
# Choose C compiler appropriate to this machine - must be an ANSI C compiler
CC = @CC@
DEFS = @DEFS@
-CFLAGS = $(C_OPTIMIZE) $(DEFS) $(D_SIZE_T) -I$(srcdir) $(YORINCL)
+CFLAGS = @CFLAGS@ $(DEFS) $(D_SIZE_T) -I$(srcdir) $(YORINCL)
LDOPTS = @LDOPTS@
-LDFLAGS = $(LD_OPTIMIZE) $(LDOPTS)
+LDFLAGS = @LDFLAGS@ $(LDOPTS)
# Usage: $(Y_LD) $(OBJS) $(LIBS)
Y_LD = $(CC) $(LDFLAGS) -o $@
@@ -208,7 +208,7 @@ CCFLAGS = $(CXXFLAGS)
# Thus, main.o needs a rule to build it:
CXXMAIN = fake_main.o
$(CXXMAIN):
- $(CXX) $(CPPFLAGS) -g -c $(Y_INCDIR)/main.c
+ $(CXX) $(CPPFLAGS) ${CFLAGS} -c $(Y_INCDIR)/main.c
# ---------------------------------------------------------------------------