]> mj.ucw.cz Git - libucw.git/blob - examples/internal/Makefile
Doc: Mention fb_multi in the release notes
[libucw.git] / examples / internal / Makefile
1 # Example Makefile for a stand-alone program using the libucw build system
2 # (c) 2007 Martin Mares <mj@ucw.cz>
3
4 # The default target
5 all: runtree programs
6
7 # Include configuration
8 s=.
9 -include obj/config.mk
10 obj/config.mk:
11         @echo "You need to run configure first." && false
12
13 BUILDSYS=$(s)/build
14
15 # We will use the libucw build system
16 include $(BUILDSYS)/Maketop
17
18 # Set up names of common libraries (to avoid forward references in rules)
19 LIBLANG=$(o)/lang/liblang.pc
20 LIBCHARSET=$(o)/charset/libcharset.pc
21 LIBIMAGES=$(o)/images/libimages.pc
22
23 # Include makefiles of libraries we wish to use
24 include $(s)/ucw/Makefile
25 include $(s)/charset/Makefile
26 include $(s)/lang/Makefile
27 include $(s)/images/Makefile
28
29 # Programs we want to compile
30 PROGS+=$(o)/test
31 $(o)/test: $(o)/test.o $(LIBUCW) $(LIBLANG) $(LIBCHARSET) $(LIBIMAGES)
32
33 # All tests (%-t) get automatically linked with libucw
34 TESTING_DEPS=$(LIBUCW)
35
36 # And finally the default rules of the build system
37 include $(BUILDSYS)/Makebottom