atari: allow building for ColdFire for the FireBee
While GCC is usually built with multilib to allow targetting the m5475 instead, it's simpler to just have both toolchains around and change the host triplet prefix, and each version of the libs installed separately. This could be done by passing ARCH=m5475 MCPU= to make.
This commit is contained in:
		
							parent
							
								
									f7e46b97e9
								
							
						
					
					
						commit
						60a10f0754
					
				
							
								
								
									
										18
									
								
								src/Makefile
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								src/Makefile
									
									
									
									
									
								
							@ -476,18 +476,20 @@ endif
 | 
				
			|||||||
      else
 | 
					      else
 | 
				
			||||||
      ifdef ATARICROSS
 | 
					      ifdef ATARICROSS
 | 
				
			||||||
        #cross compile an exec for atari TOS/MiNT machine
 | 
					        #cross compile an exec for atari TOS/MiNT machine
 | 
				
			||||||
        CC = m68k-atari-mint-gcc
 | 
					        ARCH ?= m68k
 | 
				
			||||||
 | 
					        MCPU ?= -m68020-60
 | 
				
			||||||
 | 
					        CC = $(ARCH)-atari-mint-gcc
 | 
				
			||||||
        BIN = ../bin/grafx2.ttp
 | 
					        BIN = ../bin/grafx2.ttp
 | 
				
			||||||
        LUALOPT = -llua
 | 
					        LUALOPT = -llua
 | 
				
			||||||
        OBJDIR = ../obj/m68k-atari-mint
 | 
					        OBJDIR = ../obj/$(ARCH)-atari-mint
 | 
				
			||||||
        PLATFORM = m68k-atari-mint
 | 
					        PLATFORM = $(ARCH)-atari-mint
 | 
				
			||||||
        STRIP = m68k-atari-mint-strip -s 
 | 
					        STRIP = $(ARCH)-atari-mint-strip -s 
 | 
				
			||||||
        STACK = m68k-atari-mint-stack
 | 
					        STACK = $(ARCH)-atari-mint-stack
 | 
				
			||||||
        FIX_FLAGS = m68k-atari-mint-flags
 | 
					        FIX_FLAGS = $(ARCH)-atari-mint-flags
 | 
				
			||||||
        FCLOPT = 
 | 
					        FCLOPT = 
 | 
				
			||||||
        LIBPNG_CONFIG = $(wildcard $(PREFIX)/bin/libpng12-config $(PREFIX)/bin/libpng14-config $(PREFIX)/bin/libpng16-config)
 | 
					        LIBPNG_CONFIG = $(wildcard $(PREFIX)/bin/libpng12-config $(PREFIX)/bin/libpng14-config $(PREFIX)/bin/libpng16-config)
 | 
				
			||||||
        COPT = -W -Wall -m68020-60 -fomit-frame-pointer -std=c99 -Wdeclaration-after-statement -D__MINT__ -ffast-math -O$(OPTIM) -I$(PREFIX)/include `$(LIBPNG_CONFIG) --cflags` `$(PREFIX)/bin/sdl-config --cflags` $(JOYCOPT) $(LUACOPT)
 | 
					        COPT = -W -Wall $(MCPU) -fomit-frame-pointer -std=c99 -Wdeclaration-after-statement -D__MINT__ -ffast-math -O$(OPTIM) -I$(PREFIX)/include `$(LIBPNG_CONFIG) --cflags` `$(PREFIX)/bin/sdl-config --cflags` $(JOYCOPT) $(LUACOPT)
 | 
				
			||||||
        LOPT = -static -m68020-60 -lSDL_image `$(PREFIX)/bin/sdl-config --libs` -L$(PREFIX)/lib -ltiff -ljpeg `$(LIBPNG_CONFIG) --libs` -lz -lm $(TTFLOPT) -lfreetype $(LUALOPT) -lm $(LAYERLOPT) -Wl,--stack,8k 
 | 
					        LOPT = -static $(MCPU) -lSDL_image `$(PREFIX)/bin/sdl-config --libs` -L$(PREFIX)/lib -ltiff -ljpeg `$(LIBPNG_CONFIG) --libs` -lz -lm $(TTFLOPT) -lfreetype $(LUALOPT) -lm $(LAYERLOPT) -Wl,--stack,8k 
 | 
				
			||||||
      else
 | 
					      else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # Compiles a regular linux executable for the native platform
 | 
					        # Compiles a regular linux executable for the native platform
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user