No subject


Tue Jun 11 15:59:36 CEST 2019


WIN98 is not so clear that it can be.
I've found some bugs in makefile, and somebody may change FPCM to be
generated proper MAKEFILE
my 4 suggestion:

--------1--------
/*  current MAKEFILE
ifdef PWD
BASEDIR:=$(subst \,/,$(shell $(PWD)))
ifdef inCygWin
ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
endif
endif
else
BASEDIR=.
endif
/** in last line change to ..,like FPCDIR
BASEDIR=c:/pp
--------2-----------
/* current MAKEFILE
ifdef INSTALL_FPCPACKAGE
INSTALL_BASEDIR:=/pp
/* I change to .., but I don't know, how it be under Linux
INSTALL_BASEDIR:=c:/pp
------------3--------------
please remove line:
override DEFAULT_FPCDIR=..
because it can't be pass from command line f.e: 'make all
DEFAULT_FPCDIR=c:\fp'
--------4-----------

ifdef DEFAULT_FPCDIR
ifeq ($(FPCDIR),wrong)
override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
ifeq ($(wildcard $(addprefix $(FPCDIR)/,rtl units)),)
override FPCDIR=wrong
endif
endif
endif
/*  change to :
ifdef DEFAULT_FPCDIR
override FPCDIR:=$(subst \,/,$(DEFAULT_FPCDIR))
endif


Darek





More information about the fpc-devel mailing list