|
@@ -241,6 +241,7 @@ override NEEDOPT=-Sg
|
|
# Directories
|
|
# Directories
|
|
|
|
|
|
override NEEDUNITDIR=$(CPU_TARGET)
|
|
override NEEDUNITDIR=$(CPU_TARGET)
|
|
|
|
+override NEEDINCDIR=$(CPU_TARGET)
|
|
ifndef TARGETDIR
|
|
ifndef TARGETDIR
|
|
TARGETDIR=.
|
|
TARGETDIR=.
|
|
endif
|
|
endif
|
|
@@ -863,6 +864,11 @@ ifdef UNITSDIR
|
|
override FPCOPT+=-Fu$(UNITSDIR)
|
|
override FPCOPT+=-Fu$(UNITSDIR)
|
|
endif
|
|
endif
|
|
|
|
|
|
|
|
+ifdef NEEDINCDIR
|
|
|
|
+override FPCOPT+=$(addprefix -Fi,$(NEEDINCDIR))
|
|
|
|
+endif
|
|
|
|
+
|
|
|
|
+
|
|
# Target dirs and the prefix to use for clean/install
|
|
# Target dirs and the prefix to use for clean/install
|
|
ifdef TARGETDIR
|
|
ifdef TARGETDIR
|
|
override FPCOPT+=-FE$(TARGETDIR)
|
|
override FPCOPT+=-FE$(TARGETDIR)
|