瀏覽代碼

* Filter the Makefile's unit searchpaths from the fpmake command line.
To void cluttering the .fpm file

git-svn-id: trunk@31317 -

joost 10 年之前
父節點
當前提交
ac87da7c42
共有 100 個文件被更改,包括 302 次插入102 次删除
  1. 3 1
      ide/Makefile.fpc
  2. 3 1
      packages/Makefile.fpc
  3. 3 1
      packages/a52/Makefile.fpc
  4. 3 1
      packages/ami-extra/Makefile.fpc
  5. 3 1
      packages/amunits/Makefile.fpc
  6. 3 1
      packages/arosunits/Makefile.fpc
  7. 3 1
      packages/aspell/Makefile.fpc
  8. 3 1
      packages/bfd/Makefile.fpc
  9. 3 1
      packages/bzip2/Makefile.fpc
  10. 3 1
      packages/cairo/Makefile.fpc
  11. 3 1
      packages/cdrom/Makefile.fpc
  12. 3 1
      packages/chm/Makefile.fpc
  13. 3 1
      packages/cocoaint/Makefile.fpc
  14. 3 1
      packages/dblib/Makefile.fpc
  15. 3 1
      packages/dbus/Makefile.fpc
  16. 3 1
      packages/dts/Makefile.fpc
  17. 3 1
      packages/fastcgi/Makefile.fpc
  18. 3 1
      packages/fcl-async/Makefile.fpc
  19. 3 1
      packages/fcl-base/Makefile.fpc
  20. 3 1
      packages/fcl-db/Makefile.fpc
  21. 3 1
      packages/fcl-extra/Makefile.fpc
  22. 3 1
      packages/fcl-fpcunit/Makefile.fpc
  23. 3 1
      packages/fcl-image/Makefile.fpc
  24. 3 1
      packages/fcl-js/Makefile.fpc
  25. 3 1
      packages/fcl-json/Makefile.fpc
  26. 3 1
      packages/fcl-net/Makefile.fpc
  27. 3 1
      packages/fcl-passrc/Makefile.fpc
  28. 3 1
      packages/fcl-process/Makefile.fpc
  29. 3 1
      packages/fcl-registry/Makefile.fpc
  30. 3 1
      packages/fcl-res/Makefile.fpc
  31. 3 1
      packages/fcl-sdo/Makefile.fpc
  32. 3 1
      packages/fcl-sound/Makefile.fpc
  33. 3 1
      packages/fcl-stl/Makefile.fpc
  34. 3 1
      packages/fcl-web/Makefile.fpc
  35. 3 1
      packages/fcl-xml/Makefile.fpc
  36. 3 1
      packages/fftw/Makefile.fpc
  37. 3 1
      packages/fpgtk/Makefile.fpc
  38. 3 1
      packages/fpindexer/Makefile.fpc
  39. 3 1
      packages/fppkg/Makefile.fpc
  40. 3 1
      packages/fuse/Makefile.fpc
  41. 3 1
      packages/fv/Makefile.fpc
  42. 3 1
      packages/gdbint/Makefile.fpc
  43. 3 1
      packages/gdbm/Makefile.fpc
  44. 3 1
      packages/ggi/Makefile.fpc
  45. 3 1
      packages/gmp/Makefile.fpc
  46. 3 1
      packages/gnome1/Makefile.fpc
  47. 4 2
      packages/googleapi/Makefile.fpc
  48. 3 1
      packages/graph/Makefile.fpc
  49. 3 1
      packages/gtk1/Makefile.fpc
  50. 3 1
      packages/gtk2/Makefile.fpc
  51. 3 1
      packages/hash/Makefile.fpc
  52. 3 1
      packages/hermes/Makefile.fpc
  53. 3 1
      packages/httpd13/Makefile.fpc
  54. 3 1
      packages/httpd20/Makefile.fpc
  55. 3 1
      packages/httpd22/Makefile.fpc
  56. 3 1
      packages/httpd24/Makefile.fpc
  57. 3 1
      packages/ibase/Makefile.fpc
  58. 3 1
      packages/iconvenc/Makefile.fpc
  59. 3 1
      packages/imagemagick/Makefile.fpc
  60. 3 1
      packages/imlib/Makefile.fpc
  61. 3 1
      packages/iosxlocale/Makefile.fpc
  62. 3 1
      packages/jni/Makefile.fpc
  63. 3 1
      packages/ldap/Makefile.fpc
  64. 3 1
      packages/libc/Makefile.fpc
  65. 3 1
      packages/libcurl/Makefile.fpc
  66. 4 2
      packages/libenet/Makefile.fpc
  67. 3 1
      packages/libgbafpc/Makefile.fpc
  68. 3 1
      packages/libgd/Makefile.fpc
  69. 3 1
      packages/libndsfpc/Makefile.fpc
  70. 3 1
      packages/libogcfpc/Makefile.fpc
  71. 3 1
      packages/libpng/Makefile.fpc
  72. 3 1
      packages/librsvg/Makefile.fpc
  73. 3 1
      packages/libsee/Makefile.fpc
  74. 3 1
      packages/libtar/Makefile.fpc
  75. 3 1
      packages/libvlc/Makefile.fpc
  76. 3 1
      packages/libxml/Makefile.fpc
  77. 3 1
      packages/lua/Makefile.fpc
  78. 3 1
      packages/mad/Makefile.fpc
  79. 3 1
      packages/matroska/Makefile.fpc
  80. 3 1
      packages/modplug/Makefile.fpc
  81. 3 1
      packages/morphunits/Makefile.fpc
  82. 3 1
      packages/mysql/Makefile.fpc
  83. 3 1
      packages/ncurses/Makefile.fpc
  84. 3 1
      packages/newt/Makefile.fpc
  85. 3 1
      packages/numlib/Makefile.fpc
  86. 3 1
      packages/nvapi/Makefile.fpc
  87. 3 1
      packages/objcrtl/Makefile.fpc
  88. 3 1
      packages/odbc/Makefile.fpc
  89. 3 1
      packages/oggvorbis/Makefile.fpc
  90. 3 1
      packages/openal/Makefile.fpc
  91. 3 1
      packages/opencl/Makefile.fpc
  92. 3 1
      packages/opengl/Makefile.fpc
  93. 3 1
      packages/opengles/Makefile.fpc
  94. 3 1
      packages/openssl/Makefile.fpc
  95. 3 1
      packages/oracle/Makefile.fpc
  96. 3 1
      packages/os2units/Makefile.fpc
  97. 3 1
      packages/palmunits/Makefile.fpc
  98. 3 1
      packages/pasjpeg/Makefile.fpc
  99. 3 1
      packages/pastojs/Makefile.fpc
  100. 3 1
      packages/paszlib/Makefile.fpc

+ 3 - 1
ide/Makefile.fpc

@@ -33,9 +33,11 @@ LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 override NOCPUDEF=1
 override NOCPUDEF=1
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/Makefile.fpc

@@ -49,9 +49,11 @@ endif
 SUB_FPMAKE_SRCS=$(wildcard */fpmake.pp)
 SUB_FPMAKE_SRCS=$(wildcard */fpmake.pp)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/a52/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/ami-extra/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/amunits/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/arosunits/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/aspell/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/bfd/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/bzip2/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/cairo/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/cdrom/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/chm/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/cocoaint/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/dblib/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/dbus/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/dts/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fastcgi/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-async/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-base/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-db/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-extra/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-fpcunit/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-image/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-js/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-json/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-net/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-passrc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-process/Makefile.fpc

@@ -52,9 +52,11 @@ override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
 endif
 endif
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-registry/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-res/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-sdo/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-sound/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-stl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-web/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fcl-xml/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fftw/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fpgtk/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fpindexer/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fppkg/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fuse/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/fv/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gdbint/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gdbm/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/ggi/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gmp/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gnome1/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 4 - 2
packages/googleapi/Makefile.fpc

@@ -7,7 +7,7 @@ name=googleapi
 version=3.1.1
 version=3.1.1
 
 
 [require]
 [require]
-packages=rtl fpmkunit fcl-json rtl-extra rtl-objpas fcl-web
+packages=rtl fpmkunit
 
 
 [install]
 [install]
 fpcpackage=y
 fpcpackage=y
@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/graph/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gtk1/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/gtk2/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/hash/Makefile.fpc

@@ -52,9 +52,11 @@ override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
 endif
 endif
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/hermes/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/httpd13/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/httpd20/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/httpd22/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/httpd24/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/ibase/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/iconvenc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/imagemagick/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/imlib/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/iosxlocale/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/jni/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/ldap/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libcurl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 4 - 2
packages/libenet/Makefile.fpc

@@ -7,7 +7,7 @@ name=libenet
 version=3.1.1
 version=3.1.1
 
 
 [require]
 [require]
-packages=rtl rtl-objpas fpmkunit
+packages=rtl fpmkunit
 
 
 [install]
 [install]
 fpcpackage=y
 fpcpackage=y
@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libgbafpc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libgd/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libndsfpc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libogcfpc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libpng/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/librsvg/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libsee/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libtar/Makefile.fpc

@@ -52,9 +52,11 @@ override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
 endif
 endif
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libvlc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/libxml/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/lua/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/mad/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/matroska/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/modplug/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/morphunits/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/mysql/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/ncurses/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/newt/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/numlib/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/nvapi/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/objcrtl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/odbc/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/oggvorbis/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/openal/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/opencl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/opengl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/opengles/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/openssl/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/oracle/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/os2units/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/palmunits/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/pasjpeg/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/pastojs/Makefile.fpc

@@ -26,9 +26,11 @@ endif
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 LOCALFPMAKE=./fpmake$(SRCEXEEXT)
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

+ 3 - 1
packages/paszlib/Makefile.fpc

@@ -52,9 +52,11 @@ override COMPILER_FPMAKE_UNITDIR+=$(UNITDIR_FPMAKE_FPMKUNIT)
 endif
 endif
 
 
 [rules]
 [rules]
-# Do not pass the Makefile's unit and binary target locations. fpmake uses it's own.
+# Do not pass the Makefile's unit and binary target locations. Fpmake uses it's own.
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FU%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
 override FPCOPT:=$(filter-out -FE%,$(FPCOPT))
+# Do not pass the package-unitdirectories. Fpmake adds those and this way they don't apear in the .fpm
+override FPCOPT:=$(filter-out $(addprefix -Fu,$(COMPILER_UNITDIR)),$(FPCOPT))# Compose general fpmake-parameters
 # Compose general fpmake-parameters
 # Compose general fpmake-parameters
 ifdef FPMAKEOPT
 ifdef FPMAKEOPT
 FPMAKE_OPT+=$(FPMAKEOPT)
 FPMAKE_OPT+=$(FPMAKEOPT)

部分文件因文件數量過多而無法顯示