Browse Source

* fixed to also work with 1.0.x fpcmake makefiles

peter 24 years ago
parent
commit
d3aa0f3f26
2 changed files with 19 additions and 8 deletions
  1. 9 4
      tests/units/Makefile
  2. 10 4
      tests/units/Makefile.fpc

+ 9 - 4
tests/units/Makefile

@@ -785,11 +785,16 @@ ifneq ($(wildcard fpcmake.loc),)
 include fpcmake.loc
 include fpcmake.loc
 endif
 endif
 .PHONY: rtl fcl clean
 .PHONY: rtl fcl clean
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+INSTALLOPT=UNITINSTALLDIR=$(BASEDIR)
+else
+INSTALLOPT=INSTALL_UNITDIR=$(BASEDIR)
+endif
 rtl:
 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:
 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
 clean : cleanall
 erroru$(PPUEXT): erroru.pp rtl fcl
 erroru$(PPUEXT): erroru.pp rtl fcl

+ 10 - 4
tests/units/Makefile.fpc

@@ -13,13 +13,19 @@ fpcdir=../..
 [rules]
 [rules]
 .PHONY: rtl fcl clean
 .PHONY: rtl fcl clean
 
 
+ifneq ($(findstring 1.0.,$(FPC_VERSION)),)
+INSTALLOPT=UNITINSTALLDIR=$(BASEDIR)
+else
+INSTALLOPT=INSTALL_UNITDIR=$(BASEDIR)
+endif
+
 rtl:
 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:
 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
 clean : cleanall