1 # Example Makefile for a stand-alone program using the libucw build system
2 # (c) 2007 Martin Mares <mj@ucw.cz>
3 # (c) 2008 Michal Vaner <vorner@ucw.cz>
8 # Include configuration
10 -include obj/config.mk
12 @echo "You need to run configure first." && false
14 # Do not show strange errors if the BUILDSYS is not set
15 # (it happens if noone called configure as reported above)
18 # We will use the libucw build system
19 include $(BUILDSYS)/Maketop
21 # Add the detected flags to all the global flags
22 CFLAGS+=$(LIBUCW_CFLAGS)
25 # Programs we want to compile
28 # And how they are created
29 $(o)/test: $(o)/test.o $(LIBUCW)
31 # And finally the default rules of the build system
32 include $(BUILDSYS)/Makebottom