]> mj.ucw.cz Git - libucw.git/blobdiff - free/libs/examples/internal/Makefile
Allow the build system live anywhere
[libucw.git] / free / libs / examples / internal / Makefile
index 153088af757270a8246452ce1ec01cc0a4d9491c..1b970e50fa8e040c1776e077a9b58e8799c92c87 100644 (file)
@@ -10,8 +10,10 @@ s=.
 obj/config.mk:
        @echo "You need to run configure first." && false
 
 obj/config.mk:
        @echo "You need to run configure first." && false
 
+BUILDSYS_PATH=$(s)/build
+
 # We will use the libucw build system
 # 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
 
 # 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
 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
 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)
 
 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
 # And finally the default rules of the build system
-include $(s)/build/Makebottom
+include $(BUILDSYS_PATH)/Makebottom