1 # Example Makefile for a stand-alone program using the libucw build system
2 # (c) 2007 Martin Mares <mj@ucw.cz>
7 # Include configuration
11 @echo "You need to run configure first." && false
13 # We will use the libucw build system
14 include $(s)/build/Maketop
16 # Set up names of common libraries (to avoid forward references in rules)
17 LIBLANG=$(o)/lang/liblang.pc
18 LIBCHARSET=$(o)/charset/libcharset.pc
19 LIBIMAGES=$(o)/images/libimages.pc
21 # Include makefiles of libraries we wish to use
22 include $(s)/lib/Makefile
23 include $(s)/charset/Makefile
24 include $(s)/lang/Makefile
25 include $(s)/images/Makefile
27 # Programs we want to compile
29 $(o)/test: $(o)/test.o $(LIBUCW) $(LIBLANG) $(LIBCHARSET) $(LIBIMAGES)
31 # All tests (%-t) get automatically linked with libucw
32 TESTING_DEPS=$(LIBUCW)
34 # And finally the default rules of the build system
35 include $(s)/build/Makebottom