* fix setting of -Fl and -Fo arguments, the check for LIBGDB is

moved to the prerules section so the GDBLIBDIR can be used
    in the compiler.librarydir setting
This commit is contained in:
peter 2002-09-07 12:39:19 +00:00
parent e94bef4279
commit 5466969467
2 changed files with 25 additions and 23 deletions

View File

@ -201,6 +201,28 @@ endif
PACKAGESDIR:=$(wildcard $(FPCDIR) $(FPCDIR)/packages/base $(FPCDIR)/packages/extra)
override PACKAGE_NAME=gdbint
override PACKAGE_VERSION=1.0.6
ifdef inUnix
CURRDIR=./
else
CURRDIR=
endif
ifdef GDBLIBDIR
override LIBGDB:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
endif
ifeq ($(LIBGDB),)
override GDBLIBDIR=libgdb/$(OS_TARGET)
ifeq ($(OS_TARGET),go32v2)
ifneq ($(DJDIR),)
GDBLIBDIR+=$(DJDIR)/lib
endif
endif
override LIBGDB:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
endif
ifeq ($(LIBGDB),)
GDBFOUND=0
else
GDBFOUND=1
endif
override TARGET_UNITS+=gdbint gdbcon
override TARGET_EXAMPLES+=testgdb symify
override INSTALL_FPCPACKAGE=y
@ -1327,28 +1349,6 @@ makefiles: fpc_makefiles
ifneq ($(wildcard fpcmake.loc),)
include fpcmake.loc
endif
ifdef inUnix
CURRDIR=./
else
CURRDIR=
endif
ifdef GDBLIBDIR
override LIBGDB:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
endif
ifeq ($(LIBGDB),)
override GDBLIBDIR=libgdb/$(OS_TARGET)
ifeq ($(OS_TARGET),go32v2)
ifneq ($(DJDIR),)
GDBLIBDIR+=$(DJDIR)/lib
endif
endif
override LIBGDB:=$(firstword $(wildcard $(addsuffix /libgdb.a,$(GDBLIBDIR))))
endif
ifeq ($(LIBGDB),)
GDBFOUND=0
else
GDBFOUND=1
endif
ifeq ($(GDBFOUND),1)
$(CURRDIR)getver$(EXEEXT) : gdbver.pp
$(COMPILER) -o$(CURRDIR)getver$(EXEEXT) gdbver.pp

View File

@ -24,7 +24,7 @@ fpcpackage=y
fpcdir=../../..
[rules]
[prerules]
# For unix be sure to use the locally created gdbver
ifdef inUnix
CURRDIR=./
@ -56,6 +56,8 @@ else
GDBFOUND=1
endif
[rules]
ifeq ($(GDBFOUND),1)
# libgdb.a found