1 # Makefile for the UCW utilities (c) 2008 Michal Vaner <vorner@ucw.cz>
5 UCW_SBIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,daemon-control rotate-log)
6 UCW_BIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,basecode urltool)
8 ifdef CONFIG_UCW_OBSOLETE_DAEMON_HELPER
9 UCW_SBIN_UTILS+=$(o)/ucw/utils/ucw-daemon-helper
12 PROGS+=$(UCW_BIN_UTILS) $(UCW_SBIN_UTILS)
14 $(o)/ucw/utils/ucw-basecode: $(o)/ucw/utils/ucw-basecode.o $(LIBUCW)
15 $(o)/ucw/utils/ucw-daemon-helper: $(o)/ucw/utils/ucw-daemon-helper.o $(LIBUCW)
16 $(o)/ucw/utils/ucw-daemon-control: $(o)/ucw/utils/ucw-daemon-control.o $(LIBUCW)
17 $(o)/ucw/utils/ucw-urltool: $(o)/ucw/utils/ucw-urltool.o $(LIBUCW)
19 TESTS+=$(o)/ucw/utils/basecode.test
20 $(o)/ucw/utils/basecode.test: $(o)/ucw/utils/ucw-basecode
22 INSTALL_TARGETS+=install-ucw-utils
24 install -d -m 755 $(addprefix $(DESTDIR),$(INSTALL_BIN_DIR) $(INSTALL_SBIN_DIR))
25 install -m 755 $(UCW_SBIN_UTILS) $(DESTDIR)$(INSTALL_SBIN_DIR)
26 install -m 755 $(UCW_BIN_UTILS) $(DESTDIR)$(INSTALL_BIN_DIR)
27 .PHONY: install-ucw-utils