# KallistiOS ##version##
#
# SDL_image Makefile
# Lawrence Sebald
#
# Based on:
# addons/libjpeg Makefile
# (c)2001 Dan Potter
#



FMT_INCS = -I$(KOS_BASE)/../kos-ports/libpng -I$(KOS_BASE)/../kos-ports/include/zlib \
 -I$(KOS_BASE)/../kos-ports/libjpeg

FMTS = -DLOAD_BMP -DLOAD_PNG -DLOAD_TGA -DLOAD_PNM -DLOAD_GIF -DLOAD_PCX \
-DLOAD_JPG

KOS_CFLAGS += -I$(KOS_BASE)/../kos-ports/include/SDL $(FMT_INCS) $(FMTS)

OBJS = \
	IMG.o			\
	IMG_bmp.o		\
	IMG_gif.o		\
	IMG_jpg.o		\
	IMG_lbm.o		\
	IMG_pcx.o		\
	IMG_png.o		\
	IMG_pnm.o		\
	IMG_tga.o		\
	IMG_tif.o		\
	IMG_xcf.o		\
	IMG_xpm.o

TARGET = libSDL_image.a

include $(KOS_BASE)/addons/Makefile.prefab

#myall: $(OBJS)
#	rm -f $(KOS_BASE)/lib/libSDL_image.a
#	$(KOS_AR) rcs $(KOS_BASE)/addons/dreamcast/libSDL_image.a $(OBJS)

#include $(KOS_BASE)/Makefile.prefab


