* fix for architecture dependance

This commit is contained in:
marco 2004-07-17 21:41:45 +00:00
parent 6fcd7583c1
commit f4bbd23367

View File

@ -5,7 +5,26 @@
#######################################################################
# 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
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
@ -52,10 +71,10 @@ clean :
rm -f *.ow *.sw *.exe *.dll
$(OBJECTS): %: %.pp vidutil.ppu
$(PP) $(PPOPTS) $*
$(FPC) $(PPOPTS) $*
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
$(PP2TEX) $*
vidutil.ppu: vidutil.pp
$(PP) $(PPOPTS) vidutil.pp
$(FPC) $(PPOPTS) vidutil.pp