summaryrefslogtreecommitdiff
path: root/config.make.in
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2004-10-20 21:04:59 +0200
committerNiels Möller <nisse@lysator.liu.se>2004-10-20 21:04:59 +0200
commit7c59bc5e163144702340f428ab8b87a4c25b2c68 (patch)
treed43a22651b78fe120ffa213f6f7b5204cd6b2e10 /config.make.in
parentafb21fbe09f5455ff2bb8d295176add5c8b5b318 (diff)
downloadnettle-7c59bc5e163144702340f428ab8b87a4c25b2c68.tar.gz
* config.make.in: Insert $(PRE_CPPFLAGS) and $(PRE_LDFLAGS) before
$(CPPFLAGS) and $(LDFLAGS). This mechanism replaces $(INCLUDES). * examples/Makefile.in (PRE_CPPFLAGS, PRE_LDFLAGS): Use these flags to get -I.. and -L.. early on the command line. * testsuite/Makefile.in: Likewise * tools/Makefile.in: Likewise. Rev: src/nettle/ChangeLog:1.283 Rev: src/nettle/config.make.in:1.4 Rev: src/nettle/examples/Makefile.in:1.4 Rev: src/nettle/testsuite/Makefile.in:1.4 Rev: src/nettle/tools/Makefile.in:1.5
Diffstat (limited to 'config.make.in')
-rw-r--r--config.make.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.make.in b/config.make.in
index f00c4210..24a305f4 100644
--- a/config.make.in
+++ b/config.make.in
@@ -54,8 +54,11 @@ libdir = @libdir@
includedir = @includedir@
infodir = @infodir@
-COMPILE = $(CC) $(CPPFLAGS) $(INCLUDES) $(DEFS) $(CFLAGS) $(CCPIC) $(DEP_FLAGS)
-LINK = $(CC) $(CFLAGS) $(LDFLAGS)
+# PRE_CPPFLAGS and PRE_LDFLAGS lets each Makefile.in prepend its own
+# flags before CPPFLAGS and LDFLAGS.
+
+COMPILE = $(CC) $(PRE_CPPFLAGS) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(CCPIC) $(DEP_FLAGS)
+LINK = $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
# Disable builtin rule
%$(EXEEXT) : %.c