About
Stuff
Contact

Grafx for Coldfire/FreeMiNT

Grafx2 Screenshot

Grafx2 is a portable pixel painter application.

Files:
grfx2v4e.zip
SDL_gemevents.patch

Some facts:

Some additional notes:


Further technical informations:
 

I used the following 4 commands to configure the build (not a complete list, just the tricky ones):


SDL (1.2.15):
CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475" ./configure --disable-threads --disable-shared --enable-static --disable-video-opengl --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint

SDL_image (1.2.12):
SDL_LIBS="-lSDL -lgem" LIBPNG_CFLAGS="-I/usr/m68k-atari-mint/include/libpng15" LIBPNG_LIBS="-lpng15" CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475" LIBS="-lgem" ./configure --disable-shared --enable-static --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint --disable-lbm

SDL_ttf (2.0.10):
SDL_CFLAGS="-I/usr/m68k-atari-mint//include/SDL -D_GNU_SOURCE=1" SDL_LIBS="-L/usr/m68k-atari-mint/lib/m5475/ -lSDL -lgem" CFLAGS="-O3 -mcpu=5475" LDFLAGS="-mcpu=5475 -Wl,-t" LIBS="-L/usr/m68k-atari-mint/lib/m5475/ -lgem -lm" ./configure --disable-shared --enable-static --prefix=/usr/m68k-atari-mint/ --libdir=/usr/m68k-atari-mint/lib/m5475/ --host=m68k-atari-mint --without-x --prefix="/usr/m68k-atari-mint/" --libdir="/usr/m68k-atari-mint/lib/m5475/"

grafx2 Makefile (m68k cross part):
COPT = -W -Wall -mcpu=5475 -fomit-frame-pointer -Wdeclaration-after-statement -D__MINT__ -ffast-math -O$(OPTIM) -c -I$(prefix)/include `$(prefix)/bin/libpng-config --cflags` `$(prefix)/bin/sdl-config --cflags` $(JOYCOPT) $(LAYERCOPT) $(LUACOPT)
LOPT = -Wl,-t -static -mcpu=5475 -L$(prefix)/lib/m5475 -lSDL_ttf -lSDL_image `$(prefix)/bin/sdl-config --libs` -ltiff -ljpeg -lpng -lz -lm $(TTFLOPT) -lfreetype $(LUALOPT) -lm $(LAYERLOPT) -Wl,--stack,8k
 
 




monochrom.net