Skip to content

Commit

Permalink
clean up libsquish makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
davilla committed Apr 30, 2011
1 parent be61ad9 commit dda6760
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions lib/libsquish/Makefile.in
@@ -1,16 +1,23 @@
ARCH=@ARCH@

SRCS=alpha.cpp clusterfit.cpp colourblock.cpp colourfit.cpp colourset.cpp maths.cpp rangefit.cpp singlecolourfit.cpp squish.cpp
SRCS= \
alpha.cpp \
clusterfit.cpp \
colourblock.cpp \
colourfit.cpp \
colourset.cpp \
maths.cpp \
rangefit.cpp \
singlecolourfit.cpp \
squish.cpp

ifeq ($(findstring powerpc,$(ARCH)),powerpc)
CXXFLAGS+=-I. -DSQUISH_USE_ALTIVEC=1 -maltivec
else
ifeq ($(findstring arm,$(ARCH)), arm)
CXXFLAGS+=-I.
else
CXXFLAGS+=-I. -DSQUISH_USE_SSE=2 -msse2
endif
ifeq ($(findstring powerpc,$(ARCH)),powerpc)
CXXFLAGS+=-DSQUISH_USE_ALTIVEC=1 -maltivec
else ifeq ($(findstring x86,$(ARCH)), x86)
CXXFLAGS+=-DSQUISH_USE_SSE=2 -msse2
endif

LIB=libsquish.a

include ../../Makefile.include
Expand Down

0 comments on commit dda6760

Please sign in to comment.