diff options
author | Steve Bennett <steveb@workware.net.au> | 2023-05-25 09:33:55 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2023-06-22 08:18:48 +1000 |
commit | 32fb54d3fc60c97b865617ef8751562e3474e320 (patch) | |
tree | 9e1a8a41860dca4ac3d6b7af386e9df34dd581bf /Makefile.in | |
parent | 6894d4378bc36d0fbe1b89e168b9108c69ee5b41 (diff) | |
download | jimtcl-32fb54d3fc60c97b865617ef8751562e3474e320.zip jimtcl-32fb54d3fc60c97b865617ef8751562e3474e320.tar.gz jimtcl-32fb54d3fc60c97b865617ef8751562e3474e320.tar.bz2 |
build: Add -I. as the first include path
If building on a system with an installed jim.h, we want
to be sure to pick up the local jim headers in preference.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Makefile.in b/Makefile.in index 6d46535..29c226b 100644 --- a/Makefile.in +++ b/Makefile.in @@ -40,9 +40,15 @@ SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS@ @else SHOBJ_LDFLAGS ?= @SHOBJ_LDFLAGS_R@ @endif -AS_CFLAGS = @AS_CFLAGS@ -AS_CXXFLAGS = @AS_CFLAGS@ -AS_CPPFLAGS = @AS_CPPFLAGS@ +@if [get-define srcdir] ne "." +VPATH := @srcdir@ +AS_CFLAGS = -I@srcdir@ +AS_CXXFLAGS = -I@srcdir@ +@endif + +AS_CFLAGS += @AS_CFLAGS@ +AS_CXXFLAGS += @AS_CFLAGS@ +AS_CPPFLAGS += @AS_CPPFLAGS@ CFLAGS ?= @CFLAGS@ CXXFLAGS ?= @CXXFLAGS@ LDFLAGS = @LDFLAGS@ @@ -53,12 +59,6 @@ prefix ?= @prefix@ docdir = @docdir@ srcdir := @srcdir@ -AS_CPPFLAGS += -Wall -I. -@if [get-define srcdir] ne "." -AS_CPPFLAGS += -I@srcdir@ -VPATH := @srcdir@ -@endif - @if JIM_STATICLIB LIBJIM := libjim.a @else |