mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 21:09:20 +02:00
* fix for architecture dependance
This commit is contained in:
parent
6fcd7583c1
commit
f4bbd23367
@ -5,7 +5,26 @@
|
|||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
# Compiler
|
# Compiler
|
||||||
PP=ppc386
|
|
||||||
|
ifndef FPC
|
||||||
|
ifdef PP
|
||||||
|
FPC=$(PP)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
ifndef FPC
|
||||||
|
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
|
||||||
|
ifneq ($(FPCPROG),)
|
||||||
|
FPCPROG:=$(firstword $(FPCPROG))
|
||||||
|
FPC:=$(shell $(FPCPROG) -PB)
|
||||||
|
ifneq ($(findstring Error,$(FPC)),)
|
||||||
|
override FPC=ppc386
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
override FPC=ppc386
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
|
||||||
|
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
|
||||||
|
|
||||||
# Unit directory
|
# Unit directory
|
||||||
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
|
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
|
||||||
@ -52,10 +71,10 @@ clean :
|
|||||||
rm -f *.ow *.sw *.exe *.dll
|
rm -f *.ow *.sw *.exe *.dll
|
||||||
|
|
||||||
$(OBJECTS): %: %.pp vidutil.ppu
|
$(OBJECTS): %: %.pp vidutil.ppu
|
||||||
$(PP) $(PPOPTS) $*
|
$(FPC) $(PPOPTS) $*
|
||||||
|
|
||||||
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
|
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
|
||||||
$(PP2TEX) $*
|
$(PP2TEX) $*
|
||||||
|
|
||||||
vidutil.ppu: vidutil.pp
|
vidutil.ppu: vidutil.pp
|
||||||
$(PP) $(PPOPTS) vidutil.pp
|
$(FPC) $(PPOPTS) vidutil.pp
|
||||||
|
Loading…
Reference in New Issue
Block a user