allow top-level OPTIMIZE setting to affect builds in these subdirectories too

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@23673 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-04-30 14:27:56 +00:00
parent 5d04193649
commit a7961494bd
5 changed files with 5 additions and 7 deletions

View File

@@ -433,10 +433,10 @@ endif
noclean: depend asterisk subdirs noclean: depend asterisk subdirs
editline/config.h: editline/config.h:
cd editline && unset CFLAGS LIBS && ./configure ; \ cd editline && unset CFLAGS LIBS && CFLAGS="$(OPTIMIZE)" ./configure ; \
editline/libedit.a: FORCE editline/libedit.a: FORCE
cd editline && unset CFLAGS LIBS && test -f config.h || ./configure cd editline && unset CFLAGS LIBS && test -f config.h || CFLAGS="$(OPTIMIZE)" ./configure
$(MAKE) -C editline libedit.a $(MAKE) -C editline libedit.a
db1-ast/libdb1.a: FORCE db1-ast/libdb1.a: FORCE

View File

@@ -32,7 +32,7 @@ endif
#the default as we now have a better instruction set to work with. - Belgarath #the default as we now have a better instruction set to work with. - Belgarath
ifeq ($(PROC),sparc64) ifeq ($(PROC),sparc64)
PROC=ultrasparc PROC=ultrasparc
CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8
endif endif
# #

View File

@@ -44,7 +44,7 @@ endif
ifeq ($(PROC),sparc64) ifeq ($(PROC),sparc64)
PROC=ultrasparc PROC=ultrasparc
CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8
endif endif
ifeq (${OSARCH},FreeBSD) ifeq (${OSARCH},FreeBSD)

View File

@@ -10,7 +10,7 @@ endif
#Added support for UltraSparc - Belgarath #Added support for UltraSparc - Belgarath
ifeq ($(ARCH),sparc64) ifeq ($(ARCH),sparc64)
PROC=ultrasparc PROC=ultrasparc
CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 CFLAGS += -mtune=$(PROC) -pipe -fomit-frame-pointer -mcpu=v8
endif endif
LIBDBSO=libdb.so.$(SOVER) LIBDBSO=libdb.so.$(SOVER)

2
editline/configure vendored
View File

@@ -1923,8 +1923,6 @@ fi
if test "x$enable_debug" = "xyes" ; then if test "x$enable_debug" = "xyes" ; then
CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG" CPPFLAGS="$CPPFLAGS -DDEBUG_TTY -DDEBUG_KEY -DDEBUG_READ -DDEBUG"
CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE" CPPFLAGS="$CPPFLAGS -DDEBUG_REFRESH -DDEBUG_PASTE"
else
CFLAGS="$CFLAGS -O"
fi fi