diff --git a/fcl/Makefile b/fcl/Makefile index cebe6fa963..07dbd09fc7 100644 --- a/fcl/Makefile +++ b/fcl/Makefile @@ -215,6 +215,9 @@ endif ifeq ($(OS_TARGET),netbsd) override TARGET_UNITS+=process asyncio ssockets http endif +ifeq ($(OS_TARGET),openbsd) +override TARGET_UNITS+=process asyncio ssockets http +endif override TARGET_RSTS+=classes ssockets cachecls override TARGET_EXAMPLEDIRS+=tests override CLEAN_UNITS+=adler gzcrc gzio infblock infcodes inffast inftrees infutil minigzip paszlib trees zbase zcompres zdeflate zinflate zuncompr zutil @@ -236,6 +239,9 @@ endif ifeq ($(OS_TARGET),qnx) override COMPILER_INCLUDEDIR+=posix endif +ifeq ($(OS_TARGET),openbsd) +override COMPILER_INCLUDEDIR+=unix +endif override COMPILER_SOURCEDIR+=$(OS_TARGET) inc override COMPILER_TARGETDIR+=$(OS_TARGET) ifdef REQUIRE_UNITSDIR @@ -839,6 +845,8 @@ ifeq ($(OS_TARGET),netbsd) REQUIRE_PACKAGES_RTL=1 REQUIRE_PACKAGES_PASZLIB=1 REQUIRE_PACKAGES_INET=1 +REQUIRE_PACKAGES_MYSQL=1 +REQUIRE_PACKAGES_IBASE=1 endif ifeq ($(OS_TARGET),amiga) REQUIRE_PACKAGES_RTL=1 @@ -863,6 +871,9 @@ endif ifeq ($(OS_TARGET),openbsd) REQUIRE_PACKAGES_RTL=1 REQUIRE_PACKAGES_PASZLIB=1 +REQUIRE_PACKAGES_INET=1 +REQUIRE_PACKAGES_MYSQL=1 +REQUIRE_PACKAGES_IBASE=1 endif ifeq ($(OS_TARGET),wdosx) REQUIRE_PACKAGES_RTL=1 diff --git a/fcl/Makefile.fpc b/fcl/Makefile.fpc index cb98e30aa7..9b09d15830 100644 --- a/fcl/Makefile.fpc +++ b/fcl/Makefile.fpc @@ -11,6 +11,7 @@ packages=paszlib packages_linux=inet packages_freebsd=inet packages_netbsd=inet +packages_openbsd=inet # clean package units [clean] @@ -21,6 +22,7 @@ dirs=xml db shedit units=classes contnrs inifiles registry ezcgi pipes rtfpars idea base64 gettext iostream zstream cachecls units_freebsd=process asyncio ssockets http units_netbsd=process asyncio ssockets http +units_openbsd=process asyncio ssockets http units_linux=process asyncio ssockets http units_win32=process fileinfo rsts=classes ssockets cachecls @@ -33,6 +35,7 @@ includedir=$(OS_TARGET) inc includedir_linux=unix includedir_freebsd=unix includedir_netbsd=unix +includedir_openbsd=unix includedir_sunos=posix includedir_qnx=posix sourcedir=$(OS_TARGET) inc diff --git a/fcl/db/Makefile b/fcl/db/Makefile index 2b37a2da4c..c8986c4953 100644 --- a/fcl/db/Makefile +++ b/fcl/db/Makefile @@ -210,6 +210,12 @@ endif ifeq ($(OS_TARGET),freebsd) override TARGET_DIRS+=mysql interbase endif +ifeq ($(OS_TARGET),netbsd) +override TARGET_DIRS+=mysql interbase +endif +ifeq ($(OS_TARGET),openbsd) +override TARGET_DIRS+=mysql interbase +endif override TARGET_UNITS+=db ddg_ds ddg_rec override TARGET_EXAMPLEDIRS+=tests override INSTALL_FPCPACKAGE=y @@ -806,6 +812,8 @@ REQUIRE_PACKAGES_RTL=1 endif ifeq ($(OS_TARGET),netbsd) REQUIRE_PACKAGES_RTL=1 +REQUIRE_PACKAGES_MYSQL=1 +REQUIRE_PACKAGES_IBASE=1 endif ifeq ($(OS_TARGET),amiga) REQUIRE_PACKAGES_RTL=1 @@ -824,6 +832,8 @@ REQUIRE_PACKAGES_RTL=1 endif ifeq ($(OS_TARGET),openbsd) REQUIRE_PACKAGES_RTL=1 +REQUIRE_PACKAGES_MYSQL=1 +REQUIRE_PACKAGES_IBASE=1 endif ifeq ($(OS_TARGET),wdosx) REQUIRE_PACKAGES_RTL=1 @@ -1303,6 +1313,14 @@ ifeq ($(OS_TARGET),freebsd) TARGET_DIRS_MYSQL=1 TARGET_DIRS_INTERBASE=1 endif +ifeq ($(OS_TARGET),netbsd) +TARGET_DIRS_MYSQL=1 +TARGET_DIRS_INTERBASE=1 +endif +ifeq ($(OS_TARGET),openbsd) +TARGET_DIRS_MYSQL=1 +TARGET_DIRS_INTERBASE=1 +endif ifdef TARGET_DIRS_DBASE dbase_all: $(MAKE) -C dbase all diff --git a/fcl/db/Makefile.fpc b/fcl/db/Makefile.fpc index a51260a886..c2dca72630 100644 --- a/fcl/db/Makefile.fpc +++ b/fcl/db/Makefile.fpc @@ -9,6 +9,8 @@ main=fcl dirs=dbase dirs_linux=mysql interbase dirs_freebsd=mysql interbase +dirs_netbsd=mysql interbase +dirs_openbsd=mysql interbase dirs_win32=mysql interbase units=db ddg_ds ddg_rec exampledirs=tests