mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 10:26:05 +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)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ifeq ($(OS_TARGET),netbsd)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ifeq ($(OS_TARGET),openbsd)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ALLTARGET=all
|
||||
endif
|
||||
endif
|
||||
@ -262,6 +268,8 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
ifdef SNAPSHOT
|
||||
NOSTOP=-
|
||||
else
|
||||
@ -273,9 +281,17 @@ else
|
||||
ifeq ($(OS_TARGET),freebsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
ifeq ($(OS_TARGET),netbsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
ifeq ($(OS_TARGET),openbsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
PKGPRE=u
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
override RELEASE=1
|
||||
export RELEASE
|
||||
ifndef DIST_DESTDIR
|
||||
@ -296,6 +312,9 @@ endif
|
||||
ifeq ($(OS_TARGET),linux)
|
||||
IDE=1
|
||||
endif
|
||||
ifeq ($(OS_TARGET),freebsd)
|
||||
IDE=1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
override TARGET_DIRS+=compiler rtl utils fcl fv packages ide installer
|
||||
@ -1782,7 +1801,7 @@ sourcezip:
|
||||
$(MAKE) utils_zipsourceinstall
|
||||
$(MAKE) ide_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
|
||||
$(MAKE) install OS_TARGET=go32v2
|
||||
win32: checkfpcdir
|
||||
@ -1791,6 +1810,10 @@ linux: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=linux
|
||||
freebsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=freebsd
|
||||
netbsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=netbsd
|
||||
openbsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=openbsd
|
||||
os2: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=os2
|
||||
sunos: checkfpcdir
|
||||
@ -1803,6 +1826,10 @@ linuxzip: checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=linux
|
||||
freebsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=freebsd
|
||||
netbsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=netbsd
|
||||
openbsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=openbsd
|
||||
beoszip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
||||
os2zip: checkfpcdir
|
||||
|
34
Makefile.fpc
34
Makefile.fpc
@ -82,6 +82,12 @@ else
|
||||
ifeq ($(OS_TARGET),freebsd)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ifeq ($(OS_TARGET),netbsd)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ifeq ($(OS_TARGET),openbsd)
|
||||
ALLTARGET=smart
|
||||
else
|
||||
ALLTARGET=all
|
||||
endif
|
||||
endif
|
||||
@ -89,6 +95,8 @@ endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Stop with an error?
|
||||
ifdef SNAPSHOT
|
||||
@ -104,9 +112,17 @@ else
|
||||
ifeq ($(OS_TARGET),freebsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
ifeq ($(OS_TARGET),netbsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
ifeq ($(OS_TARGET),openbsd)
|
||||
PKGPRE=units
|
||||
else
|
||||
PKGPRE=u
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Always compile for release
|
||||
override RELEASE=1
|
||||
@ -139,6 +155,10 @@ endif
|
||||
ifeq ($(OS_TARGET),linux)
|
||||
IDE=1
|
||||
endif
|
||||
# is now doable too.
|
||||
ifeq ($(OS_TARGET),freebsd)
|
||||
IDE=1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
@ -408,7 +428,7 @@ sourcezip:
|
||||
# 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
|
||||
$(MAKE) install OS_TARGET=go32v2
|
||||
@ -422,6 +442,12 @@ linux: checkfpcdir
|
||||
freebsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=freebsd
|
||||
|
||||
netbsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=netbsd
|
||||
|
||||
openbsd: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=openbsd
|
||||
|
||||
os2: checkfpcdir
|
||||
$(MAKE) install OS_TARGET=os2
|
||||
|
||||
@ -440,6 +466,12 @@ linuxzip: checkfpcdir
|
||||
freebsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=freebsd
|
||||
|
||||
netbsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=netbsd
|
||||
|
||||
openbsdzip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=openbsd
|
||||
|
||||
beoszip : checkfpcdir
|
||||
$(MAKE) zipinstall OS_TARGET=beos USEZIP=1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user