Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (30 sloc) 868 Bytes
ARCH=@ARCH@
SRCS= \
alpha.cpp \
clusterfit.cpp \
colourblock.cpp \
colourfit.cpp \
colourset.cpp \
maths.cpp \
rangefit.cpp \
singlecolourfit.cpp \
squish.cpp
CXXFLAGS+=-I.
LIB=libsquish.a
ifeq (@USE_TEXTUREPACKER_NATIVE@,1)
NATIVE_LIB=libsquish-native.so
CLEAN_FILES+=$(NATIVE_LIB)
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
NATIVE_ARCH=@DARWIN_NATIVE_ARCH@
endif
all: $(LIB) $(NATIVE_LIB)
# TexturePacker links to libsquish and needs to run on build system, so make a native flavor.
$(NATIVE_LIB): $(SRCS)
ifeq ($(findstring Darwin,$(shell uname -s)),Darwin)
g++ $(NATIVE_ARCH) -I. $(SRCS) -dynamiclib -install_name `pwd`/libsquish-native.so -o $@
else
g++ -I. $(SRCS) -shared -fPIC -Wl,-soname,`pwd`/libsquish-native.so -o $@
endif
endif
include ../../Makefile.include
-include $(patsubst %.cpp,%.P,$(patsubst %.c,%.P,$(SRCS)))
Something went wrong with that request. Please try again.