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
15 # We will use the libucw build system
16 include $(BUILDSYS)/Maketop
18 # Set up names of common libraries (to avoid forward references in rules)
19 LIBCHARSET=$(o)/charset/libucw-charset.pc
20 LIBIMAGES=$(o)/images/libucw-images.pc
22 # Include makefiles of libraries we wish to use
23 include $(s)/ucw/Makefile
24 include $(s)/charset/Makefile
25 include $(s)/images/Makefile
27 # Programs we want to compile
29 $(o)/test: $(o)/test.o $(LIBUCW) $(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 $(BUILDSYS)/Makebottom