Merge "makefile.unix & Android.mk: cosmetics"

This commit is contained in:
James Zern 2012-04-19 16:03:08 -07:00 committed by Gerrit Code Review
commit 262fe01be2
2 changed files with 121 additions and 70 deletions

View File

@ -59,33 +59,84 @@ GROFF = /usr/bin/groff
COL = /usr/bin/col
LDFLAGS = $(EXTRA_LIBS) -lm
DEC_OBJS = src/dec/frame.o src/dec/webp.o src/dec/quant.o src/dec/tree.o \
src/dec/vp8.o src/dec/vp8l.o src/dec/idec.o src/dec/alpha.o \
src/dec/layer.o src/dec/io.o src/dec/buffer.o
ENC_OBJS = src/enc/webpenc.o src/enc/syntax.o \
src/enc/alpha.o src/enc/layer.o \
src/enc/tree.o src/enc/config.o src/enc/frame.o \
src/enc/quant.o src/enc/iterator.o src/enc/analysis.o \
src/enc/cost.o src/enc/picture.o src/enc/filter.o
DSP_OBJS = src/dsp/cpu.o src/dsp/enc.o \
src/dsp/enc_sse2.o src/dsp/dec.o src/dsp/dec_sse2.o \
src/dsp/dec_neon.o src/dsp/lossless.o src/dsp/upsampling.o \
src/dsp/upsampling_sse2.o src/dsp/yuv.o
UTILS_OBJS = src/utils/alpha.o src/utils/bit_reader.o src/utils/bit_writer.o \
src/utils/color_cache.o src/utils/filters.o src/utils/huffman.o \
src/utils/quant_levels.o src/utils/rescaler.o src/utils/thread.o \
src/utils/tcoder.o
DEC_OBJS = \
src/dec/alpha.o \
src/dec/buffer.o \
src/dec/frame.o \
src/dec/idec.o \
src/dec/io.o \
src/dec/layer.o \
src/dec/quant.o \
src/dec/tree.o \
src/dec/vp8.o \
src/dec/vp8l.o \
src/dec/webp.o \
OBJS = $(DEC_OBJS) $(ENC_OBJS) $(DSP_OBJS) $(UTILS_OBJS)
DSP_OBJS = \
src/dsp/cpu.o \
src/dsp/dec.o \
src/dsp/dec_neon.o \
src/dsp/dec_sse2.o \
src/dsp/enc.o \
src/dsp/enc_sse2.o \
src/dsp/lossless.o \
src/dsp/upsampling.o \
src/dsp/upsampling_sse2.o \
src/dsp/yuv.o \
MUX_OBJS = src/mux/muxedit.o src/mux/muxinternal.o src/mux/muxread.o
ENC_OBJS = \
src/enc/alpha.o \
src/enc/analysis.o \
src/enc/config.o \
src/enc/cost.o \
src/enc/filter.o \
src/enc/frame.o \
src/enc/iterator.o \
src/enc/layer.o \
src/enc/picture.o \
src/enc/quant.o \
src/enc/syntax.o \
src/enc/tree.o \
src/enc/webpenc.o \
HDRS = src/webp/encode.h src/enc/vp8enci.h src/enc/cost.h src/webp/mux.h \
src/dec/vp8i.h src/dec/vp8li.h src/dsp/yuv.h src/dsp/dsp.h \
src/dsp/lossless.h src/utils/alpha.h src/utils/bit_writer.h \
src/utils/bit_reader.h src/utils/color_cache.h src/utils/filters.h \
src/utils/huffman.h src/utils/thread.h \
src/utils/tcoder.h
MUX_OBJS = \
src/mux/muxedit.o \
src/mux/muxinternal.o \
src/mux/muxread.o \
UTILS_OBJS = \
src/utils/alpha.o \
src/utils/bit_reader.o \
src/utils/bit_writer.o \
src/utils/color_cache.o \
src/utils/filters.o \
src/utils/huffman.o \
src/utils/quant_levels.o \
src/utils/rescaler.o \
src/utils/tcoder.o \
src/utils/thread.o \
LIBWEBP_OBJS = $(DEC_OBJS) $(DSP_OBJS) $(ENC_OBJS) $(UTILS_OBJS)
LIBWEBPMUX_OBJS = $(MUX_OBJS)
HDRS = \
src/dec/vp8i.h \
src/dec/vp8li.h \
src/dsp/dsp.h \
src/dsp/lossless.h \
src/dsp/yuv.h \
src/enc/cost.h \
src/enc/vp8enci.h \
src/utils/alpha.h \
src/utils/bit_reader.h \
src/utils/bit_writer.h \
src/utils/color_cache.h \
src/utils/filters.h \
src/utils/huffman.h \
src/utils/tcoder.h \
src/utils/thread.h \
src/webp/encode.h \
src/webp/mux.h \
OUT_LIBS = src/libwebp.a src/mux/libwebpmux.a
OUT_EXAMPLES = examples/cwebp examples/dwebp examples/webpmux
@ -97,10 +148,10 @@ all: ex
%.o: %.c $(HDRS)
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
src/libwebp.a: $(OBJS)
src/libwebp.a: $(LIBWEBP_OBJS)
$(AR) $(ARFLAGS) $@ $^
src/mux/libwebpmux.a: $(MUX_OBJS)
src/mux/libwebpmux.a: $(LIBWEBPMUX_OBJS)
$(AR) $(ARFLAGS) $@ $^
ex: $(OUT_EXAMPLES)