Minor tweaks to the build environment: use values from the configure script rather than hardcoding them

This commit is contained in:
Andreas Huggel
2005-07-10 04:41:46 +00:00
parent b7cab6cafd
commit 96f6866afd
3 changed files with 7 additions and 8 deletions
+5 -7
View File
@@ -48,14 +48,13 @@ CXX = @CXX@
GXX = @GXX@
# Common compiler flags (warnings, symbols [-ggdb], optimization [-O2], etc)
CXXFLAGS = @CXXFLAGS@
ifeq ($(GXX),yes)
CXXFLAGS = -Wall -O2
else
CXXFLAGS = @CXXFLAGS@
CXXFLAGS += -Wall
endif
# Command to run only the preprocessor
CPP = $(CXX) -E -dD
CXXCPP = @CXXCPP@
# Preprocessor flags
CPPFLAGS = @CPPFLAGS@
@@ -71,10 +70,9 @@ EXEEXT := @EXEEXT@
CC = @CC@
GCC = @GCC@
CFLAGS = @CFLAGS@
ifeq ($(GCC),yes)
CFLAGS := -Wall -O2
else
CFLAGS := @CFLAGS@
CFLAGS += -Wall
endif
# **********************************************************************
+1
View File
@@ -9,6 +9,7 @@ AC_CONFIG_AUX_DIR([./config])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
+1 -1
View File
@@ -161,7 +161,7 @@ $(sort $(BINOBJ) $(EXIV2OBJ) $(MCOBJ) path-test.o): %.o: %.cpp
%.ii: %.cpp
set -e; \
$(CPP) $(CPPFLAGS) $(CXXDEFS) $(CXXINCS) $< | sed '/^[ ]*$$/d' > $@
$(CXXCPP) $(CPPFLAGS) $(CXXDEFS) $(CXXINCS) $< | sed '/^[ ]*$$/d' > $@
# ******************************************************************************
# Targets