summaryrefslogtreecommitdiff
path: root/build/rules.mk.in
diff options
context:
space:
mode:
authorfielding <fielding@13f79535-47bb-0310-9956-ffa450edef68>2001-04-03 00:02:02 +0000
committerfielding <fielding@13f79535-47bb-0310-9956-ffa450edef68>2001-04-03 00:02:02 +0000
commit8687aa636bc5963939bcd93d6bc9d8fac20e031b (patch)
treec71e9bd91de1f3190944bf10ddf68f5f10fbd8cc /build/rules.mk.in
parent8038c802e293da0c3f05dee1e3977a62320f6a5c (diff)
downloadlibapr-8687aa636bc5963939bcd93d6bc9d8fac20e031b.tar.gz
Define preprocessor options in CPPFLAGS instead of CFLAGS
and avoid adding them over and over again. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61435 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/rules.mk.in')
-rw-r--r--build/rules.mk.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/rules.mk.in b/build/rules.mk.in
index f8e6e681c..98746385a 100644
--- a/build/rules.mk.in
+++ b/build/rules.mk.in
@@ -68,8 +68,9 @@ CC=@CC@
AWK=@AWK@
LIBTOOL=@LIBTOOL@
-CFLAGS=@CFLAGS@ @OPTIM@
-CPPFLAGS=@CPPFLAGS@ $(INCLUDES)
+CFLAGS=@CFLAGS@
+OPTIM=@OPTIM@
+CPPFLAGS=@CPPFLAGS@
LIBS=@LIBS@
LDFLAGS=@LDFLAGS@
@@ -82,7 +83,7 @@ LTFLAGS = --silent
#
# Basic macro setup
#
-COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS)
+COMPILE = $(CC) $(CPPFLAGS) $(CFLAGS) $(OPTIM) $(INCLUDES)
LT_COMPILE = $(LIBTOOL) --mode=compile $(LTFLAGS) $(COMPILE) -c $< && touch $@
LINK = $(LIBTOOL) --mode=link $(LTFLAGS) $(COMPILE) $(LDFLAGS) -o $@