You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
807 B
35 lines
807 B
2 months ago
|
# Example Makefile for a stand-alone program using the libucw build system
|
||
|
# (c) 2007 Martin Mares <mj@ucw.cz>
|
||
|
# (c) 2008 Michal Vaner <vorner@ucw.cz>
|
||
|
|
||
|
# The default target
|
||
|
all: runtree programs
|
||
|
|
||
|
# Include configuration
|
||
|
s=.
|
||
|
-include obj/config.mk
|
||
|
obj/config.mk:
|
||
|
@echo "You need to run configure first." && false
|
||
|
|
||
|
# Do not show strange errors if the BUILDSYS is not set
|
||
|
# (it happens if noone called configure as reported above)
|
||
|
ifdef BUILDSYS
|
||
|
|
||
|
# We will use the libucw build system
|
||
|
include $(BUILDSYS)/Maketop
|
||
|
|
||
|
# Add the detected flags to all the global flags
|
||
|
CFLAGS+=$(LIBUCW_CFLAGS)
|
||
|
LIBS+=$(LIBUCW_LIBS)
|
||
|
|
||
|
# Programs we want to compile
|
||
|
PROGS+=$(o)/test
|
||
|
|
||
|
# And how they are created
|
||
|
$(o)/test: $(o)/test.o $(LIBUCW)
|
||
|
|
||
|
# And finally the default rules of the build system
|
||
|
include $(BUILDSYS)/Makebottom
|
||
|
|
||
|
endif
|