X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=free%2Flibs%2Fexamples%2Finternal%2FMakefile;h=633ca09856e6c22b0fdb1b864b577a3b5a98b8e5;hb=d779d07989bb0188c7d03d0dec4714d087e2fe8c;hp=153088af757270a8246452ce1ec01cc0a4d9491c;hpb=9f3522cdcbde1916052fd7ce788f93523d263578;p=libucw.git diff --git a/free/libs/examples/internal/Makefile b/free/libs/examples/internal/Makefile index 153088af..633ca098 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=$(s)/build + # We will use the libucw build system -include $(s)/build/Maketop +include $(BUILDSYS)/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)/Makebottom