* fixed to also work with 1.0.x fpcmake makefiles

This commit is contained in:
peter 2001-02-02 23:14:44 +00:00
parent 73d31da1ef
commit d3aa0f3f26
2 changed files with 19 additions and 8 deletions

View File

@ -785,11 +785,16 @@ ifneq ($(wildcard fpcmake.loc),)
include fpcmake.loc
endif
.PHONY: rtl fcl clean
ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
INSTALLOPT=UNITINSTALLDIR=$(BASEDIR)
else
INSTALLOPT=INSTALL_UNITDIR=$(BASEDIR)
endif
rtl:
$(MAKE) -C ../../rtl/$(OS_TARGET) all
$(MAKE) -C ../../rtl/$(OS_TARGET) install INSTALL_UNITDIR=$(BASEDIR)
$(MAKE) -C ../../rtl all
$(MAKE) -C ../../rtl install $(INSTALLOPT)
fcl:
$(MAKE) -C ../../fcl/$(OS_TARGET) all
$(MAKE) -C ../../fcl/$(OS_TARGET) install INSTALL_UNITDIR=$(BASEDIR)
$(MAKE) -C ../../fcl all
$(MAKE) -C ../../fcl install $(INSTALLOPT)
clean : cleanall
erroru$(PPUEXT): erroru.pp rtl fcl

View File

@ -13,13 +13,19 @@ fpcdir=../..
[rules]
.PHONY: rtl fcl clean
ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
INSTALLOPT=UNITINSTALLDIR=$(BASEDIR)
else
INSTALLOPT=INSTALL_UNITDIR=$(BASEDIR)
endif
rtl:
$(MAKE) -C ../../rtl/$(OS_TARGET) all
$(MAKE) -C ../../rtl/$(OS_TARGET) install INSTALL_UNITDIR=$(BASEDIR)
$(MAKE) -C ../../rtl all
$(MAKE) -C ../../rtl install $(INSTALLOPT)
fcl:
$(MAKE) -C ../../fcl/$(OS_TARGET) all
$(MAKE) -C ../../fcl/$(OS_TARGET) install INSTALL_UNITDIR=$(BASEDIR)
$(MAKE) -C ../../fcl all
$(MAKE) -C ../../fcl install $(INSTALLOPT)
clean : cleanall