# What plugin are we building ?

PLUGIN = rttiff

CFLAGS += -DTIF_PLATFORM_CONSOLE

# Who are the maintainers ?
MAINTAINERS = blakem

LIBTIFF = ./libtiff

OBJS	= \
	$(OBJDIR)/tif_aux.$(O) \
	$(OBJDIR)/tif_close.$(O) \
	$(OBJDIR)/tif_codec.$(O) \
	$(OBJDIR)/tif_compress.$(O) \
	$(OBJDIR)/tif_dir.$(O) \
	$(OBJDIR)/tif_dirinfo.$(O) \
	$(OBJDIR)/tif_dirread.$(O) \
	$(OBJDIR)/tif_dirwrite.$(O) \
	$(OBJDIR)/tif_dumpmode.$(O) \
	$(OBJDIR)/tif_error.$(O) \
	$(OBJDIR)/tif_fax3.$(O) \
	$(OBJDIR)/fax3sm_winnt.$(O) \
	$(OBJDIR)/tif_getimage.$(O) \
	$(OBJDIR)/tif_jpeg.$(O) \
	$(OBJDIR)/tif_flush.$(O) \
	$(OBJDIR)/tif_luv.$(O) \
	$(OBJDIR)/tif_lzw.$(O) \
	$(OBJDIR)/tif_next.$(O) \
	$(OBJDIR)/tif_open.$(O) \
	$(OBJDIR)/tif_packbits.$(O) \
	$(OBJDIR)/tif_pixarlog.$(O) \
	$(OBJDIR)/tif_predict.$(O) \
	$(OBJDIR)/tif_print.$(O) \
	$(OBJDIR)/tif_read.$(O) \
	$(OBJDIR)/tif_swab.$(O) \
	$(OBJDIR)/tif_strip.$(O) \
	$(OBJDIR)/tif_thunder.$(O) \
	$(OBJDIR)/tif_tile.$(O) \
	$(OBJDIR)/tif_version.$(O) \
	$(OBJDIR)/tif_warning.$(O) \
	$(OBJDIR)/tif_write.$(O) \
	$(OBJDIR)/tif_zip.$(O) \
	$(OBJDIR)/tif_rw.$(O)


include ../maketool

VPATH  += ./libtiff
CFLAGS += -I./libtiff

ifeq ("$(RWOS)", "xbox")
CFLAGS += -DBSDTYPES
endif

ifeq ("$(RWOS)", "gcn")
CFLAGS += -DBSDTYPES
endif

ifeq ("$(RWOS)", "sky")
#libtiff seems to default to big endian, but PS2 is little endian!
#(this flag is internal to libtiff, see tiffconf.h)
CFLAGS += -DHOST_BIGENDIAN=0
endif
