From ebc61451614fb62a13e55c3974f538a06b7463a8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 18 Jul 2007 23:21:22 +0200 Subject: [PATCH] Set `s' and `o' variables in configure. This helps us avoid explicit references to SRCDIR in the top-level Makefile. --- build/Maketop | 3 --- lib/perl/Configure.pm | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build/Maketop b/build/Maketop index 2fa010d0..c57d1bec 100644 --- a/build/Maketop +++ b/build/Maketop @@ -7,9 +7,6 @@ V=0 # Disable all built-in rules and variables. Speeds up make and simplifies debugging. MAKEFLAGS+=-rR -s=$(SRCDIR) -o=obj - CFLAGS=$(CLANG) $(COPT) $(CDEBUG) $(CWARNS) -I. -I$(o) -I$(s) LDFLAGS=$(LOPT) diff --git a/lib/perl/Configure.pm b/lib/perl/Configure.pm index 383639f9..18ecd911 100644 --- a/lib/perl/Configure.pm +++ b/lib/perl/Configure.pm @@ -181,6 +181,8 @@ sub Finish() { foreach my $x (sort keys %vars) { print X "$x=$vars{$x}\n"; } + print X "s=\${SRCDIR}\n"; + print X "o=obj\n"; close X; Log "done\n"; } -- 2.39.2