VERSION := 1.9.1

PREFIX=
DESTDIR=

BIN=$(DESTDIR)$(PREFIX)
STEADPATH=$(DESTDIR)$(PREFIX)stead
THEMESPATH=$(DESTDIR)$(PREFIX)themes
GAMESPATH=$(DESTDIR)$(PREFIX)games
ICONPATH=$(DESTDIR)$(PREFIX)icon
DOCPATH=$(DESTDIR)$(PREFIX)doc
LANGPATH=$(DESTDIR)$(PREFIX)lang
MANPATH=$(DESTDIR)$(PREFIX)doc

ZLIB_CFLAGS=
ZLIB_LFLAGS=-lz

LUA_CFLAGS=-I../mingw32ce/
LUA_LFLAGS=-llua -L../mingw32ce/

SDL_CFLAGS=-I../mingw32ce/SDL 
SDL_LFLAGS=-lmikmod -lpng -L../mingw32ce/SDL

CFLAGS  += -Wall -march=armv4t -Os -static \
	-D_HAVE_ICONV -D_USE_SDL_ICONV -D_LOCAL_APPDATA -D_SDL_MOD_BUG

LDFLAGS += -Wl,-Bstatic \
	-lSDL_mixer -lSDL -lmad -lvorbisfile -lvorbis -logg \
	-lSDL_ttf -liconv -lfreetype \
	-lSDL_image -lz -ljpeg \
	-lmmtimer -lwince 

CC=arm-mingw32ce-gcc
AR=arm-mingw32ce-ar rc
RANLIB=arm-mingw32ce-ranlib

RM=rm
EXE=.exe

INSTALLD=install -d -m 0755
INSTALLB=install -m 0755
INSTALL=install -m 0644
PLATFORM=wince.c iowin32.c
RESOURCES=resources.o

resources.o: resources.rc
	arm-mingw32ce-windres -i resources.rc -o resources.o

