Przeglądaj źródła

Added AVR support to fpc and root Makefile.
Rebuilt root Makefile.

git-svn-id: trunk@26944 -

Jeppe Johansen 11 lat temu
rodzic
commit
7fdb125356
3 zmienionych plików z 8 dodań i 0 usunięć
  1. 3 0
      Makefile
  2. 3 0
      Makefile.fpc
  3. 2 0
      compiler/utils/fpc.pp

+ 3 - 0
Makefile

@@ -370,6 +370,9 @@ endif
 ifeq ($(CPU_TARGET),i8086)
 PPSUF=8086
 endif
+ifeq ($(CPU_TARGET),avr)
+PPSUF=avr
+endif
 ifdef CROSSCOMPILE
 ifneq ($(CPU_TARGET),jvm)
 PPPRE=ppcross

+ 3 - 0
Makefile.fpc

@@ -76,6 +76,9 @@ endif
 ifeq ($(CPU_TARGET),i8086)
 PPSUF=8086
 endif
+ifeq ($(CPU_TARGET),avr)
+PPSUF=avr
+endif
 
 # cross compilers uses full cpu_target, not just ppc-suffix
 # (except if the target cannot run a native compiler)

+ 2 - 0
compiler/utils/fpc.pp

@@ -228,6 +228,8 @@ program fpc;
                              cpusuffix:='jvm'
                            else if processorstr='i8086' then
                              cpusuffix:='8086'
+                           else if processorstr='avr' then
+                             cpusuffix:='avr'
                            else
                              error('Illegal processor type "'+processorstr+'"');