mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 16:29:24 +02:00
Added AVR support to fpc and root Makefile.
Rebuilt root Makefile. git-svn-id: trunk@26944 -
This commit is contained in:
parent
2227045e23
commit
7fdb125356
3
Makefile
3
Makefile
@ -370,6 +370,9 @@ endif
|
|||||||
ifeq ($(CPU_TARGET),i8086)
|
ifeq ($(CPU_TARGET),i8086)
|
||||||
PPSUF=8086
|
PPSUF=8086
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CPU_TARGET),avr)
|
||||||
|
PPSUF=avr
|
||||||
|
endif
|
||||||
ifdef CROSSCOMPILE
|
ifdef CROSSCOMPILE
|
||||||
ifneq ($(CPU_TARGET),jvm)
|
ifneq ($(CPU_TARGET),jvm)
|
||||||
PPPRE=ppcross
|
PPPRE=ppcross
|
||||||
|
@ -76,6 +76,9 @@ endif
|
|||||||
ifeq ($(CPU_TARGET),i8086)
|
ifeq ($(CPU_TARGET),i8086)
|
||||||
PPSUF=8086
|
PPSUF=8086
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(CPU_TARGET),avr)
|
||||||
|
PPSUF=avr
|
||||||
|
endif
|
||||||
|
|
||||||
# cross compilers uses full cpu_target, not just ppc-suffix
|
# cross compilers uses full cpu_target, not just ppc-suffix
|
||||||
# (except if the target cannot run a native compiler)
|
# (except if the target cannot run a native compiler)
|
||||||
|
@ -228,6 +228,8 @@ program fpc;
|
|||||||
cpusuffix:='jvm'
|
cpusuffix:='jvm'
|
||||||
else if processorstr='i8086' then
|
else if processorstr='i8086' then
|
||||||
cpusuffix:='8086'
|
cpusuffix:='8086'
|
||||||
|
else if processorstr='avr' then
|
||||||
|
cpusuffix:='avr'
|
||||||
else
|
else
|
||||||
error('Illegal processor type "'+processorstr+'"');
|
error('Illegal processor type "'+processorstr+'"');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user