mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-13 22:25:59 +02:00
* ide support
This commit is contained in:
parent
3c1df3e960
commit
a401ca528a
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Makefile generated by fpcmake v0.99.13 [2000/02/07]
|
# Makefile generated by fpcmake v0.99.13 [2000/02/08]
|
||||||
#
|
#
|
||||||
|
|
||||||
defaultrule: help
|
defaultrule: help
|
||||||
@ -177,6 +177,11 @@ endif
|
|||||||
override RELEASE=1
|
override RELEASE=1
|
||||||
export RELEASE
|
export RELEASE
|
||||||
|
|
||||||
|
# We want to have the resulting .zips in the current dir
|
||||||
|
ifndef DESTZIPDIR
|
||||||
|
export DESTZIPDIR:=$(BASEDIR)
|
||||||
|
endif
|
||||||
|
|
||||||
# Temporary path to pack a file
|
# Temporary path to pack a file
|
||||||
BASEPACKDIR=$(BASEDIR)/basepack
|
BASEPACKDIR=$(BASEDIR)/basepack
|
||||||
|
|
||||||
@ -194,6 +199,21 @@ INSTALLOPTS=FPC=$(PPNEW) ZIPDESTDIR=$(BASEDIR)
|
|||||||
ifdef PPUFILESNEW
|
ifdef PPUFILESNEW
|
||||||
override INSTALLOPT+=PPUFILES=$(PPUFILESNEW)
|
override INSTALLOPT+=PPUFILES=$(PPUFILESNEW)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Compile also IDE (check for ide and fv dir)
|
||||||
|
ifneq ($(wildcard ide),)
|
||||||
|
ifneq ($(wildcard fv),)
|
||||||
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),win32)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
#####################################################################
|
#####################################################################
|
||||||
# FPCDIR Setting
|
# FPCDIR Setting
|
||||||
#####################################################################
|
#####################################################################
|
||||||
@ -1236,7 +1256,7 @@ unexport FPC_VERSION OS_SOURCE
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
.PHONY: help checkfpcdir
|
.PHONY: help checkfpcdir
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo
|
@echo
|
||||||
@echo Directory targets:
|
@echo Directory targets:
|
||||||
@ -1263,6 +1283,7 @@ help:
|
|||||||
compiler_cycle:
|
compiler_cycle:
|
||||||
$(MAKE) -C compiler cycle
|
$(MAKE) -C compiler cycle
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# IDE
|
# IDE
|
||||||
#######################################
|
#######################################
|
||||||
@ -1270,10 +1291,19 @@ compiler_cycle:
|
|||||||
.PHONY: ide_comp ide_full
|
.PHONY: ide_comp ide_full
|
||||||
|
|
||||||
ide_comp:
|
ide_comp:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
$(MAKE) -C ide full
|
$(MAKE) -C ide full
|
||||||
|
|
||||||
|
# Look if libgdb.a is available then use fullgdb
|
||||||
|
ifneq ($(wildcard packages/gdbint/libgdb/go32v2/libgdb.a),)
|
||||||
ide_full:
|
ide_full:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
$(MAKE) -C ide fullgdb
|
$(MAKE) -C ide fullgdb
|
||||||
|
else
|
||||||
|
ide_full:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
|
$(MAKE) -C ide full
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
@ -1294,10 +1324,6 @@ doc_install:
|
|||||||
# Packaging targets
|
# Packaging targets
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
ifndef DESTZIPDIR
|
|
||||||
export DESTZIPDIR:=$(BASEDIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
idezips: clean ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip
|
idezips: clean ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip
|
||||||
|
|
||||||
ide_allzip:
|
ide_allzip:
|
||||||
@ -1308,7 +1334,7 @@ ide_gdbzip:
|
|||||||
$(MAKE) ide_clean
|
$(MAKE) ide_clean
|
||||||
$(MAKE) ide_gdb
|
$(MAKE) ide_gdb
|
||||||
$(MAKE) -C ide/text zipinstall ZIPNAME=ide-gdb-$(PACKAGESUFFIX)
|
$(MAKE) -C ide/text zipinstall ZIPNAME=ide-gdb-$(PACKAGESUFFIX)
|
||||||
ide_fullzip:
|
ide_compzip:
|
||||||
$(MAKE) compiler_clean
|
$(MAKE) compiler_clean
|
||||||
$(MAKE) ide_clean
|
$(MAKE) ide_clean
|
||||||
$(MAKE) ide_full
|
$(MAKE) ide_full
|
||||||
@ -1369,13 +1395,19 @@ build-stamp:
|
|||||||
$(MAKE) fcl_clean
|
$(MAKE) fcl_clean
|
||||||
$(MAKE) packages_clean
|
$(MAKE) packages_clean
|
||||||
$(MAKE) utils_clean
|
$(MAKE) utils_clean
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) fv_clean
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
endif
|
||||||
# build everything
|
# build everything
|
||||||
$(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) api_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) api_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) fcl_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) fcl_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) utils_all $(BUILDOPTS)
|
$(MAKE) utils_all $(BUILDOPTS)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_full $(BUILDOPTS)
|
||||||
|
endif
|
||||||
$(ECHO) Build > build-stamp
|
$(ECHO) Build > build-stamp
|
||||||
|
|
||||||
installbase: build-stamp
|
installbase: build-stamp
|
||||||
@ -1392,7 +1424,8 @@ endif
|
|||||||
# binw32 (cygwin1.dll)
|
# binw32 (cygwin1.dll)
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
$(COPY) $(CVSINSTALL)/binw32/* $(BININSTALLDIR)
|
$(COPY) $(CVSINSTALL)/binw32/* $(BININSTALLDIR)
|
||||||
endif# manpages for linux
|
endif
|
||||||
|
# manpages for linux
|
||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
$(MAKE) -C $(CVSINSTALL)/man installman
|
$(MAKE) -C $(CVSINSTALL)/man installman
|
||||||
endif
|
endif
|
||||||
@ -1406,6 +1439,9 @@ install: build-stamp
|
|||||||
$(MAKE) api_install $(INSTALLOPTS)
|
$(MAKE) api_install $(INSTALLOPTS)
|
||||||
$(MAKE) fcl_install $(INSTALLOPTS)
|
$(MAKE) fcl_install $(INSTALLOPTS)
|
||||||
$(MAKE) packages_install $(INSTALLOPTS)
|
$(MAKE) packages_install $(INSTALLOPTS)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_install $(BUILDOPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
zipinstall: $(FPCDIRSET) build-stamp
|
zipinstall: $(FPCDIRSET) build-stamp
|
||||||
$(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
|
$(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
|
||||||
@ -1413,6 +1449,9 @@ zipinstall: $(FPCDIRSET) build-stamp
|
|||||||
$(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
$(MAKE) fcl_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) fcl_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
$(MAKE) packages_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) packages_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_zipinstall $(INSTALLOPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -1567,4 +1606,3 @@ rpmcopy: distclean
|
|||||||
rpm: rpmcopy
|
rpm: rpmcopy
|
||||||
cd $(RPMSPECDIR) ; rpm -ba fpc-$(FPC_VERSION).spec
|
cd $(RPMSPECDIR) ; rpm -ba fpc-$(FPC_VERSION).spec
|
||||||
cd $(RPMSPECDIR) ; rpm -ba fpc-docs-$(FPC_VERSION).spec
|
cd $(RPMSPECDIR) ; rpm -ba fpc-docs-$(FPC_VERSION).spec
|
||||||
|
|
||||||
|
@ -83,6 +83,11 @@ endif
|
|||||||
override RELEASE=1
|
override RELEASE=1
|
||||||
export RELEASE
|
export RELEASE
|
||||||
|
|
||||||
|
# We want to have the resulting .zips in the current dir
|
||||||
|
ifndef DESTZIPDIR
|
||||||
|
export DESTZIPDIR:=$(BASEDIR)
|
||||||
|
endif
|
||||||
|
|
||||||
# Temporary path to pack a file
|
# Temporary path to pack a file
|
||||||
BASEPACKDIR=$(BASEDIR)/basepack
|
BASEPACKDIR=$(BASEDIR)/basepack
|
||||||
|
|
||||||
@ -101,6 +106,21 @@ ifdef PPUFILESNEW
|
|||||||
override INSTALLOPT+=PPUFILES=$(PPUFILESNEW)
|
override INSTALLOPT+=PPUFILES=$(PPUFILESNEW)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Compile also IDE (check for ide and fv dir)
|
||||||
|
ifneq ($(wildcard ide),)
|
||||||
|
ifneq ($(wildcard fv),)
|
||||||
|
ifeq ($(OS_TARGET),go32v2)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),win32)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
ifeq ($(OS_TARGET),linux)
|
||||||
|
IDE=1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
[rules]
|
[rules]
|
||||||
# These values can change
|
# These values can change
|
||||||
@ -111,12 +131,12 @@ unexport FPC_VERSION OS_SOURCE
|
|||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
.PHONY: help checkfpcdir
|
.PHONY: help checkfpcdir
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo
|
@echo
|
||||||
@echo Directory targets:
|
@echo Directory targets:
|
||||||
@echo
|
@echo
|
||||||
@echo $(DIROBJECTS)
|
@echo $(DIROBJECTS)
|
||||||
@echo
|
@echo
|
||||||
@echo Packing targets are:
|
@echo Packing targets are:
|
||||||
@echo
|
@echo
|
||||||
@ -138,6 +158,7 @@ help:
|
|||||||
compiler_cycle:
|
compiler_cycle:
|
||||||
$(MAKE) -C compiler cycle
|
$(MAKE) -C compiler cycle
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# IDE
|
# IDE
|
||||||
#######################################
|
#######################################
|
||||||
@ -145,10 +166,19 @@ compiler_cycle:
|
|||||||
.PHONY: ide_comp ide_full
|
.PHONY: ide_comp ide_full
|
||||||
|
|
||||||
ide_comp:
|
ide_comp:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
$(MAKE) -C ide full
|
$(MAKE) -C ide full
|
||||||
|
|
||||||
|
# Look if libgdb.a is available then use fullgdb
|
||||||
|
ifneq ($(wildcard packages/gdbint/libgdb/go32v2/libgdb.a),)
|
||||||
ide_full:
|
ide_full:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
$(MAKE) -C ide fullgdb
|
$(MAKE) -C ide fullgdb
|
||||||
|
else
|
||||||
|
ide_full:
|
||||||
|
$(MAKE) -C compiler ppuclean
|
||||||
|
$(MAKE) -C ide full
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
@ -169,10 +199,6 @@ doc_install:
|
|||||||
# Packaging targets
|
# Packaging targets
|
||||||
#######################################
|
#######################################
|
||||||
|
|
||||||
ifndef DESTZIPDIR
|
|
||||||
export DESTZIPDIR:=$(BASEDIR)
|
|
||||||
endif
|
|
||||||
|
|
||||||
idezips: clean ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip
|
idezips: clean ide_allzip ide_gdbzip ide_fullzip ide_fullgdbzip
|
||||||
|
|
||||||
ide_allzip:
|
ide_allzip:
|
||||||
@ -183,7 +209,7 @@ ide_gdbzip:
|
|||||||
$(MAKE) ide_clean
|
$(MAKE) ide_clean
|
||||||
$(MAKE) ide_gdb
|
$(MAKE) ide_gdb
|
||||||
$(MAKE) -C ide/text zipinstall ZIPNAME=ide-gdb-$(PACKAGESUFFIX)
|
$(MAKE) -C ide/text zipinstall ZIPNAME=ide-gdb-$(PACKAGESUFFIX)
|
||||||
ide_fullzip:
|
ide_compzip:
|
||||||
$(MAKE) compiler_clean
|
$(MAKE) compiler_clean
|
||||||
$(MAKE) ide_clean
|
$(MAKE) ide_clean
|
||||||
$(MAKE) ide_full
|
$(MAKE) ide_full
|
||||||
@ -229,7 +255,7 @@ export RELEASE DESTZIPDIR
|
|||||||
all: build
|
all: build
|
||||||
|
|
||||||
clean: $(addsuffix _distclean,$(DIROBJECTS))
|
clean: $(addsuffix _distclean,$(DIROBJECTS))
|
||||||
$(DEL) build-stamp
|
$(DEL) build-stamp
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
@ -244,13 +270,19 @@ build-stamp:
|
|||||||
$(MAKE) fcl_clean
|
$(MAKE) fcl_clean
|
||||||
$(MAKE) packages_clean
|
$(MAKE) packages_clean
|
||||||
$(MAKE) utils_clean
|
$(MAKE) utils_clean
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) fv_clean
|
||||||
|
$(MAKE) ide_clean
|
||||||
|
endif
|
||||||
# build everything
|
# build everything
|
||||||
$(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) rtl_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) api_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) api_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) fcl_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) fcl_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
|
$(MAKE) packages_$(ALLTARGET) $(BUILDOPTS)
|
||||||
$(MAKE) utils_all $(BUILDOPTS)
|
$(MAKE) utils_all $(BUILDOPTS)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_full $(BUILDOPTS)
|
||||||
|
endif
|
||||||
$(ECHO) Build > build-stamp
|
$(ECHO) Build > build-stamp
|
||||||
|
|
||||||
installbase: build-stamp
|
installbase: build-stamp
|
||||||
@ -267,7 +299,8 @@ endif
|
|||||||
# binw32 (cygwin1.dll)
|
# binw32 (cygwin1.dll)
|
||||||
ifeq ($(OS_TARGET),win32)
|
ifeq ($(OS_TARGET),win32)
|
||||||
$(COPY) $(CVSINSTALL)/binw32/* $(BININSTALLDIR)
|
$(COPY) $(CVSINSTALL)/binw32/* $(BININSTALLDIR)
|
||||||
endif# manpages for linux
|
endif
|
||||||
|
# manpages for linux
|
||||||
ifeq ($(OS_TARGET),linux)
|
ifeq ($(OS_TARGET),linux)
|
||||||
$(MAKE) -C $(CVSINSTALL)/man installman
|
$(MAKE) -C $(CVSINSTALL)/man installman
|
||||||
endif
|
endif
|
||||||
@ -281,6 +314,9 @@ install: build-stamp
|
|||||||
$(MAKE) api_install $(INSTALLOPTS)
|
$(MAKE) api_install $(INSTALLOPTS)
|
||||||
$(MAKE) fcl_install $(INSTALLOPTS)
|
$(MAKE) fcl_install $(INSTALLOPTS)
|
||||||
$(MAKE) packages_install $(INSTALLOPTS)
|
$(MAKE) packages_install $(INSTALLOPTS)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_install $(BUILDOPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
zipinstall: $(FPCDIRSET) build-stamp
|
zipinstall: $(FPCDIRSET) build-stamp
|
||||||
$(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
|
$(MAKE) fpc_zipinstall ZIPTARGET=installbase PACKAGENAME=base $(INSTALLOPTS)
|
||||||
@ -288,6 +324,9 @@ zipinstall: $(FPCDIRSET) build-stamp
|
|||||||
$(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) api_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
$(MAKE) fcl_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) fcl_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
$(MAKE) packages_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
$(MAKE) packages_zipinstall $(INSTALLOPTS) PACKAGEPREFIX=$(PKGPRE)
|
||||||
|
ifdef IDE
|
||||||
|
$(MAKE) ide_zipinstall $(INSTALLOPTS)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
@ -411,9 +450,9 @@ RPMSPECDIR:=$(REDHATDIR)/SPECS
|
|||||||
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
RPMSRCDIR:=$(RPMSOURCESDIR)/fpc
|
||||||
DOCSRCDIR:=$(RPMSOURCESDIR)/fpcdoc
|
DOCSRCDIR:=$(RPMSOURCESDIR)/fpcdoc
|
||||||
rpmcopy: distclean
|
rpmcopy: distclean
|
||||||
install -d $(REDHATDIR)
|
install -d $(REDHATDIR)
|
||||||
install -d $(RPMSPECDIR)
|
install -d $(RPMSPECDIR)
|
||||||
install -d $(RPMSOURCESDIR)
|
install -d $(RPMSOURCESDIR)
|
||||||
# fpc.rpm
|
# fpc.rpm
|
||||||
rm -rf $(RPMSRCDIR)
|
rm -rf $(RPMSRCDIR)
|
||||||
cp $(CVSINSTALL)/fpc-$(FPC_VERSION).spec $(RPMSPECDIR)
|
cp $(CVSINSTALL)/fpc-$(FPC_VERSION).spec $(RPMSPECDIR)
|
||||||
@ -442,4 +481,4 @@ rpmcopy: distclean
|
|||||||
rpm: rpmcopy
|
rpm: rpmcopy
|
||||||
cd $(RPMSPECDIR) ; rpm -ba fpc-$(FPC_VERSION).spec
|
cd $(RPMSPECDIR) ; rpm -ba fpc-$(FPC_VERSION).spec
|
||||||
cd $(RPMSPECDIR) ; rpm -ba fpc-docs-$(FPC_VERSION).spec
|
cd $(RPMSPECDIR) ; rpm -ba fpc-docs-$(FPC_VERSION).spec
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user