DEFINES += -DTARGET_POSIX -DUSE_LZO_PACKING ifneq ($(or $(findstring powerpc,@ARCH@),$(findstring ppc, @ARCH@)),) DEFINES += -DHOST_BIGENDIAN endif SRCS = \ md5.cpp \ SDL_anigif.cpp \ XBTFWriter.cpp \ XBMCTex.cpp \ @abs_top_srcdir@/xbmc/guilib/XBTF.cpp TARGET = TexturePacker CLEAN_FILES = $(TARGET) CXXFLAGS_FOR_BUILD += \ -I. \ -I@abs_top_srcdir@/lib \ -I@abs_top_srcdir@/xbmc \ -I@abs_top_srcdir@/xbmc/linux LDFLAGS_FOR_BUILD += -lSDL_image -lSDL -llzo2 LDFLAGS_FOR_BUILD += -L@abs_top_srcdir@/lib/libsquish -lsquish-native ifeq ($(findstring Darwin,$(shell uname -s)),Darwin) DEFINES += -DTARGET_DARWIN NATIVE_ARCH=@DARWIN_NATIVE_ARCH@ endif all: $(TARGET) $(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h # TexturePacker run native on build system, build it with native tools make -C @abs_top_srcdir@/lib/libsquish/ libsquish-native.so $(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $(DEFINES) $(NATIVE_ARCH) $(SRCS) $(LDFLAGS_FOR_BUILD) -o $(TARGET) include @abs_top_srcdir@/Makefile.include