mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 12:59:15 +02:00
* Netbsd and Openbsd targets. + build IDE for FreeBSD
This commit is contained in:
parent
a28ee81ed6
commit
d68d190b6f
29
Makefile
29
Makefile
@ -255,6 +255,12 @@ else
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
ALLTARGET=smart
|
ALLTARGET=smart
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
ALLTARGET=smart
|
||||||
|
else
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
ALLTARGET=smart
|
||||||
|
else
|
||||||
ALLTARGET=all
|
ALLTARGET=all
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -262,6 +268,8 @@ endif
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
ifdef SNAPSHOT
|
ifdef SNAPSHOT
|
||||||
NOSTOP=-
|
NOSTOP=-
|
||||||
else
|
else
|
||||||
@ -273,9 +281,17 @@ else
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
PKGPRE=units
|
PKGPRE=units
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
PKGPRE=units
|
||||||
|
else
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
PKGPRE=units
|
||||||
|
else
|
||||||
PKGPRE=u
|
PKGPRE=u
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
override RELEASE=1
|
override RELEASE=1
|
||||||
export RELEASE
|
export RELEASE
|
||||||
ifndef DIST_DESTDIR
|
ifndef DIST_DESTDIR
|
||||||
@ -296,6 +312,9 @@ endif
|
|||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
IDE=1
|
IDE=1
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
override TARGET_DIRS+=compiler rtl utils fcl fv packages ide installer
|
override TARGET_DIRS+=compiler rtl utils fcl fv packages ide installer
|
||||||
@ -1782,7 +1801,7 @@ sourcezip:
|
|||||||
$(MAKE) utils_zipsourceinstall
|
$(MAKE) utils_zipsourceinstall
|
||||||
$(MAKE) ide_zipsourceinstall
|
$(MAKE) ide_zipsourceinstall
|
||||||
$(MAKE) installer_zipsourceinstall
|
$(MAKE) installer_zipsourceinstall
|
||||||
.PHONY: go32v2 win32 linux freebsd os2 go32v2zip win32zip linuxzip freebsdzip os2zip
|
.PHONY: go32v2 win32 linux freebsd os2 netbsd openbsd go32v2zip win32zip linuxzip freebsdzip os2zip netbsdzip openbsdzip
|
||||||
go32v2: checkfpcdir
|
go32v2: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=go32v2
|
$(MAKE) install OS_TARGET=go32v2
|
||||||
win32: checkfpcdir
|
win32: checkfpcdir
|
||||||
@ -1791,6 +1810,10 @@ linux: checkfpcdir
|
|||||||
$(MAKE) install OS_TARGET=linux
|
$(MAKE) install OS_TARGET=linux
|
||||||
freebsd: checkfpcdir
|
freebsd: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=freebsd
|
$(MAKE) install OS_TARGET=freebsd
|
||||||
|
netbsd: checkfpcdir
|
||||||
|
$(MAKE) install OS_TARGET=netbsd
|
||||||
|
openbsd: checkfpcdir
|
||||||
|
$(MAKE) install OS_TARGET=openbsd
|
||||||
os2: checkfpcdir
|
os2: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=os2
|
$(MAKE) install OS_TARGET=os2
|
||||||
sunos: checkfpcdir
|
sunos: checkfpcdir
|
||||||
@ -1803,6 +1826,10 @@ linuxzip: checkfpcdir
|
|||||||
$(MAKE) zipinstall OS_TARGET=linux
|
$(MAKE) zipinstall OS_TARGET=linux
|
||||||
freebsdzip : checkfpcdir
|
freebsdzip : checkfpcdir
|
||||||
$(MAKE) zipinstall OS_TARGET=freebsd
|
$(MAKE) zipinstall OS_TARGET=freebsd
|
||||||
|
netbsdzip : checkfpcdir
|
||||||
|
$(MAKE) zipinstall OS_TARGET=netbsd
|
||||||
|
openbsdzip : checkfpcdir
|
||||||
|
$(MAKE) zipinstall OS_TARGET=openbsd
|
||||||
beoszip : checkfpcdir
|
beoszip : checkfpcdir
|
||||||
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
||||||
os2zip: checkfpcdir
|
os2zip: checkfpcdir
|
||||||
|
34
Makefile.fpc
34
Makefile.fpc
@ -82,6 +82,12 @@ else
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
ALLTARGET=smart
|
ALLTARGET=smart
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
ALLTARGET=smart
|
||||||
|
else
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
ALLTARGET=smart
|
||||||
|
else
|
||||||
ALLTARGET=all
|
ALLTARGET=all
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
@ -89,6 +95,8 @@ endif
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Stop with an error?
|
# Stop with an error?
|
||||||
ifdef SNAPSHOT
|
ifdef SNAPSHOT
|
||||||
@ -104,9 +112,17 @@ else
|
|||||||
ifeq ($(OS_TARGET),freebsd)
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
PKGPRE=units
|
PKGPRE=units
|
||||||
else
|
else
|
||||||
|
ifeq ($(OS_TARGET),netbsd)
|
||||||
|
PKGPRE=units
|
||||||
|
else
|
||||||
|
ifeq ($(OS_TARGET),openbsd)
|
||||||
|
PKGPRE=units
|
||||||
|
else
|
||||||
PKGPRE=u
|
PKGPRE=u
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# Always compile for release
|
# Always compile for release
|
||||||
override RELEASE=1
|
override RELEASE=1
|
||||||
@ -139,6 +155,10 @@ endif
|
|||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
IDE=1
|
IDE=1
|
||||||
endif
|
endif
|
||||||
|
# is now doable too.
|
||||||
|
ifeq ($(OS_TARGET),freebsd)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
@ -408,7 +428,7 @@ sourcezip:
|
|||||||
# OS targets
|
# OS targets
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
||||||
.PHONY: go32v2 win32 linux freebsd os2 go32v2zip win32zip linuxzip freebsdzip os2zip
|
.PHONY: go32v2 win32 linux freebsd os2 netbsd openbsd go32v2zip win32zip linuxzip freebsdzip os2zip netbsdzip openbsdzip
|
||||||
|
|
||||||
go32v2: checkfpcdir
|
go32v2: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=go32v2
|
$(MAKE) install OS_TARGET=go32v2
|
||||||
@ -422,6 +442,12 @@ linux: checkfpcdir
|
|||||||
freebsd: checkfpcdir
|
freebsd: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=freebsd
|
$(MAKE) install OS_TARGET=freebsd
|
||||||
|
|
||||||
|
netbsd: checkfpcdir
|
||||||
|
$(MAKE) install OS_TARGET=netbsd
|
||||||
|
|
||||||
|
openbsd: checkfpcdir
|
||||||
|
$(MAKE) install OS_TARGET=openbsd
|
||||||
|
|
||||||
os2: checkfpcdir
|
os2: checkfpcdir
|
||||||
$(MAKE) install OS_TARGET=os2
|
$(MAKE) install OS_TARGET=os2
|
||||||
|
|
||||||
@ -440,6 +466,12 @@ linuxzip: checkfpcdir
|
|||||||
freebsdzip : checkfpcdir
|
freebsdzip : checkfpcdir
|
||||||
$(MAKE) zipinstall OS_TARGET=freebsd
|
$(MAKE) zipinstall OS_TARGET=freebsd
|
||||||
|
|
||||||
|
netbsdzip : checkfpcdir
|
||||||
|
$(MAKE) zipinstall OS_TARGET=netbsd
|
||||||
|
|
||||||
|
openbsdzip : checkfpcdir
|
||||||
|
$(MAKE) zipinstall OS_TARGET=openbsd
|
||||||
|
|
||||||
beoszip : checkfpcdir
|
beoszip : checkfpcdir
|
||||||
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user