From fb3e1daed81bc99b104d5e03712d64bb98284cdb Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 11 Nov 2000 16:16:23 +0000 Subject: [PATCH] * updated from fixes --- Makefile.fpc | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Makefile.fpc b/Makefile.fpc index 56f3277b62..547e25203e 100644 --- a/Makefile.fpc +++ b/Makefile.fpc @@ -60,6 +60,11 @@ ALLTARGET=smart else ALLTARGET=all endif +ifeq ($(OS_TARGET),freebsd) +ALLTARGET=smart +else +ALLTARGET=all +endif endif endif endif @@ -78,6 +83,11 @@ PKGPRE=units else PKGPRE=u endif +ifeq ($(OS_TARGET),freebsd) +PKGPRE=units +else +PKGPRE=u +endif # Test dir if none specified ifndef PREFIXINSTALLDIR @@ -112,7 +122,7 @@ endif BUILDOPTS=FPC=$(PPNEW) RELEASE=1 INSTALLOPTS=FPC=$(PPNEW) ZIPDESTDIR=$(BASEDIR) ifdef PPUFILESNEW -override INSTALLOPT+=PPUFILES=$(PPUFILESNEW) +override INSTALLOPTS+=PPUFILES=$(PPUFILESNEW) endif # Compile also IDE (check for ide and fv dir) @@ -148,7 +158,7 @@ help: @echo @echo Packing targets are: @echo - @echo go32v2zip,win32zip,linuxzip,sourcezip + @echo go32v2zip,win32zip,linuxzip,freebsdzip,sourcezip @echo @exit @@ -317,6 +327,10 @@ endif ifeq ($(OS_TARGET),linux) $(MAKE) -C $(CVSINSTALL)/man installman endif +ifeq ($(OS_TARGET),freebsd) + $(MAKE) -C $(CVSINSTALL)/man installman +endif + endif # install generated things $(MAKE) compiler_install $(INSTALLOPTS) @@ -400,7 +414,7 @@ sourcebase: $(COPY) rtl/Makefile* $(SOURCEINSTALLDIR)/rtl $(COPY) packages/Makefile* $(SOURCEINSTALLDIR)/packages -sourcezip: +sourcezip: distclean $(MAKE) fpc_zipinstall ZIPTARGET=sourcebase ZIPNAME=basesrc $(MAKE) compiler_zipsourceinstall $(MAKE) rtl_zipsourceinstall @@ -417,7 +431,7 @@ sourcezip: # OS targets ########################################################################## -.PHONY: go32v2 win32 linux go32v2zip win32zip linuxzip +.PHONY: go32v2 win32 linux freebsd go32v2zip win32zip linuxzip freebsdzip go32v2: checkfpcdir $(MAKE) install OS_TARGET=go32v2 @@ -428,6 +442,9 @@ win32: checkfpcdir linux: checkfpcdir $(MAKE) install OS_TARGET=linux +freebsd: checkfpcdir + $(MAKE) install OS_TARGET=freebsd + go32v2zip: checkfpcdir $(MAKE) zipinstall OS_TARGET=go32v2 @@ -438,6 +455,9 @@ linuxzip: checkfpcdir $(MAKE) zipinstall OS_TARGET=linux +freebsdzip : checkfpcdir + $(MAKE) zipinstall OS_TARGET=freebsd + ########################################################################## # Debian / RPM ########################################################################## @@ -505,4 +525,3 @@ rpmcopy: distclean rpm: checkfpcdir rpmcopy cd $(RPMSPECDIR) ; rpm -ba fpc-$(FPC_VERSION).spec cd $(RPMSPECDIR) ; rpm -ba fpc-docs-$(FPC_VERSION).spec -