]> mj.ucw.cz Git - libucw.git/blob - images/Makefile
Merge with git+ssh://cvs.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / images / Makefile
1 # Testing dir... code will be moved somewhere else... maybe to trash :-)
2
3 DIRS+=images
4
5 PROGS+=$(addprefix $(o)/images/,image-tool)
6
7 LIBIMAGES_MODS=image scale io-main
8 LIBIMAGES=$(o)/images/libimages.$(LS)
9 LIBIMAGES_LIBS=
10
11 ifdef CONFIG_LIBJPEG
12 LIBIMAGES_MODS+=io-libjpeg
13 LIBIMAGES_LIBS+=-ljpeg
14 endif
15
16 ifdef CONFIG_LIBPNG
17 LIBIMAGES_MODS+=io-libpng
18 LIBIMAGES_LIBS+=-lpng
19 endif
20
21 ifdef CONFIG_LIBUNGIF
22 LIBIMAGES_MODS+=io-libungif
23 LIBIMAGES_LIBS+=-lungif
24 endif
25
26 ifdef CONFIG_LIBMAGICK
27 LIBIMAGES_MODS+=io-libmagick
28 MAGICK_LIBS:=$(shell GraphicsMagick-config --libs)
29 LIBIMAGES_LIBS+=$(MAGICK_LIBS)
30 $(o)/images/io-libmagick.o: CFLAGS+=-I/usr/include/GraphicsMagick
31 endif
32
33 $(o)/images/libimages.a: $(addsuffix .o,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
34 $(o)/images/libimages.so: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS)))
35
36 $(o)/images/image-tool: $(o)/images/image-tool.o $(LIBIMAGES) $(LIBUCW)
37 $(o)/images/image-tool: LIBS+=$(LIBIMAGES_LIBS)
38
39 TESTS+=$(o)/images/hilbert-test.test
40 $(o)/images/hilbert-test: LIBS+=-lm $(LIBSH)
41 $(o)/images/hilbert-test.test: $(o)/images/hilbert-test
42
43 #$(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(LIBUCW)
44 #$(o)/images/image-test: LIBS+=$(LIBIMAGES_LIBS)
45
46 #$(o)/images/image-sig.o $(o)/images/image-sig.oo: CFLAGS+=-I/usr/include/GraphicsMagick
47 #$(o)/images/image-idx.o $(o)/images/image-idx.oo: CFLAGS+=-I/usr/include/GraphicsMagick
48 #$(o)/images/image-obj.o $(o)/images/image-obj.oo: CFLAGS+=-I/usr/include/GraphicsMagick
49 #$(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)
50 #$(o)/images/image-idx: LIBS+=-lGraphicsMagick -ljpeg -lpng
51
52 #$(o)/images/color-t: LIBS+=-lm
53 #$(o)/images/color.test: $(o)/images/color-t
54
55 # By :;DF
56 #PROGS+=$(addprefix $(o)/images/,decomp)
57 #
58 #$(o)/images/block_info.o $(o)/images/block_info.oo: CFLAGS+=-I/usr/include/GraphicsMagick
59 #$(o)/images/k_means.o $(o)/images/k_means.oo: CFLAGS+=-I/usr/include/GraphicsMagick
60 #$(o)/images/decomp.o $(o)/images/decomp.oo: CFLAGS+=-I/usr/include/GraphicsMagick
61
62 #$(o)/images/decomp: $(o)/images/decomp.o $(o)/images/block_info.o $(o)/images/k_means.o $(LIBSH) $(LIBLANG) $(LIBCHARSET)
63 #$(o)/images/decomp: LIBS+=-lGraphicsMagick -ljpeg -lm
64