X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=free%2Flibs%2Fexamples%2Finternal%2FMakefile;h=1b970e50fa8e040c1776e077a9b58e8799c92c87;hb=ac76aae56d2699fc541336874547a02c530af498;hp=153088af757270a8246452ce1ec01cc0a4d9491c;hpb=dc63fe59d2bb4c3eb8be67790a55069c8c0a46a9;p=libucw.git diff --git a/free/libs/examples/internal/Makefile b/free/libs/examples/internal/Makefile index 153088af..1b970e50 100644 --- a/free/libs/examples/internal/Makefile +++ b/free/libs/examples/internal/Makefile @@ -10,8 +10,10 @@ s=. obj/config.mk: @echo "You need to run configure first." && false +BUILDSYS_PATH=$(s)/build + # We will use the libucw build system -include $(s)/build/Maketop +include $(BUILDSYS_PATH)/Maketop # Set up names of common libraries (to avoid forward references in rules) LIBLANG=$(o)/lang/liblang.pc @@ -19,7 +21,7 @@ LIBCHARSET=$(o)/charset/libcharset.pc LIBIMAGES=$(o)/images/libimages.pc # Include makefiles of libraries we wish to use -include $(s)/lib/Makefile +include $(s)/ucw/Makefile include $(s)/charset/Makefile include $(s)/lang/Makefile include $(s)/images/Makefile @@ -28,5 +30,8 @@ include $(s)/images/Makefile PROGS+=$(o)/test $(o)/test: $(o)/test.o $(LIBUCW) $(LIBLANG) $(LIBCHARSET) $(LIBIMAGES) +# All tests (%-t) get automatically linked with libucw +TESTING_DEPS=$(LIBUCW) + # And finally the default rules of the build system -include $(s)/build/Makebottom +include $(BUILDSYS_PATH)/Makebottom