DEFINES += -D_LINUX -DUSE_LZO_PACKING ifneq ($(or $(findstring powerpc,@ARCH@),$(findstring ppc, @ARCH@)),) DEFINES += -DHOST_BIGENDIAN endif CXXFLAGS+= \ -I. \ -I@abs_top_srcdir@/lib \ -I@abs_top_srcdir@/xbmc \ -I@abs_top_srcdir@/xbmc/linux RPATH=-Wl,-rpath=$(NATIVE_ROOT_PATH)/lib ifeq (@USE_TEXTUREPACKER_NATIVE@,1) NATIVE_ROOT_PATH=@USE_TEXTUREPACKER_NATIVE_ROOT@ ifdef NATIVE_ROOT_PATH ifeq ($(findstring Darwin,$(shell uname -s)),Darwin) DEFINES += -DTARGET_DARWIN NATIVE_ARCH=@DARWIN_NATIVE_ARCH@ RPATH= endif NATIVE_CXXFLAGS+= -I. \ -I$(NATIVE_ROOT_PATH)/include \ -I@abs_top_srcdir@/lib \ -I@abs_top_srcdir@/xbmc \ -I@abs_top_srcdir@/xbmc/linux NATIVE_LIBS += -L$(NATIVE_ROOT_PATH)/lib endif NATIVE_LIBS += -lSDL_image -lSDL -llzo2 NATIVE_LIBS += -L@abs_top_srcdir@/lib/libsquish -lsquish-native else LIBS += -L@abs_top_srcdir@/lib/libsquish -lsquish endif LIBS += -lSDL_image -lSDL -llzo2 SRCS = \ md5.cpp \ SDL_anigif.cpp \ XBTFWriter.cpp \ XBMCTex.cpp \ @abs_top_srcdir@/xbmc/guilib/XBTF.cpp TARGET = TexturePacker CLEAN_FILES=$(TARGET) all: $(TARGET) ifeq (@USE_TEXTUREPACKER_NATIVE@,1) # TexturePacker run native on build system, build it with native tools $(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h g++ $(DEFINES) $(NATIVE_ARCH) $(NATIVE_CXXFLAGS) $(SRCS) $(NATIVE_LIBS) $(RPATH) -o $(TARGET) clean: rm -f $(TARGET) else include @abs_top_srcdir@/Makefile.include $(TARGET): $(SRCS) @abs_top_srcdir@/xbmc/guilib/XBTF.h $(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) $(SRCS) $(LDFLAGS) $(LIBS) -o $(TARGET) endif