aboutsummaryrefslogtreecommitdiff
path: root/tools/TexturePacker/Makefile.in
blob: 4f0b610211275bb005b8d2131b2ac9e43b86a1b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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