浏览代码

* fix problems for m68k linuxzip

pierre 24 年之前
父节点
当前提交
ff81d2fc9f
共有 1 个文件被更改,包括 12 次插入2 次删除
  1. 12 2
      Makefile.fpc

+ 12 - 2
Makefile.fpc

@@ -23,8 +23,18 @@ override FPCDIR:=$(BASEDIR)
 export FPCDIR
 export FPCDIR
 endif
 endif
 
 
-# New ppc386
-PPNEW=$(BASEDIR)/compiler/ppc386$(SRCEXEEXT)
+# New ppc386 (or ppc68k if on m68k machine !)
+ifeq ($(findstring /,$(FPC)),)
+ifdef FPC
+PPNEWBASE=$(FPC)
+else
+PPNEWBASE=ppc386
+endif
+else
+FPNEWBASE=ppc386
+endif
+
+PPNEW=$(BASEDIR)/compiler/$(PPNEWBASE)$(SRCEXEEXT)
 
 
 # Check if there is already a ppc386 binary in compiler, then
 # Check if there is already a ppc386 binary in compiler, then
 # we will use that version for target and version info
 # we will use that version for target and version info