X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=images%2FMakefile;h=1b9111e431d68b5003fdcf0f95c20f8397c4e1a8;hb=e371dcc1cd2857036374dd9597705faed0427006;hp=c5c293a9428961ee30adbf556f90dddbb1a80b7b;hpb=26b7c8f63d090bf08daa120309e2c3fca2a1baf6;p=libucw.git diff --git a/images/Makefile b/images/Makefile index c5c293a9..1b9111e4 100644 --- a/images/Makefile +++ b/images/Makefile @@ -5,6 +5,8 @@ DIRS+=images PROGS+=$(o)/images/image-tool $(o)/images/color-tool CONFIGS+=images LIBIMAGES_MODS=math config context image scale color io-main +LIBIMAGES_INCLUDES=images.h error.h color.h math.h +export LIBIMAGES_LIBS= ifdef CONFIG_SHERLOCK LIBIMAGES_MODS+=object @@ -16,6 +18,7 @@ endif ifdef CONFIG_IMAGES_DUP PROGS+=$(o)/images/image-dup-test LIBIMAGES_MODS+=dup-init dup-cmp +LIBIMAGES_INCLUDES+=duplicates.h endif ifdef CONFIG_IMAGES_SIM PROGS+=$(o)/images/image-sim-test @@ -23,10 +26,9 @@ LIBIMAGES_MODS+=sig-cmp endif ifneq ($(CONFIG_IMAGES_DUP)$(CONFIG_IMAGES_SIM),) LIBIMAGES_MODS+=sig-dump sig-init sig-seg sig-txt +LIBIMAGES_INCLUDES+=signature.h endif -LIBIMAGES_LIBS=-lm -lpthread - ifdef CONFIG_IMAGES_LIBJPEG LIBIMAGES_MODS+=io-libjpeg LIBIMAGES_LIBS+=-ljpeg @@ -57,30 +59,23 @@ endif $(o)/images/libimages.a: $(addsuffix .o,$(addprefix $(o)/images/,$(LIBIMAGES_MODS))) $(o)/images/libimages.so: $(addsuffix .oo,$(addprefix $(o)/images/,$(LIBIMAGES_MODS))) +$(o)/images/libimages.pc: $(LIBIMAGES_DEPS) -$(o)/images/image-tool: $(o)/images/image-tool.o $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/image-tool: LIBS+=$(LIBIMAGES_LIBS) - -$(o)/images/color-tool: $(o)/images/color-tool.o $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/color-tool: LIBS+=$(LIBIMAGES_LIBS) - -$(o)/images/image-dup-test: $(o)/images/image-dup-test.o $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/image-dup-test: LIBS+=$(LIBIMAGES_LIBS) - -$(o)/images/image-sim-test: $(o)/images/image-sim-test.o $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/image-sim-test: LIBS+=$(LIBIMAGES_LIBS) +$(o)/images/image-tool: $(o)/images/image-tool.o $(LIBIMAGES) +$(o)/images/color-tool: $(o)/images/color-tool.o $(LIBIMAGES) +$(o)/images/image-dup-test: $(o)/images/image-dup-test.o $(LIBIMAGES) +$(o)/images/image-sim-test: $(o)/images/image-sim-test.o $(LIBIMAGES) TESTS+=$(o)/images/image-test.test -$(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/image-test: LIBS+=$(LIBIMAGES_LIBS) +$(o)/images/image-test: $(o)/images/image-test.o $(LIBIMAGES) $(o)/images/image-test.test: $(o)/images/image-test -TESTS+=$(o)/images/hilbert-test.test -$(o)/images/hilbert-test: $(LIBIMAGES_DEPS) -$(o)/images/hilbert-test: LIBS+=-lm -$(o)/images/hilbert-test.test: $(o)/images/hilbert-test - TESTS+=$(o)/images/color.test -$(o)/images/color-t: $(LIBIMAGES) $(LIBIMAGES_DEPS) -$(o)/images/color-t: LIBS+=$(LIBIMAGES_LIBS) $(LIBIMAGES_DEPS) +$(o)/images/color-t: $(LIBIMAGES) $(o)/images/color.test: $(o)/images/color-t + +API_LIBS+=libimages +API_INCLUDES+=$(o)/images/.include-stamp +$(o)/images/.include-stamp: $(addprefix $(s)/images/,$(LIBIMAGES_INCLUDES)) +$(o)/images/.include-stamp: IDST=images +run/lib/pkgconfig/libimages.pc: $(o)/images/libimages.pc