1 # Testing dir... code will be moved somewhere else... maybe to trash :-)
5 PROGS+=$(addprefix $(o)/images/,image-tool)
7 LIBIMAGES_MODS=image scale color alpha io-main
8 LIBIMAGES=$(o)/images/libimages.$(LS)
11 ifdef CONFIG_IMAGES_LIBJPEG
12 LIBIMAGES_MODS+=io-libjpeg
13 LIBIMAGES_LIBS+=-ljpeg
16 ifdef CONFIG_IMAGES_LIBPNG
17 LIBIMAGES_MODS+=io-libpng
21 ifdef CONFIG_IMAGES_LIBUNGIF
22 LIBIMAGES_MODS+=io-libungif
23 LIBIMAGES_LIBS+=-lungif
25 ifdef CONFIG_IMAGES_LIBGIF
26 LIBIMAGES_MODS+=io-libungif
31 ifdef CONFIG_IMAGES_LIBMAGICK
32 LIBIMAGES_MODS+=io-libmagick
33 MAGICK_LIBS:=$(shell GraphicsMagick-config --libs)
34 MAGICK_CPPFLAGS:=$(shell GraphicsMagick-config --cppflags)
35 LIBIMAGES_LIBS+=$(MAGICK_LIBS)
36 $(o)/images/io-libmagick.o: CFLAGS+=$(MAGICK_CPPFLAGS)
39 $(o)/images/libimages.a: $(addsuffix .o,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
40 $(o)/images/libimages.so: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
42 $(o)/images/image-tool: $(o)/images/image-tool.o $(LIBIMAGES) $(LIBUCW)
43 $(o)/images/image-tool: LIBS+=$(LIBIMAGES_LIBS)
45 TESTS+=$(o)/images/image-test.test
46 $(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(LIBUCW)
47 $(o)/images/image-test: LIBS+=$(LIBIMAGES_LIBS)
48 $(o)/images/image-test.test: $(o)/images/image-test
50 TESTS+=$(o)/images/hilbert-test.test
51 $(o)/images/hilbert-test: LIBS+=-lm $(LIBSH)
52 $(o)/images/hilbert-test.test: $(o)/images/hilbert-test
54 TESTS+=$(o)/images/color.test
55 $(o)/images/color-t: LIBS+=-lm
56 $(o)/images/color.test: $(o)/images/color-t
58 #$(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(LIBUCW)
59 #$(o)/images/image-test: LIBS+=$(LIBIMAGES_LIBS)
61 #$(o)/images/image-idx: $(o)/images/image-idx.o $(o)/images/image-obj.o $(o)/images/dup-cmp.o $(o)/indexer/iconfig.o $(o)/images/image-sig.o $(o)/images/kd-tree.o $(o)/images/color.o $(o)/images/image-io.o $(LIBSH) $(LIBLANG) $(LIBCHARSET)
62 #$(o)/images/image-idx: LIBS+=-lGraphicsMagick -ljpeg -lpng
65 #PROGS+=$(addprefix $(o)/images/,decomp)
67 #$(o)/images/block_info.o $(o)/images/block_info.oo: CFLAGS+=-I/usr/include/GraphicsMagick
68 #$(o)/images/k_means.o $(o)/images/k_means.oo: CFLAGS+=-I/usr/include/GraphicsMagick
69 #$(o)/images/decomp.o $(o)/images/decomp.oo: CFLAGS+=-I/usr/include/GraphicsMagick
71 #$(o)/images/decomp: $(o)/images/decomp.o $(o)/images/block_info.o $(o)/images/k_means.o $(LIBSH) $(LIBLANG) $(LIBCHARSET)
72 #$(o)/images/decomp: LIBS+=-lGraphicsMagick -ljpeg -lm