]> mj.ucw.cz Git - libucw.git/blob - ucw/utils/Makefile
Macros: CLAMP now accepts arbitrary types, not only ints
[libucw.git] / ucw / utils / Makefile
1 # Makefile for the UCW utilities (c) 2008 Michal Vaner <vorner@ucw.cz>
2
3 DIRS+=ucw/utils
4
5 UCW_SBIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,daemon-control rotate-log)
6 UCW_BIN_UTILS=$(addprefix $(o)/ucw/utils/ucw-,basecode urltool)
7
8 ifdef CONFIG_UCW_OBSOLETE_DAEMON_HELPER
9 UCW_SBIN_UTILS+=$(o)/ucw/utils/ucw-daemon-helper
10 endif
11
12 PROGS+=$(UCW_BIN_UTILS) $(UCW_SBIN_UTILS)
13
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)
18
19 TESTS+=$(o)/ucw/utils/basecode.test
20 $(o)/ucw/utils/basecode.test: $(o)/ucw/utils/ucw-basecode
21
22 INSTALL_TARGETS+=install-ucw-utils
23 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